From 76baf2790f713f3583992dac5033125791510742 Mon Sep 17 00:00:00 2001 From: Shahram Najm Date: Wed, 19 Apr 2023 17:57:06 +0100 Subject: [PATCH] Fix broken builds --- examples/C/large_grib1.c | 1 + src/grib_accessor_class_data_jpeg2000_packing.cc | 5 +++++ 2 files changed, 6 insertions(+) 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..f401af673 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*, 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.");