Compiler warnings (NEC Aurora)

This commit is contained in:
Shahram Najm 2018-07-16 09:57:10 +01:00
parent 72521eb046
commit 37addcd6ac
2 changed files with 3 additions and 3 deletions

View File

@ -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 */

View File

@ -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++)
{