Browse files

Disable array bounds warnings on gcc 4.6. Fixes #9522.

  • Loading branch information...
1 parent d31319b commit 5787587d539fec2666986b6b1f5e5bccd4928e88 @anevilyak anevilyak committed Mar 24, 2013
Showing with 9 additions and 0 deletions.
  1. +9 −0 build/jam/BuildSetup
View
9 build/jam/BuildSetup
@@ -135,6 +135,15 @@ if $(HAIKU_GCC_VERSION[1]) >= 3 {
HAIKU_GCC_BASE_FLAGS += -fno-strict-aliasing ;
}
+# disable array bounds warnings on gcc 4.6 or newer since they trigger
+# too many false positives. Coverity does a better job of this kind of analysis
+# anyways.
+if $(HAIKU_GCC_VERSION[1]) >= 4 {
+ if $(HAIKU_GCC_VERSION[2] >= 6) {
+ HAIKU_GCC_BASE_FLAGS += -Wno-array-bounds ;
+ }
+}
+
if $(HOST_GCC_VERSION[1]) >= 3 {
HOST_GCC_BASE_FLAGS += -fno-strict-aliasing ;
}

0 comments on commit 5787587

Please sign in to comment.