]> git.ipfire.org Git - thirdparty/nftables.git/commit
src: silence compiler warnings
authorFlorian Westphal <fw@strlen.de>
Sat, 15 Jan 2022 19:00:49 +0000 (20:00 +0100)
committerFlorian Westphal <fw@strlen.de>
Sat, 15 Jan 2022 19:16:32 +0000 (20:16 +0100)
commita64ae40f2fd06dfa42c7d97ebb47fc04d4513466
tree39bef5f1027f017b25883778c8100cb7247bcb34
parent71ae4e960357516c655bda9495db17bc0abea5b3
src: silence compiler warnings

cache.c:504:22: warning: ‘chain’ may be used uninitialized in this function [-Wmaybe-uninitialized]
cache.c:504:22: warning: ‘table’ may be used uninitialized in this function [-Wmaybe-uninitialized]
erec.c:128:16: warning: ‘line’ may be used uninitialized in this function [-Wmaybe-uninitialized]
optimize.c:524:9: warning: ‘line’ may be used uninitialized in this function [-Wmaybe-uninitialized]

Fixes: 8ad4056e9182 ("erec: expose print_location() and line_location()")
Fixes: afbd102211dc ("src: do not use the nft_cache_filter object from mnl.c")
Fixes: fb298877ece2 ("src: add ruleset optimization infrastructure")
Signed-off-by: Florian Westphal <fw@strlen.de>
src/cache.c
src/erec.c
src/optimize.c