Compiler warning

This commit is contained in:
Shahram Najm 2018-07-31 13:19:02 +01:00
parent 7bdfa3f2cf
commit 162d2e732d
1 changed files with 2 additions and 1 deletions

View File

@ -706,9 +706,10 @@ grib_accessor_classes_hash (const char *str, unsigned int len)
#ifdef DEBUG
{
const char *s;
Assert( len <= MAX_WORD_LENGTH && len >= MIN_WORD_LENGTH );
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 );
}
#endif