forked from ad-freiburg/qlever
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Disable the
array-bounds
warnings for g++-13 because of false posit…
…ives (ad-freiburg#1069) For g++-13, add option `-Wno-error=array-bounds` because of false positives. For g++-12, replace the more general `-Wno-error` (which was also there because of false positives) by the more fine-grained `-Wno-error=array-bounds -Wno-error=restrict`.
- Loading branch information
Showing
3 changed files
with
4 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
# Toolchain that uses G++ 12 | ||
set(CMAKE_C_COMPILER gcc-12) | ||
set(CMAKE_CXX_COMPILER g++-12) | ||
# Disable errors for known false-positive warnings | ||
set(CMAKE_CXX_FLAGS "-Wno-error=array-bounds -Wno-error=restrict") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
# Toolchain that uses G++ 13 | ||
set(CMAKE_C_COMPILER gcc-13) | ||
set(CMAKE_CXX_COMPILER g++-13) | ||
# Disable errors for known false-positive warnings | ||
set(CMAKE_CXX_FLAGS "-Wno-error=array-bounds") |