Skip to content

Commit

Permalink
CMake: align disabled warnings with configure.ac.
Browse files Browse the repository at this point in the history
  • Loading branch information
skvadrik committed Nov 14, 2024
1 parent 555331f commit cf7e2c7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmake/Re2cCompilerFlags.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down

0 comments on commit cf7e2c7

Please sign in to comment.