Commit 9235f599 authored by Thomas Jahns's avatar Thomas Jahns 🤸
Browse files

Conditionally compile function only used conditionally.

parent e8a341ba
......@@ -706,6 +706,7 @@ int gribapiVarCompare(compvar2_t compVar, record_t record, int flag)
return (rstatus);
}
#if defined (HAVE_LIBGRIB_API)
static void ensureBufferSize(size_t requiredSize, size_t* curSize, unsigned char** buffer) {
if ( *curSize < requiredSize )
{
......@@ -714,7 +715,6 @@ static void ensureBufferSize(size_t requiredSize, size_t* curSize, unsigned char
}
}
#if defined (HAVE_LIBGRIB_API)
static
grib_handle* gribapiGetDiskRepresentation(long recsize, size_t* buffersize, unsigned char** gribbuffer, int* outDatatype, int* outCompressionType, long* outUnzipsize)
{
......
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