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 --- iptables-xml.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'iptables-xml.c') diff --git a/iptables-xml.c b/iptables-xml.c index dc3cd4f2..aa98f75e 100644 --- a/iptables-xml.c +++ b/iptables-xml.c @@ -373,7 +373,6 @@ do_rule_part(char *leveltag1, char *leveltag2, int part, int argc, { int arg = 1; // ignore leading -A char invert_next = 0; - char *thisChain = NULL; char *spacer = ""; // space when needed to assemble arguments char *level1 = NULL; char *level2 = NULL; @@ -397,8 +396,6 @@ do_rule_part(char *leveltag1, char *leveltag2, int part, int argc, } else printf("%s<%s ", (leveli ## LEVEL), (level ## LEVEL)); \ } while(0) - thisChain = argv[arg++]; - if (part == 1) { /* skip */ /* use argvattr to tell which arguments were quoted to avoid comparing quoted arguments, like comments, to -j, */ -- cgit v1.2.3