diff options
| author | 2021-10-25 23:29:49 +0100 | |
|---|---|---|
| committer | 2021-10-25 23:29:49 +0100 | |
| commit | 11fc0638b58342bddd692f0596f8e2e4514657cc (patch) | |
| tree | 80bc4b29c20ffcb862e9360dc952f083e9dcc631 /src/modules/extra/m_mysql.cpp | |
| parent | Add Server::GetPublicName(), fix not respecting <security:hideserver>. (diff) | |
| download | inspircd++-11fc0638b58342bddd692f0596f8e2e4514657cc.tar.gz inspircd++-11fc0638b58342bddd692f0596f8e2e4514657cc.tar.bz2 inspircd++-11fc0638b58342bddd692f0596f8e2e4514657cc.zip | |
Silence a warning in the mysql module on MySQL 8.0.27.
Diffstat (limited to 'src/modules/extra/m_mysql.cpp')
| -rw-r--r-- | src/modules/extra/m_mysql.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/modules/extra/m_mysql.cpp b/src/modules/extra/m_mysql.cpp index c27427ab1..18076ecc3 100644 --- a/src/modules/extra/m_mysql.cpp +++ b/src/modules/extra/m_mysql.cpp @@ -40,11 +40,18 @@ # pragma GCC diagnostic push #endif -// Fix warnings about the use of `long long` on C++03. +// Fix warnings about the use of commas at end of enumerator lists and long long +// on C++03. #if defined __clang__ +# pragma clang diagnostic ignored "-Wc++11-extensions" # pragma clang diagnostic ignored "-Wc++11-long-long" #elif defined __GNUC__ # pragma GCC diagnostic ignored "-Wlong-long" +# if (__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 8)) +# pragma GCC diagnostic ignored "-Wpedantic" +# else +# pragma GCC diagnostic ignored "-pedantic" +# endif #endif #include "inspircd.h" |
