From defe1b68036b3d888b5232ef51e41ead240e3be2 Mon Sep 17 00:00:00 2001 From: Shahram Najm Date: Wed, 12 Feb 2020 17:46:43 +0000 Subject: [PATCH] Clang static analyser: Dead assignment --- ...essor_class_data_g1second_order_general_extended_packing.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/grib_accessor_class_data_g1second_order_general_extended_packing.c b/src/grib_accessor_class_data_g1second_order_general_extended_packing.c index 6effa25fe..f1d262273 100644 --- a/src/grib_accessor_class_data_g1second_order_general_extended_packing.c +++ b/src/grib_accessor_class_data_g1second_order_general_extended_packing.c @@ -1310,8 +1310,8 @@ static int pack_double(grib_accessor* a, const double* val, size_t* len) decimal = grib_power(decimal_scale_factor, 10); divisor = grib_power(-binary_scale_factor, 2); - min = min * decimal; - max = max * decimal; + /*min = min * decimal;*/ + /*max = max * decimal;*/ if ((ret = grib_set_long_internal(handle, self->decimal_scale_factor, decimal_scale_factor)) != GRIB_SUCCESS)