mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
Fix lua unused-variable warning by introducing UNUSED_ATTR.
Change-Id: If19393db123e89e58545c9e0736e6fa32fccb810
This commit is contained in:
parent
885ecf8327
commit
af4f2157b8
2 changed files with 8 additions and 1 deletions
|
@ -185,7 +185,7 @@ static inline void rli_init(lua_State *L)
|
|||
* -----------------------------
|
||||
*/
|
||||
|
||||
#define RB_WRAP(M) static int rock_##M(lua_State *L)
|
||||
#define RB_WRAP(M) static int rock_##M(lua_State UNUSED_ATTR *L)
|
||||
#define SIMPLE_VOID_WRAPPER(func) RB_WRAP(func) { (void)L; func(); return 0; }
|
||||
|
||||
/* Helper function for opt_viewport */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue