aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CompilerChecks.cmake3
1 files changed, 1 insertions, 2 deletions
diff --git a/CompilerChecks.cmake b/CompilerChecks.cmake
index 2cbd00f5..4d5ef027 100644
--- a/CompilerChecks.cmake
+++ b/CompilerChecks.cmake
@@ -17,8 +17,7 @@ if (UNIX)
endif()
add_c_compiler_flag("-std=gnu99" SUPPORTED_COMPILER_FLAGS)
- add_c_compiler_flag("-pedantic" SUPPORTED_COMPILER_FLAGS)
- add_c_compiler_flag("-pedantic-errors" SUPPORTED_COMPILER_FLAGS)
+ add_c_compiler_flag("-Wpedantic" SUPPORTED_COMPILER_FLAGS)
add_c_compiler_flag("-Wall" SUPPORTED_COMPILER_FLAGS)
add_c_compiler_flag("-Wshadow" SUPPORTED_COMPILER_FLAGS)
add_c_compiler_flag("-Wmissing-prototypes" SUPPORTED_COMPILER_FLAGS)