Commit e4b2ef87c75ea48cba55bb32c327051ca82ddd90

Edward Thomson 2019-01-13T10:09:13

regex: don't warn on unused functions PCRE includes compatibility functions that may go unused. Don't warn.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/deps/pcre/CMakeLists.txt b/deps/pcre/CMakeLists.txt
index e9827c7..432e774 100644
--- a/deps/pcre/CMakeLists.txt
+++ b/deps/pcre/CMakeLists.txt
@@ -20,6 +20,8 @@ CHECK_FUNCTION_EXISTS(_strtoi64 HAVE__STRTOI64)
 CHECK_TYPE_SIZE("long long"             LONG_LONG)
 CHECK_TYPE_SIZE("unsigned long long"    UNSIGNED_LONG_LONG)
 
+DISABLE_WARNINGS(unused-function)
+
 # User-configurable options
 
 SET(SUPPORT_PCRE8 1)