diff options
author | Joel Stanley <joel@jms.id.au> | 2017-11-16 14:21:18 +1030 |
---|---|---|
committer | Alistair Popple <alistair@popple.id.au> | 2017-11-22 10:26:36 +1100 |
commit | c056b947eb43842c7f752af6b67cca983d316a82 (patch) | |
tree | 2dcf729911e49ec0b9ffe4c0c76ab74822ca490e | |
parent | cd7e2b5b9dc2a025a3e0c5bedeecee983db89e28 (diff) | |
download | pdbg-c056b947eb43842c7f752af6b67cca983d316a82.tar.gz pdbg-c056b947eb43842c7f752af6b67cca983d316a82.zip |
libpdbg: Remove unused __unused from compiler.h
The compiler.h header contains a macro that defines __unused. When
building against uClibc this collides with uClibc_stdio.h:
In file included from /usr/include/stdio.h:71:0,
from libpdbg/fake.c:17:
/usr/include/bits/uClibc_stdio.h:149:16: error: expected identifier or ‘(’ before ‘;’ token
void *__unused; /* Placeholder for codeset binding. */
^
As it is unused in pdbg, remove it.
Signed-off-by: Joel Stanley <joel@jms.id.au>
-rw-r--r-- | libpdbg/compiler.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/libpdbg/compiler.h b/libpdbg/compiler.h index 35bf165..86bd967 100644 --- a/libpdbg/compiler.h +++ b/libpdbg/compiler.h @@ -24,7 +24,6 @@ /* Macros for various compiler bits and pieces */ #define __packed __attribute__((packed)) #define __align(x) __attribute__((__aligned__(x))) -#define __unused __attribute__((unused)) #define __used __attribute__((used)) #define __section(x) __attribute__((__section__(x))) #define __noreturn __attribute__((noreturn)) |