From 76329c0206ede0a986da423e6a813ef91334f6cd Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Mon, 22 Nov 2021 19:01:07 -0800 Subject: standardize warning flags everywhere I'd like to enable -Wextra as well, but that creates some false positives. I've at least made my changes clean w.r.t. -Wextra. Now we have 4 remaining warnings with gcc 9.3 that seem genuine. Need to fix those. --- src/lcurses/compat-5.2.c | 2 +- src/lcurses/window.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/lcurses') diff --git a/src/lcurses/compat-5.2.c b/src/lcurses/compat-5.2.c index 89eb73b..bdbd8a4 100644 --- a/src/lcurses/compat-5.2.c +++ b/src/lcurses/compat-5.2.c @@ -530,7 +530,7 @@ void lua_len (lua_State *L, int i) { case LUA_TUSERDATA: if (luaL_callmeta(L, i, "__len")) break; - /* maybe fall through */ + /* maybe fall through */ default: luaL_error(L, "attempt to get length of a %s value", lua_typename(L, lua_type(L, i))); diff --git a/src/lcurses/window.c b/src/lcurses/window.c index 9c243ea..82d8dfe 100644 --- a/src/lcurses/window.c +++ b/src/lcurses/window.c @@ -1304,7 +1304,7 @@ Read a character from the window input. @see curses.echo @see keypad */ -extern void switch_to_editor (lua_State *L, const char *message); +extern void switch_to_editor (lua_State *L); static int Wgetch(lua_State *L) { @@ -1316,7 +1316,7 @@ Wgetch(lua_State *L) if (c == 24) /* ctrl-x */ exit(0); if (c == 5) /* ctrl-e */ - switch_to_editor(L, ""); + switch_to_editor(L); /* handle other standard menu hotkeys here */ return pushintresult(c); -- cgit 1.4.1-2-gfad0