summaryrefslogtreecommitdiffhomepage
path: root/opentrack-compat/shm.h
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2015-11-01 08:47:42 +0100
committerStanislaw Halik <sthalik@misaki.pl>2015-11-01 08:49:12 +0100
commit4bbfd73825b1cb6a27e19ea518ad0bed7c806b6c (patch)
tree9b86145b9ee6e6cb70cacbfe3a54e96e5b60b966 /opentrack-compat/shm.h
parentadd27db4e53a9e5cf6580378230b57f81d47284e (diff)
shm: ignore diagnostic for Wine build
Diffstat (limited to 'opentrack-compat/shm.h')
-rw-r--r--opentrack-compat/shm.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/opentrack-compat/shm.h b/opentrack-compat/shm.h
index 53248ac6..c74534e7 100644
--- a/opentrack-compat/shm.h
+++ b/opentrack-compat/shm.h
@@ -19,6 +19,9 @@
#include <sys/types.h>
#endif
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wattributes"
+
#ifdef __GNUC__
# define COMPAT_GNUC_VISIBILITY __attribute__ ((visibility ("default")))
#else
@@ -57,3 +60,5 @@ private:
int fd, size;
#endif
};
+
+#pragma GCC diagnostic pop