aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMoyster <oysterized@gmail.com>2018-12-01 17:17:59 +0100
committerMoyster <oysterized@gmail.com>2018-12-01 22:01:16 +0100
commitf3af5b659f23e49677ce68b5b0753a45cbe24137 (patch)
tree223f9598e68f7245a1809054b239baeb01472c04
parent96e4baf675b4e4a2a5a188f7434ff31514c5872b (diff)
gcc6: partial merge of 'Fix all GCC 6.x warnings' by nathanchance : https://github.com/nathanchance/angler/commit/dde4c72c4b66a6247245328b1457763a9feb75c4
The array-bounds warning in net/ipv4/tcp_input.c is a false warning, there is no way for an array out of bounds to be triggered. This block is the same in upstream at the time of authoring this.
-rw-r--r--net/ipv4/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/ipv4/Makefile b/net/ipv4/Makefile
index 5a9af0a9b..b2eab7ab7 100644
--- a/net/ipv4/Makefile
+++ b/net/ipv4/Makefile
@@ -56,3 +56,6 @@ obj-$(CONFIG_NETLABEL) += cipso_ipv4.o
obj-$(CONFIG_XFRM) += xfrm4_policy.o xfrm4_state.o xfrm4_input.o \
xfrm4_output.o
+
+# Needed to work around poor compiler optimization
+CFLAGS_tcp_input.o := -Wno-array-bounds