Explorar o código

build: enable -Wcomma on clang (see #1044)

Michele Caini %!s(int64=2) %!d(string=hai) anos
pai
achega
f1f33a3ac7
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      test/CMakeLists.txt

+ 2 - 0
test/CMakeLists.txt

@@ -62,6 +62,8 @@ function(SETUP_TARGET TARGET_NAME)
                 >
                 # documentation diagnostic turned on for clang-cl only
                 $<$<STREQUAL:"${CMAKE_CXX_COMPILER_ID}","Clang">:-Wdocumentation>
+                # warnings from compilers that think I don't know what I'm doing
+                $<$<STREQUAL:"${CMAKE_CXX_COMPILER_ID}","Clang">:-Wcomma>
                 /EHsc /wd4324 /wd4996
                 # disabling INCREMENTAL is required by SizeBench
                 $<$<CONFIG:Debug>:/Od /INCREMENTAL:NO>