From cf7e2c76397159c666a97bea208e69af029f5817 Mon Sep 17 00:00:00 2001 From: Ulya Trofimovich Date: Thu, 14 Nov 2024 10:55:48 +0000 Subject: [PATCH] CMake: align disabled warnings with configure.ac. --- cmake/Re2cCompilerFlags.cmake | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmake/Re2cCompilerFlags.cmake b/cmake/Re2cCompilerFlags.cmake index 88dd345ab..61e1c385a 100644 --- a/cmake/Re2cCompilerFlags.cmake +++ b/cmake/Re2cCompilerFlags.cmake @@ -53,8 +53,11 @@ if (NOT CMAKE_CXX_COMPILER_ID STREQUAL "MSVC") # re2c uses C++11, not C++98 "-Wno-c++98-compat" "-Wno-c++98-compat-pedantic" + "-Wno-unsafe-pointer-arithmetic" + "-Wno-unsafe-buffer-usage" # re2c is single-threaded => no danger of race conditions "-Wno-exit-time-destructors" + "-Wno-switch-enum" ) try_cxxflag("-fdiagnostics-color=always")