* For whoever wants to fix an unused variable in netfilter
@ 2014-05-31 6:45 Raphael S Carvalho
2014-05-31 20:57 ` Valdis.Kletnieks at vt.edu
2014-06-03 12:27 ` Luca Ellero
0 siblings, 2 replies; 3+ messages in thread
From: Raphael S Carvalho @ 2014-05-31 6:45 UTC (permalink / raw)
To: kernelnewbies
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);
^
Have fun!
--
Raphael S. Carvalho
^ permalink raw reply [flat|nested] 3+ messages in thread* For whoever wants to fix an unused variable in netfilter 2014-05-31 6:45 For whoever wants to fix an unused variable in netfilter Raphael S Carvalho @ 2014-05-31 20:57 ` Valdis.Kletnieks at vt.edu 2014-06-03 12:27 ` Luca Ellero 1 sibling, 0 replies; 3+ messages in thread From: Valdis.Kletnieks at vt.edu @ 2014-05-31 20:57 UTC (permalink / raw) To: kernelnewbies 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 ^ permalink raw reply [flat|nested] 3+ messages in thread
* For whoever wants to fix an unused variable in netfilter 2014-05-31 6:45 For whoever wants to fix an unused variable in netfilter Raphael S Carvalho 2014-05-31 20:57 ` Valdis.Kletnieks at vt.edu @ 2014-06-03 12:27 ` Luca Ellero 1 sibling, 0 replies; 3+ messages in thread From: Luca Ellero @ 2014-06-03 12:27 UTC (permalink / raw) To: kernelnewbies Il 31/05/2014 08:45, Raphael S Carvalho write: > 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); > ^ > > Have fun! > It's already fixed in linux-next (commit a64d90fd962c2956da7505f98a302408450365e2) Regards Luca Ellero ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-06-03 12:27 UTC | newest] Thread overview: 3+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2014-05-31 6:45 For whoever wants to fix an unused variable in netfilter Raphael S Carvalho 2014-05-31 20:57 ` Valdis.Kletnieks at vt.edu 2014-06-03 12:27 ` Luca Ellero
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).