From 37addcd6ac00f46e968cd8ac3e2f0a0a307857b8 Mon Sep 17 00:00:00 2001 From: Shahram Najm Date: Mon, 16 Jul 2018 09:57:10 +0100 Subject: [PATCH] Compiler warnings (NEC Aurora) --- tests/ieee.c | 4 ++-- tests/sh_ieee64.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/ieee.c b/tests/ieee.c index 30e54b005..177abafc7 100755 --- a/tests/ieee.c +++ b/tests/ieee.c @@ -78,7 +78,7 @@ static int test_doubles(ieee_to_long_proc ieee_to_long, long_to_ieee_proc long_t printf("Error: %.10f (diff=%.10f)\n", start, reldiff); num_errors ++; } else { - //printf("Success: %.10f (diff=%.10f)\n", start, reldiff); + /*printf("Success: %.10f (diff=%.10f)\n", start, reldiff);*/ } if (reldiff > max_reldiff) max_reldiff = reldiff; } @@ -100,7 +100,7 @@ int main(int argc, char *argv[]) assert( test_doubles(grib_ieee64_to_long, grib_long_to_ieee64)==1 ); printf("Test integers...\n"); - // test(3242539564, grib_ieee_to_long, grib_long_to_ieee); // This fails! + /* test(3242539564, grib_ieee_to_long, grib_long_to_ieee); This fails! */ assert(grib_ieee_to_long(grib_long_to_ieee(i)) == i); /* The minimum value for which we can convert a long to ieee and back is 0x800000 */ diff --git a/tests/sh_ieee64.c b/tests/sh_ieee64.c index f5788ddfc..3c7fdb5db 100644 --- a/tests/sh_ieee64.c +++ b/tests/sh_ieee64.c @@ -230,6 +230,7 @@ int main (int argc, char * argv[]) size_t len; grib_handle * h; double zval[ILCHAM]; + int m, n, k; GRIB_CHECK (((h = grib_handle_new_from_samples (NULL, "sh_ml_grib2")) == NULL), 0); @@ -258,7 +259,6 @@ int main (int argc, char * argv[]) len = ILCHAM; GRIB_CHECK (grib_get_double_array (h, "values", zval, &len), 0); - int m, n, k; for (m = 0, k = 0; m < MTRONC+1; m++) for (n = m; n < MTRONC+1; k++, n++) {