Commit 1f9b72225d8ef45b3831f81eac46492bbf5071ec

Edward Thomson 2019-05-22T12:47:04

cmake: disable fallthrough warnings for PCRE Our PCRE dependency has uncommented fallthroughs in switch statements. Turn off warnings for those in the PCRE code.

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/deps/pcre/CMakeLists.txt b/deps/pcre/CMakeLists.txt
index 432e774..aff2d75 100644
--- a/deps/pcre/CMakeLists.txt
+++ b/deps/pcre/CMakeLists.txt
@@ -21,6 +21,7 @@ CHECK_TYPE_SIZE("long long"             LONG_LONG)
 CHECK_TYPE_SIZE("unsigned long long"    UNSIGNED_LONG_LONG)
 
 DISABLE_WARNINGS(unused-function)
+DISABLE_WARNINGS(implicit-fallthrough)
 
 # User-configurable options