Re: For whoever wants to fix an unused variable in netfilter

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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)

Attachment: pgp7vuUO8KeTs.pgp
Description: PGP signature

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux