]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
c compiler warnings
authorAlan T. DeKok <aland@freeradius.org>
Thu, 4 Jan 2018 18:59:46 +0000 (13:59 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Thu, 4 Jan 2018 18:59:46 +0000 (13:59 -0500)
src/lib/util/trie.c

index a345534cd210428698126faf704792bd464de932..9af3660d538c5bb01fb503d6d3ace6bace478014 100644 (file)
@@ -1729,7 +1729,9 @@ static void *fr_trie_key_remove(TALLOC_CTX *ctx, void **entry, uint8_t const *ke
                 */
 #ifdef WITH_PATH_COMPRESSION
                if (node->used == 1) {
+#ifdef TESTING
                        bool found;
+#endif
                        int i;
                        void *trie;
 
@@ -2006,8 +2008,6 @@ static int fr_trie_key_walk(void *trie, fr_trie_callback_t *cb, int depth, bool
                return fr_trie_key_walk(user->trie, cb, depth, more);
        }
 
-       bytes = BYTES(depth);
-
        /*
         *      Bits used in the last byte.
         */