diff options
author | ph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15> | 2014-04-21 16:11:50 +0000 |
---|---|---|
committer | ph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15> | 2014-04-21 16:11:50 +0000 |
commit | 08485470b2bfb9157d5d6f3e6a0b9e5b40583619 (patch) | |
tree | 0c53ee1ca9080b17ea38f4bcfb1ceb80c1d37727 /pcrecpp.cc | |
parent | bba7cd02f727e88c9169a8f70dd179b074be8e89 (diff) | |
download | pcre-08485470b2bfb9157d5d6f3e6a0b9e5b40583619.tar.gz |
Fix C++ compiler warnings and silly quantifier size check.
git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1472 2f5784b3-3f2a-0410-8824-cb99058d5e15
Diffstat (limited to 'pcrecpp.cc')
-rw-r--r-- | pcrecpp.cc | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -511,7 +511,7 @@ int RE::TryMatch(const StringPiece& text, return 0; } - pcre_extra extra = { 0, 0, 0, 0, 0, 0 }; + pcre_extra extra = { 0, 0, 0, 0, 0, 0, 0, 0 }; if (options_.match_limit() > 0) { extra.flags |= PCRE_EXTRA_MATCH_LIMIT; extra.match_limit = options_.match_limit(); @@ -660,6 +660,8 @@ int RE::NumberOfCapturingGroups() const { /***** Parsers for various types *****/ bool Arg::parse_null(const char* str, int n, void* dest) { + (void)str; + (void)n; // We fail if somebody asked us to store into a non-NULL void* pointer return (dest == NULL); } |