]> granicus.if.org Git - neomutt/commitdiff
build: squash lua warnings
authorRichard Russon <rich@flatcap.org>
Fri, 4 Aug 2017 13:02:03 +0000 (14:02 +0100)
committerRichard Russon <rich@flatcap.org>
Fri, 4 Aug 2017 13:59:09 +0000 (14:59 +0100)
mutt_lua.c

index 9951bd05e5fd1510bd75c7eb777a35ff3b1b8d1e..0942ea47fbf98708da42cb7162d13d458729d8ad 100644 (file)
@@ -320,7 +320,7 @@ static void _lua_expose_command(void *p, const struct Command *cmd)
   snprintf(buf, LONG_STRING,
            "mutt.command.%s = function (...); mutt.call('%s', ...); end",
            cmd->name, cmd->name);
-  luaL_dostring(l, buf);
+  (void) luaL_dostring(l, buf);
 }
 
 static const luaL_Reg luaMuttDecl[] = {
@@ -352,7 +352,7 @@ static int luaopen_mutt_decl(lua_State *l)
 static void luaopen_mutt(lua_State *l)
 {
   luaL_requiref(l, "mutt", luaopen_mutt_decl, 1);
-  luaL_dostring(l, "mutt.command = {}");
+  (void) luaL_dostring(l, "mutt.command = {}");
   mutt_commands_apply((void *) l, &_lua_expose_command);
 }