mirror of https://github.com/ecmwf/eccodes.git
Fix compiler warnings
This commit is contained in:
parent
54f385b897
commit
5918bee645
|
@ -409,7 +409,7 @@ static int find_global(grib_nearest* nearest, grib_handle* h,
|
||||||
if (values) { /* ECC-499 */
|
if (values) { /* ECC-499 */
|
||||||
grib_get_double_element_internal(h, self->values_key, self->k[kk], &(values[kk]));
|
grib_get_double_element_internal(h, self->values_key, self->k[kk], &(values[kk]));
|
||||||
}
|
}
|
||||||
indexes[kk] = self->k[kk];
|
indexes[kk] = (int)self->k[kk];
|
||||||
kk++;
|
kk++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -490,7 +490,7 @@ static int find_global(grib_nearest* nearest, grib_handle* h,
|
||||||
grib_context_log(h->context, GRIB_LOG_ERROR, "grib_nearest_reduced: Unable to compute index. Value too large");
|
grib_context_log(h->context, GRIB_LOG_ERROR, "grib_nearest_reduced: Unable to compute index. Value too large");
|
||||||
return GRIB_OUT_OF_RANGE;
|
return GRIB_OUT_OF_RANGE;
|
||||||
} else {
|
} else {
|
||||||
indexes[kk] = self->k[kk];
|
indexes[kk] = (int)self->k[kk];
|
||||||
}
|
}
|
||||||
kk++;
|
kk++;
|
||||||
}
|
}
|
||||||
|
|
|
@ -351,7 +351,7 @@ static int find(grib_nearest* nearest, grib_handle* h,
|
||||||
grib_context_log(h->context, GRIB_LOG_ERROR, "grib_nearest_regular: Unable to compute index. Value too large");
|
grib_context_log(h->context, GRIB_LOG_ERROR, "grib_nearest_regular: Unable to compute index. Value too large");
|
||||||
return GRIB_OUT_OF_RANGE;
|
return GRIB_OUT_OF_RANGE;
|
||||||
} else {
|
} else {
|
||||||
indexes[kk] = self->k[kk];
|
indexes[kk] = (int)self->k[kk];
|
||||||
}
|
}
|
||||||
kk++;
|
kk++;
|
||||||
}
|
}
|
||||||
|
|
|
@ -31,10 +31,9 @@ int main(int argc, char** argv)
|
||||||
{
|
{
|
||||||
int err = 0;
|
int err = 0;
|
||||||
long step = 0;
|
long step = 0;
|
||||||
size_t nfiles = 0;
|
int nfiles = 0, i = 0, j = 0;
|
||||||
size_t i = 0, j = 0;
|
codes_fieldset* set = NULL;
|
||||||
codes_fieldset* set = NULL;
|
const int max_numfiles = 100;
|
||||||
const size_t max_numfiles = 100;
|
|
||||||
codes_handle* h = NULL;
|
codes_handle* h = NULL;
|
||||||
char param[20] = {0,};
|
char param[20] = {0,};
|
||||||
size_t len = 20;
|
size_t len = 20;
|
||||||
|
|
|
@ -58,10 +58,11 @@ int grib_tool_new_file_action(grib_runtime_options* options, grib_tools_file* fi
|
||||||
*/
|
*/
|
||||||
int grib_tool_new_handle_action(grib_runtime_options* options, grib_handle* h)
|
int grib_tool_new_handle_action(grib_runtime_options* options, grib_handle* h)
|
||||||
{
|
{
|
||||||
size_t i, j, err = 0;
|
size_t i, j;
|
||||||
size_t last_size = 0;
|
size_t last_size = 0;
|
||||||
long missingValuesPresent;
|
long missingValuesPresent;
|
||||||
double delta;
|
double delta;
|
||||||
|
int err = 0;
|
||||||
|
|
||||||
double* values = NULL;
|
double* values = NULL;
|
||||||
size_t size;
|
size_t size;
|
||||||
|
|
Loading…
Reference in New Issue