1
0
mirror of https://github.com/cc65/cc65.git synced 2024-06-07 23:29:39 +00:00

Merge pull request #1909 from silverdr/master

Updated ATTR_UNUSED() for clang
This commit is contained in:
Bob Andrews 2022-11-06 14:06:56 +01:00 committed by GitHub
commit 800c30604f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -46,7 +46,7 @@
#ifdef __clang__
# define attribute(a) __attribute__(a)
# define ATTR_UNUSED(x) x
# define ATTR_UNUSED(x) __attribute__((__unused__)) x
# define ATTR_NORETURN __attribute__((analyzer_noreturn))
#elif defined(__GNUC__)
# define attribute(a) __attribute__(a)