diff --git a/modules/lua/libs/input.c b/modules/lua/libs/input.c
index 90df1deafb277e3153be576e510adbb986db7457..13c03d34e325134ca813e096e5f0e86fbe462850 100644
--- a/modules/lua/libs/input.c
+++ b/modules/lua/libs/input.c
@@ -62,7 +62,6 @@ static input_item_t* vlclua_input_item_get_internal( lua_State *L );
 static int vlclua_input_item_info( lua_State *L )
 {
     input_item_t *p_item = vlclua_input_item_get_internal( L );
-    int i;
     int i_cat = 0;
 
     info_category_t *p_category;