From 8a7169eda9f0c1b7b8d7dd2176825c35fb2dca61 Mon Sep 17 00:00:00 2001 From: PatR Date: Fri, 15 Nov 2019 19:03:11 -0800 Subject: [PATCH] fix curses compile warning 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/win/curses/curswins.c b/win/curses/curswins.c index 006589510..81d8ab435 100644 --- a/win/curses/curswins.c +++ b/win/curses/curswins.c @@ -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);