Suppress gcc warning about anon structs

This commit is contained in:
2024-03-07 17:48:44 -08:00
parent 87dd70c4b6
commit 2689901637
+4
View File
@@ -98,6 +98,10 @@ if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
list(APPEND TEST_FLAGS -Wno-gnu-anonymous-struct -Wno-nested-anon-types) list(APPEND TEST_FLAGS -Wno-gnu-anonymous-struct -Wno-nested-anon-types)
endif() endif()
if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
list(APPEND TEST_FLAGS -fms-extensions)
endif()
include(CTest) include(CTest)
if(BUILD_TESTING) if(BUILD_TESTING)