Codechange: Use __attribute__ access none to silence GCC 11 -Wmaybe-uninitialized warnings (#9124)

This commit is contained in:
Milek7
2021-04-28 23:06:47 +02:00
committed by GitHub
parent 267703c14b
commit 8e9eca6ddd
2 changed files with 14 additions and 8 deletions

View File

@@ -138,6 +138,12 @@
# endif
#endif /* __GNUC__ || __clang__ */
#if __GNUC__ > 11 || (__GNUC__ == 11 && __GNUC_MINOR__ >= 1)
# define NOACCESS(args) __attribute__ ((access (none, args)))
#else
# define NOACCESS(args)
#endif
#if defined(__WATCOMC__)
# define NORETURN
# define CDECL