From 81263f5abfdc3d99a47efc8d781ef606021a6d4f Mon Sep 17 00:00:00 2001 From: Andrew Noyes Date: Thu, 7 Mar 2024 17:53:23 -0800 Subject: [PATCH] Remove -Wpedantic for gcc --- CMakeLists.txt | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 07422e8..eceb1c2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -92,14 +92,11 @@ if(NOT APPLE AND CMAKE_OBJCOPY) $) 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)