diff --git a/CMakeLists.txt b/CMakeLists.txt index e3985fc6d..ea8d47bb3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -170,14 +170,6 @@ if(${CMAKE_C_COMPILER_ID} MATCHES "(GNU|Clang)") -fno-strict-aliasing -fno-builtin-memcmp) - # Treat warnings as errors for versions of GCC and c++11-compliant Clang versions that are shipped on Ubuntu 18.04 or older. - if(BUILD_WERROR OR - (${CMAKE_CXX_COMPILER_ID} STREQUAL "GNU" AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS_EQUAL 7.3.0) OR - (${CMAKE_CXX_COMPILER_ID} STREQUAL "Clang" AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 6.0.0)) - add_compile_options(-Werror) - endif() - - set(CMAKE_C_STANDARD 99) # For GCC version 7.1 or greater, we need to disable the implicit fallthrough warning since there's no consistent way to satisfy