mirror of https://github.com/ecmwf/eccodes.git
Compiler warning
This commit is contained in:
parent
7bdfa3f2cf
commit
162d2e732d
|
@ -706,9 +706,10 @@ grib_accessor_classes_hash (const char *str, unsigned int len)
|
||||||
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
{
|
{
|
||||||
|
const char *s;
|
||||||
Assert( len <= MAX_WORD_LENGTH && len >= MIN_WORD_LENGTH );
|
Assert( len <= MAX_WORD_LENGTH && len >= MIN_WORD_LENGTH );
|
||||||
Assert( key <= MAX_HASH_VALUE && key >= 0 );
|
Assert( key <= MAX_HASH_VALUE && key >= 0 );
|
||||||
const char *s = classes[key].name;
|
s = classes[key].name;
|
||||||
Assert( *str == *s && strcmp(str + 1, s + 1)==0 );
|
Assert( *str == *s && strcmp(str + 1, s + 1)==0 );
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue