summaryrefslogtreecommitdiffhomepage
path: root/opentrack-compat/shm.h
diff options
context:
space:
mode:
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