1
0
Fork 0
forked from len0rd/rockbox

Fix lua unused-variable warning by introducing UNUSED_ATTR.

Change-Id: If19393db123e89e58545c9e0736e6fa32fccb810
This commit is contained in:
Thomas Martitz 2012-02-17 12:08:27 +01:00
parent 885ecf8327
commit af4f2157b8
2 changed files with 8 additions and 1 deletions

View file

@ -66,4 +66,11 @@
#define USED_ATTR
#endif
#if defined(__GNUC__) && (__GNUC__ >= 3)
#define UNUSED_ATTR __attribute__((unused))
#else
#define UNUSED_ATTR
#endif
#endif /* _GCC_EXTENSIONS_H_ */