aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt6
1 files changed, 2 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index d1d6cd237f..099f6e3787 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -242,10 +242,8 @@ endif()
if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
if(CMAKE_CXX_COMPILER_VERSION VERSION_LESS "4.8.5")
- # The array-bounds testing is broken in some versions of GCC, so we disable
- # it in everything prior to 4.8.5.
- # See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56273 for details about
- # the bug.
+ # Array-bounds testing is broken in some GCC versions before 4.8.5.
+ # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56273
add_definitions(-Wno-array-bounds)
endif()
endif()