diff options
| author | Thomas Martitz <kugel@rockbox.org> | 2012-02-17 12:08:27 +0100 |
|---|---|---|
| committer | Thomas Martitz <kugel@rockbox.org> | 2012-02-17 12:08:27 +0100 |
| commit | af4f2157b8732243326a3b65f4cd8eb4104ea670 (patch) | |
| tree | 73abc284b332f01829a61e34df54bd89b1ea5c93 /firmware/include | |
| parent | 885ecf832703ecc28eeb2476451fea2e8e3fa43e (diff) | |
| download | rockbox-af4f2157b8732243326a3b65f4cd8eb4104ea670.zip rockbox-af4f2157b8732243326a3b65f4cd8eb4104ea670.tar.gz rockbox-af4f2157b8732243326a3b65f4cd8eb4104ea670.tar.bz2 rockbox-af4f2157b8732243326a3b65f4cd8eb4104ea670.tar.xz | |
Fix lua unused-variable warning by introducing UNUSED_ATTR.
Change-Id: If19393db123e89e58545c9e0736e6fa32fccb810
Diffstat (limited to 'firmware/include')
| -rw-r--r-- | firmware/include/gcc_extensions.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/firmware/include/gcc_extensions.h b/firmware/include/gcc_extensions.h index 2735d6e..390e57d 100644 --- a/firmware/include/gcc_extensions.h +++ b/firmware/include/gcc_extensions.h @@ -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_ */ |