Commit da61357c authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

fix warning: ISO C forbids 'return' with expression, in function returning void

parent 905fbe94
......@@ -834,7 +834,8 @@ void cdiIterator_readField(CdiIterator* me, double* buffer, size_t* nmiss)
#ifdef HAVE_LIBGRIB
case FILETYPE_GRB:
case FILETYPE_GRB2:
return cdiGribIterator_readField(me, buffer, nmiss);
cdiGribIterator_readField(me, buffer, nmiss);
return;
#endif
#ifdef HAVE_LIBNETCDF
......@@ -852,8 +853,8 @@ void cdiIterator_readField(CdiIterator* me, double* buffer, size_t* nmiss)
#ifdef HAVE_LIBIEG
case FILETYPE_IEG:
#endif
return cdiFallbackIterator_readField(me, buffer, nmiss);
cdiFallbackIterator_readField(me, buffer, nmiss);
return;
default:
Error(kUnexpectedFileTypeMessage);
}
......@@ -882,7 +883,8 @@ void cdiIterator_readFieldF(CdiIterator* me, float* buffer, size_t* nmiss)
#ifdef HAVE_LIBGRIB
case FILETYPE_GRB:
case FILETYPE_GRB2:
return cdiGribIterator_readFieldF(me, buffer, nmiss);
cdiGribIterator_readFieldF(me, buffer, nmiss);
return;
#endif
#ifdef HAVE_LIBNETCDF
......@@ -900,8 +902,8 @@ void cdiIterator_readFieldF(CdiIterator* me, float* buffer, size_t* nmiss)
#ifdef HAVE_LIBIEG
case FILETYPE_IEG:
#endif
return cdiFallbackIterator_readFieldF(me, buffer, nmiss);
cdiFallbackIterator_readFieldF(me, buffer, nmiss);
return;
default:
Error(kUnexpectedFileTypeMessage);
}
......
......@@ -843,7 +843,7 @@ int gribapiScanTimestep1(stream_t * streamptr)
int rstatus = gribRead(fileID, gribbuffer, &readsize); //Search for next 'GRIB', read the following record, and position file offset after it.
if ( rstatus ) break;
int datatype, comptype;
int datatype, comptype = 0;
long unzipsize;
gh = gribapiGetDiskRepresentation(recsize, &buffersize, &gribbuffer, &datatype, &comptype, &unzipsize);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment