diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2021-11-22 19:01:07 -0800 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2021-11-22 19:01:07 -0800 |
commit | 76329c0206ede0a986da423e6a813ef91334f6cd (patch) | |
tree | 5a70ab28b4d10e92b0e2ca8e12efc99f2b8fd425 /src/lcurses | |
parent | e77f3eb9f9cfbd79f56c666545e96d00cb752695 (diff) | |
download | teliva-76329c0206ede0a986da423e6a813ef91334f6cd.tar.gz |
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.
Diffstat (limited to 'src/lcurses')
-rw-r--r-- | src/lcurses/compat-5.2.c | 2 | ||||
-rw-r--r-- | src/lcurses/window.c | 4 |
2 files changed, 3 insertions, 3 deletions
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); |