Messages in this thread | | | Date | Mon, 28 Jan 2019 10:51:43 +0100 | From | Pablo Neira Ayuso <> | Subject | Re: [PATCH] netfilter: ipt_CLUSTERIP: fix warning unused variable cn |
| |
On Wed, Jan 23, 2019 at 12:48:11PM +0100, Anders Roxell wrote: > When CONFIG_PROC_FS isn't set the variable cn isn't used. > > net/ipv4/netfilter/ipt_CLUSTERIP.c: In function ‘clusterip_net_exit’: > net/ipv4/netfilter/ipt_CLUSTERIP.c:849:24: warning: unused variable ‘cn’ [-Wunused-variable] > struct clusterip_net *cn = clusterip_pernet(net); > ^~ > > Rework so the variable 'cn' is declared inside "#ifdef CONFIG_PROC_FS".
Applied, thanks.
| |