For whoever wants to fix an unused variable in netfilter

Valdis.Kletnieks at vt.edu Valdis.Kletnieks at vt.edu
Sat May 31 16:57:37 EDT 2014


On Sat, 31 May 2014 03:45:29 -0300, Raphael S Carvalho said:
> net/netfilter/nfnetlink.c: In function 'nfnetlink_rcv':
> net/netfilter/nfnetlink.c:363:14: warning: unused variable 'net'
> [-Wunused-variable]
>   struct net *net = sock_net(skb->sk);
>               ^

Of course, the real fun starts when the variable is unused in
some configs and not in others (usually doe to #ifdef-ery)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 848 bytes
Desc: not available
Url : http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20140531/b18d9eb8/attachment.bin 


More information about the Kernelnewbies mailing list