From: Arran Cudbard-Bell Date: Wed, 24 Jan 2024 00:58:12 +0000 (-0600) Subject: Quiet compiler warning X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=30951a836a404e1305fd145eed7c3587432a4a30;p=thirdparty%2Ffreeradius-server.git Quiet compiler warning --- diff --git a/src/lib/util/htrie.h b/src/lib/util/htrie.h index 7ef0fc78e77..5e08b33be65 100644 --- a/src/lib/util/htrie.h +++ b/src/lib/util/htrie.h @@ -145,6 +145,7 @@ static inline fr_htrie_type_t fr_htrie_hint(fr_type_t type) case FR_TYPE_OCTETS: return FR_HTRIE_HASH; + /* IPv4/v6 IP and prefix */ case FR_TYPE_IP: return FR_HTRIE_TRIE; @@ -160,8 +161,10 @@ static inline fr_htrie_type_t fr_htrie_hint(fr_type_t type) case FR_TYPE_VALUE_BOX: case FR_TYPE_STRUCTURAL: case FR_TYPE_MAX: - return FR_HTRIE_INVALID; + break; } + + return FR_HTRIE_INVALID; } #ifdef __cplusplus