From 5787587d539fec2666986b6b1f5e5bccd4928e88 Mon Sep 17 00:00:00 2001 From: Rene Gollent Date: Sun, 24 Mar 2013 11:27:49 -0400 Subject: [PATCH] Disable array bounds warnings on gcc 4.6. Fixes #9522. --- build/jam/BuildSetup | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/build/jam/BuildSetup b/build/jam/BuildSetup index 57331fd52f..78c96f5aa1 100644 --- a/build/jam/BuildSetup +++ b/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 ; }