From: David Griffith Date: Sun, 16 Oct 2022 19:41:28 +0000 (-0700) Subject: Somehow when I converted ux_input.c to K&R-style, this block got indented. X-Git-Url: https://scope-eye.net/git/?a=commitdiff_plain;h=9055b619e06205b500178e317010b700bf63fb64;p=liskon_frotz.git Somehow when I converted ux_input.c to K&R-style, this block got indented. That indented block was causing GCC v12.2.1 from Fedora to throw a warning. --- diff --git a/src/curses/ux_input.c b/src/curses/ux_input.c index 93a1676..b94a938 100644 --- a/src/curses/ux_input.c +++ b/src/curses/ux_input.c @@ -716,13 +716,13 @@ zchar os_read_line (int bufmax, zchar *buf, int timeout, int width, int x2, max; if (scrpos >= width) scrpos = width - 1; - move(y, x + scrpos); - /* Maybe there's a cleaner way to do this, - * but refresh() is still needed here to - * print spaces. --DG - */ - refresh(); - ch = unix_read_char(1); + move(y, x + scrpos); + /* Maybe there's a cleaner way to do this, + * but refresh() is still needed here to + * print spaces. --DG + */ + refresh(); + ch = unix_read_char(1); getyx(stdscr, y, x2); x2++; width = z_header.screen_width - margin;