mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-09 10:39:02 -04:00
Fix a pgsql module warning when building against recent libpq.
This commit is contained in:
parent
5eb21f239b
commit
896ed2b512
@ -37,11 +37,30 @@
|
||||
/// $PackageInfo: require_system("ubuntu") libpq-dev
|
||||
|
||||
|
||||
#ifdef __GNUC__
|
||||
# pragma GCC diagnostic push
|
||||
#endif
|
||||
|
||||
// Fix warnings about the use of commas at end of enumerator lists on C++03.
|
||||
#if defined __clang__
|
||||
# pragma clang diagnostic ignored "-Wc++11-extensions"
|
||||
#elif defined __GNUC__
|
||||
# if (__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 8))
|
||||
# pragma GCC diagnostic ignored "-Wpedantic"
|
||||
# else
|
||||
# pragma GCC diagnostic ignored "-pedantic"
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#include "inspircd.h"
|
||||
#include <cstdlib>
|
||||
#include <libpq-fe.h>
|
||||
#include "modules/sql.h"
|
||||
|
||||
#ifdef __GNUC__
|
||||
# pragma GCC diagnostic pop
|
||||
#endif
|
||||
|
||||
/* SQLConn rewritten by peavey to
|
||||
* use EventHandler instead of
|
||||
* BufferedSocket. This is much neater
|
||||
|
Loading…
x
Reference in New Issue
Block a user