aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2019-01-22 12:32:40 +0100
committerAndreas Schneider <asn@cryptomilk.org>2019-01-22 13:12:25 +0100
commit0ceda043ce1eaab71228cf1958d8168e708843f9 (patch)
tree50baecc73de3ddf457fc93111d09fcaca35798ef
parent86849c088365d68d29ebc72813905309487dc8a9 (diff)
downloadlibssh-0ceda043ce1eaab71228cf1958d8168e708843f9.tar.gz
libssh-0ceda043ce1eaab71228cf1958d8168e708843f9.tar.xz
libssh-0ceda043ce1eaab71228cf1958d8168e708843f9.zip
cmake: Add -Wmissing-field-initializers compile flag
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
-rw-r--r--CompilerChecks.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/CompilerChecks.cmake b/CompilerChecks.cmake
index 8112fce7..a3e4b5c9 100644
--- a/CompilerChecks.cmake
+++ b/CompilerChecks.cmake
@@ -41,6 +41,7 @@ if (UNIX)
add_c_compiler_flag("-Werror=strict-overflow" SUPPORTED_COMPILER_FLAGS)
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)
check_c_compiler_flag("-Wformat" REQUIRED_FLAGS_WFORMAT)
if (REQUIRED_FLAGS_WFORMAT)