aboutsummaryrefslogtreecommitdiff
path: root/CompilerChecks.cmake
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2018-09-06 08:00:19 +0200
committerAndreas Schneider <asn@cryptomilk.org>2018-09-06 08:28:24 +0200
commitbfd33ecf297f97bb4fcfd12f957d9aa7f0bf88f3 (patch)
treec4eabc6e7272e28db57bde42af880c9424947cf3 /CompilerChecks.cmake
parent56317caafc5615bba2e8cf4738b106a5b4613a5b (diff)
downloadlibssh-bfd33ecf297f97bb4fcfd12f957d9aa7f0bf88f3.tar.gz
libssh-bfd33ecf297f97bb4fcfd12f957d9aa7f0bf88f3.tar.xz
libssh-bfd33ecf297f97bb4fcfd12f957d9aa7f0bf88f3.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 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)