summaryrefslogtreecommitdiff
path: root/src/stdafx.h
diff options
context:
space:
mode:
authormilek7 <me@milek7.pl>2021-01-08 01:26:51 +0100
committerCharles Pigott <charlespigott@googlemail.com>2021-01-08 00:40:45 +0000
commit639cfa43d23aa142cabbf2f08ec20a2133b0503e (patch)
tree968674fda66e17259ca719408eeb3a79a7867f90 /src/stdafx.h
parent79d938b9570be94381cf61190d60bfc847fb8c4c (diff)
downloadopenttd-639cfa43d23aa142cabbf2f08ec20a2133b0503e.tar.xz
Codechange: Use access __attribute__ to silence warnings in GCC
Diffstat (limited to 'src/stdafx.h')
-rw-r--r--src/stdafx.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/stdafx.h b/src/stdafx.h
index 12d4fa81d..9e2eb2aef 100644
--- a/src/stdafx.h
+++ b/src/stdafx.h
@@ -136,6 +136,12 @@
# endif
#endif /* __GNUC__ || __clang__ */
+#if defined(__GNUC__)
+# define NOACCESS(args) __attribute__ ((access (none, args)))
+#else
+# define NOACCESS(args)
+#endif
+
#if defined(__WATCOMC__)
# define NORETURN
# define CDECL