summaryrefslogtreecommitdiff
path: root/src/plugins/HPMHooking.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-08-08 23:17:14 +0300
committerAndrei Karas <akaras@inbox.ru>2017-08-08 23:48:52 +0300
commita1a9ce04eeefb5ff00b2101732ef3f5e02d36093 (patch)
tree0b4035b6267ffe9dc107add4a5ea859eb587cae3 /src/plugins/HPMHooking.c
parent7255abb636e3a2e4fc06ec5f51ed8750bb48f408 (diff)
downloadhercules-a1a9ce04eeefb5ff00b2101732ef3f5e02d36093.tar.gz
hercules-a1a9ce04eeefb5ff00b2101732ef3f5e02d36093.tar.bz2
hercules-a1a9ce04eeefb5ff00b2101732ef3f5e02d36093.tar.xz
hercules-a1a9ce04eeefb5ff00b2101732ef3f5e02d36093.zip
Disable warning -Wdiscarded-qualifiers in hpm code for now.
Diffstat (limited to 'src/plugins/HPMHooking.c')
-rw-r--r--src/plugins/HPMHooking.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/plugins/HPMHooking.c b/src/plugins/HPMHooking.c
index a5354211d..6d6184402 100644
--- a/src/plugins/HPMHooking.c
+++ b/src/plugins/HPMHooking.c
@@ -26,6 +26,8 @@
#include "common/mmo.h"
#include "common/socket.h"
+PRAGMA_GCC5(GCC diagnostic push)
+PRAGMA_GCC5(GCC diagnostic ignored "-Wdiscarded-qualifiers")
#if defined (HPMHOOKING_LOGIN)
#define HPM_SERVER_TYPE SERVER_TYPE_LOGIN
#define HPM_CORE_INCLUDE "HPMHooking/HPMHooking_login.HPMHooksCore.inc"
@@ -109,6 +111,7 @@
#define HPM_SOURCES_INCLUDE "HPMHooking/HPMHooking.sources.inc"
#error HPMHooking plugin needs to be compiled for a specific server type. Please make sure your Makefiles are up to date.
#endif
+PRAGMA_GCC5(GCC diagnostic pop)
#include "common/conf.h"
#include "common/console.h"
#include "common/db.h"
@@ -212,7 +215,10 @@ HPExport bool HPM_Plugin_AddHook(enum HPluginHookType type, const char *target,
return false;
}
+PRAGMA_GCC5(GCC diagnostic push)
+PRAGMA_GCC5(GCC diagnostic ignored "-Wdiscarded-qualifiers")
#include HPM_HOOKS_INCLUDE
+PRAGMA_GCC5(GCC diagnostic pop)
void HPM_HP_final(void) {
int i, len = HPMHooks.data.total * 2;