Codechange: Use access __attribute__ to silence warnings in GCC

This commit is contained in:
milek7
2021-01-08 01:26:51 +01:00
committed by Charles Pigott
parent 79d938b957
commit 639cfa43d2
2 changed files with 14 additions and 8 deletions

View File

@@ -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