summaryrefslogtreecommitdiffstats
path: root/lib/bitfield.h
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2016-11-15 03:17:50 +0100
committerDavid Lamparter <equinox@opensourcerouting.org>2016-11-15 03:17:50 +0100
commit45ef43000030a5801efc6c158786595c31355335 (patch)
tree7721add583d1fb6f503f43d47a16cccdda8e955f /lib/bitfield.h
parentbuild: unconditionally try -rdynamic (diff)
downloadfrr-45ef43000030a5801efc6c158786595c31355335.tar.xz
frr-45ef43000030a5801efc6c158786595c31355335.zip
build: fix -Wmaybe-uninitialized warnings
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'lib/bitfield.h')
-rw-r--r--lib/bitfield.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bitfield.h b/lib/bitfield.h
index b3f40a948..5bf2c8bd0 100644
--- a/lib/bitfield.h
+++ b/lib/bitfield.h
@@ -86,7 +86,7 @@ typedef unsigned int word_t;
/* Find a clear bit in v and assign it to b. */
#define bf_find_bit(v, b) \
do { \
- word_t word; \
+ word_t word = 0; \
unsigned int w, sh; \
for (w = 0; w <= (v).n; w++) { \
if ((word = (v).data[w]) != WORD_MAX) break; \