summaryrefslogtreecommitdiff
path: root/src/localconsts.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-03-10 02:29:25 +0300
committerAndrei Karas <akaras@inbox.ru>2017-03-10 02:29:25 +0300
commit0eaeb9e50cb6114b0808ee140326ab015c533cee (patch)
treea8a448b59460fccec64b3ef17ed0182f1b337d64 /src/localconsts.h
parent50c489bc7a36972186cdb843c0582195f37e4549 (diff)
downloadmv-0eaeb9e50cb6114b0808ee140326ab015c533cee.tar.gz
mv-0eaeb9e50cb6114b0808ee140326ab015c533cee.tar.bz2
mv-0eaeb9e50cb6114b0808ee140326ab015c533cee.tar.xz
mv-0eaeb9e50cb6114b0808ee140326ab015c533cee.zip
Fix compilation warnings with mingw.
Diffstat (limited to 'src/localconsts.h')
-rw-r--r--src/localconsts.h8
1 files changed, 8 insertions, 0 deletions
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