summaryrefslogtreecommitdiff
path: root/src/modules/extra
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2016-08-19 14:44:17 +0100
committerPeter Powell <petpow@saberuk.com>2016-08-19 16:10:00 +0100
commita6daa312e26532d68ffa70f6cf350baa5d43ca83 (patch)
tree090b5c158e8d1669ed4d81bce6d3834ae9cf8bae /src/modules/extra
parent9f364d430460c07a2abad0f7501e063628b850f1 (diff)
Fix m_mysql warning about use of C++11 features on C++03.
NO_CLIENT_LONG_LONG was removed in a recent version of MySQL.
Diffstat (limited to 'src/modules/extra')
-rw-r--r--src/modules/extra/m_mysql.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/modules/extra/m_mysql.cpp b/src/modules/extra/m_mysql.cpp
index d8dda27a4..e65a8de92 100644
--- a/src/modules/extra/m_mysql.cpp
+++ b/src/modules/extra/m_mysql.cpp
@@ -20,8 +20,12 @@
*/
-/* Stop mysql wanting to use long long */
-#define NO_CLIENT_LONG_LONG
+// Fix warnings about the use of `long long` on C++03.
+#if defined __clang__
+# pragma clang diagnostic ignored "-Wc++11-long-long"
+#elif defined __GNUC__
+# pragma GCC diagnostic ignored "-Wlong-long"
+#endif
#include "inspircd.h"
#include <mysql.h>