summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2019-01-13 10:09:13 +0000
committerEdward Thomson <ethomson@edwardthomson.com>2019-05-19 11:12:13 +0100
commite4b2ef87c75ea48cba55bb32c327051ca82ddd90 (patch)
tree2784721566c49cde0bf8e1b9119b53a8c2985e7e
parent8877d7d3a0a3de9c367e76965588d27930547097 (diff)
downloadlibgit2-e4b2ef87c75ea48cba55bb32c327051ca82ddd90.tar.gz
regex: don't warn on unused functions
PCRE includes compatibility functions that may go unused. Don't warn.
-rw-r--r--deps/pcre/CMakeLists.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/deps/pcre/CMakeLists.txt b/deps/pcre/CMakeLists.txt
index e9827c7d3..432e774bb 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)