diff --git a/examples/C/large_grib1.c b/examples/C/large_grib1.c index e351f1b80..a01761ced 100644 --- a/examples/C/large_grib1.c +++ b/examples/C/large_grib1.c @@ -10,6 +10,7 @@ #include #include +#include #include "eccodes.h" /* See JIRA issue GRIB-361 */ diff --git a/src/grib_accessor_class_data_jpeg2000_packing.cc b/src/grib_accessor_class_data_jpeg2000_packing.cc index 610c14b28..a95735ac8 100644 --- a/src/grib_accessor_class_data_jpeg2000_packing.cc +++ b/src/grib_accessor_class_data_jpeg2000_packing.cc @@ -583,6 +583,11 @@ cleanup: } #else +static int unpack_float(grib_accessor* a, float* val, size_t* len) +{ + grib_context_log(a->context, GRIB_LOG_ERROR, "JPEG support not enabled."); + return GRIB_FUNCTIONALITY_NOT_ENABLED; +} static int unpack_double(grib_accessor* a, double* val, size_t* len) { grib_context_log(a->context, GRIB_LOG_ERROR, "JPEG support not enabled.");