summaryrefslogtreecommitdiff
path: root/deps
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2019-06-14 08:44:13 +0200
committerPatrick Steinhardt <ps@pks.im>2019-06-14 08:44:13 +0200
commit358b7a9d1d4a18a7047f9e99fdd272259f7c5ab8 (patch)
treeadb4284344a5881931eb563cd438a15a7afb1f8b /deps
parenta5ddae68f86b459ce53319c8af1e7b1ea7d21dd6 (diff)
downloadlibgit2-358b7a9d1d4a18a7047f9e99fdd272259f7c5ab8.tar.gz
deps: ntlmclient: disable implicit fallthrough warnings
The ntlmclient dependency has quite a lot of places with implicit fallthroughs. As at least modern GCC has enabled warnings on implicit fallthroughs by default, the developer is greeted with a wall of warnings when compiling that dependency. Disable implicit fallthrough warnings for ntlmclient to fix this issue.
Diffstat (limited to 'deps')
-rw-r--r--deps/ntlmclient/CMakeLists.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/deps/ntlmclient/CMakeLists.txt b/deps/ntlmclient/CMakeLists.txt
index 393257daf..c7d472da9 100644
--- a/deps/ntlmclient/CMakeLists.txt
+++ b/deps/ntlmclient/CMakeLists.txt
@@ -2,6 +2,8 @@ FILE(GLOB SRC_NTLMCLIENT "ntlm.c" "unicode_builtin.c" "util.c")
ADD_DEFINITIONS(-DNTLM_STATIC=1)
+DISABLE_WARNINGS(implicit-fallthrough)
+
IF (HTTPS_BACKEND STREQUAL "SecureTransport")
ADD_DEFINITIONS(-DCRYPT_COMMONCRYPTO)
SET(SRC_NTLMCLIENT_CRYPTO "crypt_commoncrypto.c")