From 76baf2790f713f3583992dac5033125791510742 Mon Sep 17 00:00:00 2001 From: Shahram Najm Date: Wed, 19 Apr 2023 17:57:06 +0100 Subject: [PATCH 1/2] 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."); From b2120e2c03e822ba74d99c7422d1d0786d13464e Mon Sep 17 00:00:00 2001 From: Shahram Najm Date: Wed, 19 Apr 2023 18:07:03 +0100 Subject: [PATCH 2/2] Fix broken builds (2) --- src/grib_accessor_class_data_jpeg2000_packing.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/grib_accessor_class_data_jpeg2000_packing.cc b/src/grib_accessor_class_data_jpeg2000_packing.cc index f401af673..a95735ac8 100644 --- a/src/grib_accessor_class_data_jpeg2000_packing.cc +++ b/src/grib_accessor_class_data_jpeg2000_packing.cc @@ -583,7 +583,7 @@ cleanup: } #else -static int unpack_float(grib_accessor*, float* val, size_t* len) +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;