mirror of https://github.com/ecmwf/eccodes.git
Compiler warnings: NVHPC 24.1.0
This commit is contained in:
parent
a97e76c847
commit
168fccf13e
|
@ -276,7 +276,7 @@ static int unpack_long_new(grib_accessor* a, long* val, size_t* len)
|
|||
if (plpresent) {
|
||||
long max_pl = 0;
|
||||
int j = 0;
|
||||
double lon_first_row = 0, lon_last_row = 0;
|
||||
// double lon_first_row = 0, lon_last_row = 0;
|
||||
|
||||
/*reduced*/
|
||||
if ((err = grib_get_long_internal(h, self->order, &order)) != GRIB_SUCCESS)
|
||||
|
@ -324,11 +324,9 @@ static int unpack_long_new(grib_accessor* a, long* val, size_t* len)
|
|||
return GRIB_GEOCALCULUS_PROBLEM;
|
||||
}
|
||||
grib_get_reduced_row_wrapper(h, pl[j], lon_first, lon_last, &row_count, &ilon_first, &ilon_last);
|
||||
lon_first_row = ((ilon_first)*360.0) / pl[j];
|
||||
lon_last_row = ((ilon_last)*360.0) / pl[j];
|
||||
//lon_first_row = ((ilon_first)*360.0) / pl[j];
|
||||
//lon_last_row = ((ilon_last)*360.0) / pl[j];
|
||||
*val += row_count;
|
||||
(void)lon_last_row;
|
||||
(void)lon_first_row;
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
@ -388,7 +386,7 @@ static int unpack_long_with_legacy_support(grib_accessor* a, long* val, size_t*
|
|||
if (plpresent) {
|
||||
long max_pl = 0;
|
||||
int j = 0;
|
||||
double lon_first_row = 0, lon_last_row = 0;
|
||||
// double lon_first_row = 0, lon_last_row = 0;
|
||||
|
||||
/*reduced*/
|
||||
if ((err = grib_get_long_internal(h, self->order, &order)) != GRIB_SUCCESS)
|
||||
|
@ -452,11 +450,9 @@ static int unpack_long_with_legacy_support(grib_accessor* a, long* val, size_t*
|
|||
// if ( row_count != pl[j] ) {
|
||||
// printf("oops...... rc=%ld but pl[%d]=%ld\n", row_count, j,pl[j]);
|
||||
// }
|
||||
lon_first_row = ((ilon_first)*360.0) / pl[j];
|
||||
lon_last_row = ((ilon_last)*360.0) / pl[j];
|
||||
// lon_first_row = ((ilon_first)*360.0) / pl[j];
|
||||
// lon_last_row = ((ilon_last)*360.0) / pl[j];
|
||||
*val += row_count;
|
||||
(void)lon_last_row;
|
||||
(void)lon_first_row;
|
||||
#if EFDEBUG
|
||||
printf(" ilon_first=%ld lon_first=%.10e ilon_last=%ld lon_last=%.10e count=%ld row_count=%ld\n",
|
||||
ilon_first, lon_first_row, ilon_last, lon_last_row, *val, row_count);
|
||||
|
|
|
@ -152,7 +152,6 @@ static int unpack_long(grib_accessor* a, long* val, size_t* len)
|
|||
|
||||
default:
|
||||
return GRIB_NOT_IMPLEMENTED;
|
||||
break;
|
||||
}
|
||||
|
||||
*val = byte_count / bytes;
|
||||
|
|
|
@ -421,7 +421,6 @@ static int read_GRIB(reader* r, int no_alloc)
|
|||
r->seek_from_start(r->read_data, r->offset + 4);
|
||||
grib_buffer_delete(c, buf);
|
||||
return GRIB_UNSUPPORTED_EDITION;
|
||||
break;
|
||||
}
|
||||
|
||||
/* Assert(i <= buf->length); */
|
||||
|
|
|
@ -1301,7 +1301,6 @@ grib_handle* grib_util_set_spec(grib_handle* h,
|
|||
fprintf(stderr, "%s: invalid packing_spec.packing_type (%ld)\n", __func__, packing_spec->packing_type);
|
||||
*err = GRIB_INTERNAL_ERROR;
|
||||
goto cleanup;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (strcmp(input_packing_type, "grid_simple_matrix") == 0) {
|
||||
|
@ -1363,7 +1362,6 @@ grib_handle* grib_util_set_spec(grib_handle* h,
|
|||
grib_handle_delete(h_sample);
|
||||
*err = GRIB_INTERNAL_ERROR;
|
||||
goto cleanup;
|
||||
break;
|
||||
}
|
||||
|
||||
if (packing_spec->extra_settings_count) {
|
||||
|
|
Loading…
Reference in New Issue