From: Alan T. DeKok Date: Thu, 4 Jan 2018 18:59:46 +0000 (-0500) Subject: c compiler warnings X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=53fcb7cf3b08047a034473804d02e81b0b9c85d6;p=thirdparty%2Ffreeradius-server.git c compiler warnings --- diff --git a/src/lib/util/trie.c b/src/lib/util/trie.c index a345534cd21..9af3660d538 100644 --- a/src/lib/util/trie.c +++ b/src/lib/util/trie.c @@ -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. */