aboutsummaryrefslogtreecommitdiff
path: root/CompilerChecks.cmake
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2019-10-31 13:34:27 +0100
committerAndreas Schneider <asn@cryptomilk.org>2019-12-09 16:08:03 +0100
commitab26db203eb61fa167b0ff1ea5f4d90512588603 (patch)
treeb84e9b663e1cfe019ec59dde4c5c51b1d8d0262a /CompilerChecks.cmake
parentd60640cd0e04a1b14254b0679348c9393f2bb029 (diff)
downloadlibssh-ab26db203eb61fa167b0ff1ea5f4d90512588603.tar.gz
libssh-ab26db203eb61fa167b0ff1ea5f4d90512588603.tar.xz
libssh-ab26db203eb61fa167b0ff1ea5f4d90512588603.zip
cmake: Add -Wsign-compare to CFLAGS
Fixes T188 Signed-off-by: Andreas Schneider <asn@cryptomilk.org> Reviewed-by: Jakub Jelen <jjelen@redhat.com>
Diffstat (limited to 'CompilerChecks.cmake')
-rw-r--r--CompilerChecks.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/CompilerChecks.cmake b/CompilerChecks.cmake
index a3e4b5c9..5bdc05c3 100644
--- a/CompilerChecks.cmake
+++ b/CompilerChecks.cmake
@@ -42,6 +42,7 @@ if (UNIX)
add_c_compiler_flag("-Wstrict-overflow=2" SUPPORTED_COMPILER_FLAGS)
add_c_compiler_flag("-Wno-format-zero-length" SUPPORTED_COMPILER_FLAGS)
add_c_compiler_flag("-Wmissing-field-initializers" SUPPORTED_COMPILER_FLAGS)
+ add_c_compiler_flag("-Wsign-compare" SUPPORTED_COMPILER_FLAGS)
check_c_compiler_flag("-Wformat" REQUIRED_FLAGS_WFORMAT)
if (REQUIRED_FLAGS_WFORMAT)