aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CompilerChecks.cmake8
1 files changed, 3 insertions, 5 deletions
diff --git a/CompilerChecks.cmake b/CompilerChecks.cmake
index 4d8850c6..57afba81 100644
--- a/CompilerChecks.cmake
+++ b/CompilerChecks.cmake
@@ -62,6 +62,9 @@ if (UNIX)
add_c_compiler_flag("-Wno-error=deprecated-declarations" SUPPORTED_COMPILER_FLAGS)
add_c_compiler_flag("-Wno-error=tautological-compare" SUPPORTED_COMPILER_FLAGS)
endif()
+
+ # Allow zero for a variadic macro argument
+ add_c_compiler_flag("-Wno-gnu-zero-variadic-macro-arguments" SUPPORTED_COMPILER_FLAGS)
endif()
if (MSVC)
@@ -77,9 +80,4 @@ if (OSX)
add_c_compiler_flag("-Wno-deprecated-declarations" SUPPORTED_COMPILER_FLAGS)
endif()
-if (BSD)
- # Allow zero for a variadic macro argument
- add_c_compiler_flag("-Wno-gnu-zero-variadic-macro-arguments" SUPPORTED_COMPILER_FLAGS)
-endif()
-
set(DEFAULT_C_COMPILE_FLAGS ${SUPPORTED_COMPILER_FLAGS} CACHE INTERNAL "Default C Compiler Flags" FORCE)