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/localconsts.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/localconsts.h') diff --git a/src/localconsts.h b/src/localconsts.h index 4734ebd50..08b64e0d9 100644 --- a/src/localconsts.h +++ b/src/localconsts.h @@ -351,6 +351,14 @@ PRAGMA45(GCC diagnostic pop) #define USE_FILE_FOPEN 1 +#ifdef __MINGW32__ +#define PRAGMAMINGW(str) _Pragma(#str) +#define A_WIN_UNUSED __attribute__ ((unused)) +#else // __MINGW32__ +#define PRAGMAMINGW(str) +#define A_WIN_UNUSED +#endif // __MINGW32__ + #ifdef DYECMD #undef USE_FUZZER #endif // DYECMD -- cgit v1.2.3-60-g2f50