uthash.h: fix compiler warning for missing default case in switch statement

Added a no-op default case to switch statement in macro HASH_JEN in order
to fix compiler warning.
This commit is contained in:
Olaf Bergmann committed 2017-08-31 13:14:01 +02:00
1 parent 318eec25b5
commit 3feee38045
1 file changed
+1
+1
View File
@@ -597,6 +597,7 @@ do {
case 3: _hj_i += ( (unsigned)_hj_key[2] << 16 ); /* FALLTHROUGH */ \
case 2: _hj_i += ( (unsigned)_hj_key[1] << 8 ); /* FALLTHROUGH */ \
case 1: _hj_i += _hj_key[0]; \
default: ; /* does not happen */ \
} \
HASH_JEN_MIX(_hj_i, _hj_j, hashv); \
} while (0)