]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Quiet compiler warning
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 24 Jan 2024 00:58:12 +0000 (18:58 -0600)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 24 Jan 2024 00:58:12 +0000 (18:58 -0600)
src/lib/util/htrie.h

index 7ef0fc78e7780738e386126b85af6e56aff58aa3..5e08b33be657216aec49cb8d9a06e0473f6612f3 100644 (file)
@@ -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