mirror of https://github.com/ecmwf/eccodes.git
Compiler warnings
This commit is contained in:
parent
48dc02c87e
commit
41e82fbdcd
|
@ -839,7 +839,6 @@ void grib_context_reset(grib_context* c)
|
||||||
|
|
||||||
void grib_context_delete(grib_context* c)
|
void grib_context_delete(grib_context* c)
|
||||||
{
|
{
|
||||||
size_t i = 0;
|
|
||||||
if (!c)
|
if (!c)
|
||||||
c = grib_context_get_default();
|
c = grib_context_get_default();
|
||||||
|
|
||||||
|
@ -851,7 +850,7 @@ void grib_context_delete(grib_context* c)
|
||||||
if (c != &default_grib_context)
|
if (c != &default_grib_context)
|
||||||
grib_context_free_persistent(&default_grib_context, c);
|
grib_context_free_persistent(&default_grib_context, c);
|
||||||
|
|
||||||
for(i=0; i<MAX_NUM_HASH_ARRAY; ++i)
|
for(size_t i=0; i<MAX_NUM_HASH_ARRAY; ++i)
|
||||||
c->hash_array[i] = NULL;
|
c->hash_array[i] = NULL;
|
||||||
c->hash_array_count = 0;
|
c->hash_array_count = 0;
|
||||||
grib_itrie_delete(c->hash_array_index);
|
grib_itrie_delete(c->hash_array_index);
|
||||||
|
|
Loading…
Reference in New Issue