From 7d91a2accc92d13bb32bf881831e9c9a8b4d7734 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Mon, 30 May 2011 01:39:54 +0200 Subject: build: remove dead code parts gcc-4.6 has a new warning, -Wunused-but-set-variable, which flags no-op code. CC libiptc/libip4tc.lo In file included from libiptc/libip4tc.c:118:0: libiptc/libiptc.c: In function "iptcc_chain_index_delete_chain": libiptc/libiptc.c:611:32: warning: variable "index_ptr2" set but not used libiptc/libiptc.c: In function "alloc_handle": libiptc/libiptc.c:1282:9: warning: variable "len" set but not used CC libiptc/libip6tc.lo In file included from libiptc/libip6tc.c:113:0: libiptc/libiptc.c: In function "iptcc_chain_index_delete_chain": libiptc/libiptc.c:611:32: warning: variable "index_ptr2" set but not used libiptc/libiptc.c: In function "alloc_handle": libiptc/libiptc.c:1282:9: warning: variable "len" set but not used CC xtables_multi-iptables-xml.o iptables-xml.c: In function "do_rule_part": iptables-xml.c:376:8: warning: variable "thisChain" set but not used CC xtables_multi-ip6tables.o ip6tables.c: In function "print_firewall": ip6tables.c:552:10: warning: variable "flags" set but not used Signed-off-by: Jan Engelhardt --- ip6tables.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'ip6tables.c') diff --git a/ip6tables.c b/ip6tables.c index a74238cc..4df73b8d 100644 --- a/ip6tables.c +++ b/ip6tables.c @@ -549,7 +549,6 @@ print_firewall(const struct ip6t_entry *fw, { const struct xtables_target *target = NULL; const struct ip6t_entry_target *t; - uint8_t flags; char buf[BUFSIZ]; if (!ip6tc_is_chain(targname, handle)) @@ -559,7 +558,6 @@ print_firewall(const struct ip6t_entry *fw, XTF_LOAD_MUST_SUCCEED); t = ip6t_get_target((struct ip6t_entry *)fw); - flags = fw->ipv6.flags; if (format & FMT_LINENUMBERS) printf(FMT("%-4u ", "%u "), num); -- cgit v1.2.3