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

This commit is contained in:
Rene Gollent
2013-03-24 11:27:49 -04:00
parent d31319b941
commit 5787587d53
+9
View File
@@ -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 ;
}