Skip to content

Commit

Permalink
Disable array bounds warnings on gcc 4.6. Fixes #9522.
Browse files Browse the repository at this point in the history
  • Loading branch information
anevilyak committed Mar 24, 2013
1 parent d31319b commit 5787587
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions build/jam/BuildSetup
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -135,6 +135,15 @@ if $(HAIKU_GCC_VERSION[1]) >= 3 {
HAIKU_GCC_BASE_FLAGS += -fno-strict-aliasing ; 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 { if $(HOST_GCC_VERSION[1]) >= 3 {
HOST_GCC_BASE_FLAGS += -fno-strict-aliasing ; HOST_GCC_BASE_FLAGS += -fno-strict-aliasing ;
} }
Expand Down

0 comments on commit 5787587

Please sign in to comment.