From 6a990d87ed6ad8606f5689ddf3fa2bfe818d0ca8 Mon Sep 17 00:00:00 2001 From: Shahram Najm Date: Mon, 24 Apr 2023 14:59:46 +0100 Subject: [PATCH] Compiler warning: [-Wmaybe-uninitialized] --- src/grib_accessor_class_data_g22order_packing.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/grib_accessor_class_data_g22order_packing.cc b/src/grib_accessor_class_data_g22order_packing.cc index 6c1297f0c..25d736177 100644 --- a/src/grib_accessor_class_data_g22order_packing.cc +++ b/src/grib_accessor_class_data_g22order_packing.cc @@ -457,7 +457,7 @@ static unsigned char* mk_bms(grib_accessor* a, double* data, unsigned int* ndata static int post_process(grib_context* c, long* vals, long len, long order, long bias, const unsigned long extras[2]) { - unsigned long last, penultimate, j = 0; + unsigned long last, penultimate = 0, j = 0; Assert(order > 0); Assert(order <= 3); if (!vals)