From: Alan T. DeKok Date: Thu, 4 Jan 2018 19:40:51 +0000 (-0500) Subject: compiler issues X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e7010f2bc705b277d403a9b2bcb28e9053189311;p=thirdparty%2Ffreeradius-server.git compiler issues --- diff --git a/src/lib/util/trie.c b/src/lib/util/trie.c index 9af3660d538..0101262a9b3 100644 --- a/src/lib/util/trie.c +++ b/src/lib/util/trie.c @@ -1730,15 +1730,16 @@ 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; + bool found = false; #endif int i; void *trie; - found = false; for (i = 0; i < (1 << node->size); i++) { if (node->entry[i]) { +#ifdef WITH_TESTING found = true; +#endif chunk = i; break; } @@ -1979,7 +1980,7 @@ static int fr_trie_key_walk(void *trie, fr_trie_callback_t *cb, int depth, bool { int i, used; uint16_t base, mask; - int bytes, bits_used; + int bits_used; uint8_t *out; fr_trie_node_t *node; @@ -2062,7 +2063,6 @@ static int fr_trie_key_walk(void *trie, fr_trie_callback_t *cb, int depth, bool /* * Number of bytes we will have in the output buffer. */ - bytes = BYTES(depth + node->size); base <<= 8; used = 0;