Somehow when I converted ux_input.c to K&R-style, this block got indented.
authorDavid Griffith <dave@661.org>
Sun, 16 Oct 2022 19:41:28 +0000 (12:41 -0700)
committerDavid Griffith <dave@661.org>
Sun, 16 Oct 2022 19:41:28 +0000 (12:41 -0700)
That indented block was causing GCC v12.2.1 from Fedora to throw a warning.

src/curses/ux_input.c

index 93a16762a219231ae336bda355dd1e4d23dc48ea..b94a938d37bd775a373021041a7bd81c790c9852 100644 (file)
@@ -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;