[cmake] remove GCC -Wunknown-pragmas workaround

The offending pragma definitions are now only defined for coverity
builds
This commit is contained in:
akallabeth 2024-11-14 13:07:58 +01:00
parent 541fc3a8c6
commit 8883ccc503
No known key found for this signature in database
GPG Key ID: A49454A3FC909FD5
2 changed files with 0 additions and 10 deletions

View File

@ -74,10 +74,5 @@ if (WIN32)
add_compile_options($<$<COMPILE_LANGUAGE:CXX>:-DNOMINMAX>)
endif()
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53431
if (CMAKE_COMPILER_IS_GNUCC AND (CMAKE_CXX_COMPILER_VERSION LESS 13))
CheckCFlag(-Wno-unknown-pragmas)
endif()
set(CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} CACHE STRING "default CXXFLAGS")
message("Using CXXFLAGS ${CMAKE_CXX_FLAGS}")

View File

@ -57,11 +57,6 @@ if (ENABLE_WARNING_ERROR)
CheckCFlag(-Werror)
endif()
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53431
if (CMAKE_COMPILER_IS_GNUCC AND (CMAKE_C_COMPILER_VERSION LESS 13))
CheckCFlag(-Wno-unknown-pragmas)
endif()
CheckCFlag(-fno-omit-frame-pointer)
CheckCFlag(-fmacro-prefix-map="${CMAKE_SOURCE_DIR}"="./")