diff options
Diffstat (limited to 'src/modules/extra/m_regex_re2.cpp')
-rw-r--r-- | src/modules/extra/m_regex_re2.cpp | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/modules/extra/m_regex_re2.cpp b/src/modules/extra/m_regex_re2.cpp index 544e3060e..c4657bf8b 100644 --- a/src/modules/extra/m_regex_re2.cpp +++ b/src/modules/extra/m_regex_re2.cpp @@ -18,16 +18,20 @@ */ -#if defined __GNUC__ +#include "inspircd.h" +#include "modules/regex.h" + +// Fix warnings about the use of `long long` on C++03 and +// shadowing on GCC. +#if defined __clang__ +# pragma clang diagnostic ignored "-Wc++11-long-long" +#elif defined __GNUC__ +# pragma GCC diagnostic ignored "-Wlong-long" # pragma GCC diagnostic ignored "-Wshadow" #endif -#include "inspircd.h" -#include "modules/regex.h" #include <re2/re2.h> - -/* $CompileFlags: -std=c++11 */ /* $LinkerFlags: -lre2 */ class RE2Regex : public Regex |