]> granicus.if.org Git - nethack/commitdiff
fix curses compile warning
authorPatR <rankin@nethack.org>
Sat, 16 Nov 2019 03:03:11 +0000 (19:03 -0800)
committerPatR <rankin@nethack.org>
Sat, 16 Nov 2019 03:03:11 +0000 (19:03 -0800)
From hardfought; latest gcc complains that /* fall through other stuff */
doesn't match its pattern for /* fall through */ comment indicating
that omitted 'break' statement is intentional and one switch case is
deliberately continuing into the code for another.

win/curses/curswins.c

index 0065895107612740e4dd05da45e0fdd9c1839534..81d8ab4353cb534c64006539c3783d8f91a16ed5 100644 (file)
@@ -87,7 +87,7 @@ curses_create_window(int width, int height, orient orientation)
     switch (orientation) {
     default:
         impossible("curses_create_window: Bad orientation");
-        /* fall through to centre */
+        /*FALLTHRU*/
     case CENTER:
         startx = (term_cols / 2) - (width / 2);
         starty = (term_rows / 2) - (height / 2);