Remove -Wpedantic for gcc

This commit is contained in:
2024-03-07 17:53:23 -08:00
parent 2689901637
commit 81263f5abf
+3 -6
View File
@@ -92,14 +92,11 @@ if(NOT APPLE AND CMAKE_OBJCOPY)
$<TARGET_FILE:${PROJECT_NAME}_static>)
endif()
set(TEST_FLAGS -Wall -Wextra -Wpedantic -Wunreachable-code -UNDEBUG)
set(TEST_FLAGS -Wall -Wextra -Wunreachable-code -UNDEBUG)
if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
list(APPEND TEST_FLAGS -Wno-gnu-anonymous-struct -Wno-nested-anon-types)
endif()
if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
list(APPEND TEST_FLAGS -fms-extensions)
list(APPEND TEST_FLAGS -Wpedantic -Wno-gnu-anonymous-struct
-Wno-nested-anon-types)
endif()
include(CTest)