From af4f2157b8732243326a3b65f4cd8eb4104ea670 Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Fri, 17 Feb 2012 12:08:27 +0100 Subject: Fix lua unused-variable warning by introducing UNUSED_ATTR. Change-Id: If19393db123e89e58545c9e0736e6fa32fccb810 --- apps/plugins/lua/rocklib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/plugins/lua') diff --git a/apps/plugins/lua/rocklib.c b/apps/plugins/lua/rocklib.c index 5aadfd2..d89f48f 100644 --- a/apps/plugins/lua/rocklib.c +++ b/apps/plugins/lua/rocklib.c @@ -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 */ -- cgit v1.1