diff options
author | Daniel Hahler <git@thequod.de> | 2019-07-22 12:22:53 +0200 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2019-07-22 12:22:53 +0200 |
commit | f8684bf6b9e586733c42a21f3f4c947a37bacdbc (patch) | |
tree | 57f4016915cf52019ddc04e249ef4d497b7efe49 | |
parent | 66149ecffe22e2ce48b39e87f972ede5d0de6b32 (diff) | |
download | rneovim-f8684bf6b9e586733c42a21f3f4c947a37bacdbc.tar.gz rneovim-f8684bf6b9e586733c42a21f3f4c947a37bacdbc.tar.bz2 rneovim-f8684bf6b9e586733c42a21f3f4c947a37bacdbc.zip |
build: remove -Wno-array-bounds workaround #10484
Might not be necessary anymore, at least it is fine on gcc 9.1, and
since the bug is still open/unresolved, something else might have fixed
it.
Ref: 4b81f627c
Ref: #7083
-rw-r--r-- | CMakeLists.txt | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index ecb5c3cea0..9b46433114 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -323,18 +323,6 @@ if(HAS_DIAG_COLOR_FLAG) endif() endif() -if(CMAKE_C_COMPILER_ID STREQUAL "GNU") - # 1. Array-bounds testing is broken in some GCC versions before 4.8.5. - # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56273 - # 2. But _Pragma("...ignored") is broken (unresolved) in GCC 5+: - # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66099 - # So we must disable -Warray-bounds globally for GCC (for kbtree.h, #7083). - check_c_compiler_flag(-Warray-bounds HAS_WARRAY_BOUNDS) - if(HAS_WARRAY_BOUNDS) - add_compile_options(-Wno-array-bounds) - endif() -endif() - option(TRAVIS_CI_BUILD "Travis/QuickBuild CI, extra flags will be set" OFF) if(TRAVIS_CI_BUILD) |