diff src/if_lua.c @ 4135:688da4d486a0 v7.3.820

updated for version 7.3.820 Problem: Build errors and warnings when building with small features and Lua, Perl or Ruby. Solution: Add #ifdefs and UNUSED.
author Bram Moolenaar <bram@vim.org>
date Thu, 14 Feb 2013 22:19:51 +0100
parents 3c072c1cb873
children c5eab656ec51
line wrap: on
line diff
--- a/src/if_lua.c
+++ b/src/if_lua.c
@@ -845,8 +845,9 @@ luaV_dict_len (lua_State *L)
 }
 
     static int
-luaV_dict_iter (lua_State *L)
+luaV_dict_iter (lua_State *L UNUSED)
 {
+#ifdef FEAT_EVAL
     hashitem_T *hi = (hashitem_T *) lua_touserdata(L, lua_upvalueindex(2));
     int n = lua_tointeger(L, lua_upvalueindex(3));
     dictitem_T *di;
@@ -860,6 +861,9 @@ luaV_dict_iter (lua_State *L)
     lua_pushinteger(L, n - 1);
     lua_replace(L, lua_upvalueindex(3));
     return 2;
+#else
+    return 0;
+#endif
 }
 
     static int