Commit 0c55a4da authored by Thomas Jahns's avatar Thomas Jahns 🤸
Browse files

Fix unused argument and implicit conversions in grbUnzipRecord.

parent 434fc22c
...@@ -230,7 +230,7 @@ int grbUnzipRecord(unsigned char *gribbuffer, size_t *gribsize) ...@@ -230,7 +230,7 @@ int grbUnzipRecord(unsigned char *gribbuffer, size_t *gribsize)
igribsize = *gribsize; igribsize = *gribsize;
ogribsize = *gribsize; ogribsize = *gribsize;
if ( (izip = gribGetZip(igribsize, gribbuffer, &unzipsize)) > 0 ) if ( (izip = gribGetZip((long)igribsize, gribbuffer, &unzipsize)) > 0 )
{ {
zip = izip; zip = izip;
if ( izip == 128 ) /* szip */ if ( izip == 128 ) /* szip */
...@@ -254,7 +254,7 @@ int grbUnzipRecord(unsigned char *gribbuffer, size_t *gribsize) ...@@ -254,7 +254,7 @@ int grbUnzipRecord(unsigned char *gribbuffer, size_t *gribsize)
unzipsize += 100; /* need 0 to 1 bytes for rounding of bds */ unzipsize += 100; /* need 0 to 1 bytes for rounding of bds */
ogribsize = gribUnzip(gribbuffer, unzipsize, itmpbuffer, igribsize); ogribsize = (size_t)gribUnzip(gribbuffer, unzipsize, itmpbuffer, (long)igribsize);
free(itmpbuffer); free(itmpbuffer);
...@@ -547,6 +547,7 @@ size_t grbEncode(int filetype, int memtype, int varID, int levelID, int vlistID, ...@@ -547,6 +547,7 @@ size_t grbEncode(int filetype, int memtype, int varID, int levelID, int vlistID,
#else #else
Error("GRIB_API support not compiled in!"); Error("GRIB_API support not compiled in!");
(void)gribContainer; (void)gribContainer;
(void)comptype;
#endif #endif
......
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