[haiku-commits] haiku: hrev45405 - build/jam

  • From: anevilyak@xxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Sun, 24 Mar 2013 16:28:22 +0100 (CET)

hrev45405 adds 1 changeset to branch 'master'
old head: d31319b9412cea4f421d0ea2807ebac262668948
new head: 5787587d539fec2666986b6b1f5e5bccd4928e88
overview: http://cgit.haiku-os.org/haiku/log/?qt=range&q=5787587+%5Ed31319b

----------------------------------------------------------------------------

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

                                      [ Rene Gollent <anevilyak@xxxxxxxxx> ]

----------------------------------------------------------------------------

Revision:    hrev45405
Commit:      5787587d539fec2666986b6b1f5e5bccd4928e88
URL:         http://cgit.haiku-os.org/haiku/commit/?id=5787587
Author:      Rene Gollent <anevilyak@xxxxxxxxx>
Date:        Sun Mar 24 15:27:49 2013 UTC

Ticket:      https://dev.haiku-os.org/ticket/9522

----------------------------------------------------------------------------

1 file changed, 9 insertions(+)
build/jam/BuildSetup | 9 +++++++++

----------------------------------------------------------------------------

diff --git a/build/jam/BuildSetup b/build/jam/BuildSetup
index 57331fd..78c96f5 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 ;
 }


Other related posts: