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

@ -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 */