From 3feee38045bc78916d25646d830cdab6be3400fd Mon Sep 17 00:00:00 2001 From: Olaf Bergmann Date: Thu, 31 Aug 2017 13:14:01 +0200 Subject: [PATCH] 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. --- include/coap/uthash.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/coap/uthash.h b/include/coap/uthash.h index dcac94a9..0a52ce1e 100644 --- a/include/coap/uthash.h +++ b/include/coap/uthash.h @@ -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)