aboutsummaryrefslogtreecommitdiff
path: root/CompilerChecks.cmake
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2018-09-06 08:03:39 +0200
committerAndreas Schneider <asn@cryptomilk.org>2018-09-06 08:03:39 +0200
commit68c0a6ce3da4a9988cffc7c6a8e321b9ac5e1595 (patch)
treebced4c28b74fe885d7e1a83dd3e767c2f03cc09b /CompilerChecks.cmake
parent29ab727f329af73fea63c6b1138725b668abdb54 (diff)
downloadcmocka-68c0a6ce3da4a9988cffc7c6a8e321b9ac5e1595.tar.gz
cmocka-68c0a6ce3da4a9988cffc7c6a8e321b9ac5e1595.tar.xz
cmocka-68c0a6ce3da4a9988cffc7c6a8e321b9ac5e1595.zip
cmake: Use -Wpedantic and remove -pedantic-errors
We get -Werror if -DPICKY_DEVELOPER=ON is set. Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'CompilerChecks.cmake')
-rw-r--r--CompilerChecks.cmake3
1 files changed, 1 insertions, 2 deletions
diff --git a/CompilerChecks.cmake b/CompilerChecks.cmake
index 2cbd00f..4d5ef02 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)