From 0eaeb9e50cb6114b0808ee140326ab015c533cee Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 10 Mar 2017 02:29:25 +0300 Subject: Fix compilation warnings with mingw. --- src/enums/gui/chattabtype.h | 9 +++++++++ src/enums/gui/npcactionstate.h | 7 ++++++- 2 files changed, 15 insertions(+), 1 deletion(-) (limited to 'src/enums') diff --git a/src/enums/gui/chattabtype.h b/src/enums/gui/chattabtype.h index 8b032a1f4..f37a98db6 100644 --- a/src/enums/gui/chattabtype.h +++ b/src/enums/gui/chattabtype.h @@ -23,6 +23,13 @@ #include "enums/simpletypes/enumdefines.h" +#ifdef INPUT +#undef INPUT +#endif // INPUT + +PRAGMAMINGW(GCC diagnostic push) +PRAGMAMINGW(GCC diagnostic ignored "-Wshadow") + enumStart(ChatTabType) { UNKNOWN = 0, @@ -39,4 +46,6 @@ enumStart(ChatTabType) } enumEnd(ChatTabType); +PRAGMAMINGW(GCC diagnostic pop) + #endif // ENUMS_GUI_CHATTABTYPE_H diff --git a/src/enums/gui/npcactionstate.h b/src/enums/gui/npcactionstate.h index c044d74aa..d541b3013 100644 --- a/src/enums/gui/npcactionstate.h +++ b/src/enums/gui/npcactionstate.h @@ -26,9 +26,12 @@ #include "enums/simpletypes/enumdefines.h" #ifdef INPUT -#undef +#undef INPUT #endif // INPUT +PRAGMAMINGW(GCC diagnostic push) +PRAGMAMINGW(GCC diagnostic ignored "-Wshadow") + enumStart(NpcActionState) { WAIT = 0, @@ -38,4 +41,6 @@ enumStart(NpcActionState) } enumEnd(NpcActionState); +PRAGMAMINGW(GCC diagnostic pop) + #endif // ENUMS_GUI_NPCACTIONSTATE_H -- cgit v1.2.3-60-g2f50