gcc version 4.8.2 (GCC) warns that 'static int one = 1;' is declared but not used in file net/core/sysctl_net_core.c. Reading the file, that is the case. Attached is a patch to remove it.

Signed-off-by:  Nick Warne <n...@linicks.net>

Nick
--
Gosh that takes me back... or is it forward?  That's the trouble with
time travel, you never can tell."
                -- Doctor Who "Androids of Tara"
--- linux-3.18.21/net/core/sysctl_net_core.c.orig       2015-09-06 
15:03:05.066306670 +0100
+++ linux-3.18.21/net/core/sysctl_net_core.c    2015-09-06 15:03:14.501034348 
+0100
@@ -23,7 +23,6 @@
 #include <net/pkt_sched.h>
 
 static int zero = 0;
-static int one = 1;
 static int ushort_max = USHRT_MAX;
 static int min_sndbuf = SOCK_MIN_SNDBUF;
 static int min_rcvbuf = SOCK_MIN_RCVBUF;

Reply via email to