From 96d256781571e7123a990817d83a3807e21e9491 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 3 Jun 2017 08:59:09 +0530 Subject: [PATCH] Fix compilation with gcc >= 7 Requires explicit fallthrough comments in switch statements --- kitty/parser.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kitty/parser.c b/kitty/parser.c index ca6195535..45bfdbd8d 100644 --- a/kitty/parser.c +++ b/kitty/parser.c @@ -543,6 +543,7 @@ accumulate_osc(Screen *screen, uint32_t ch, PyObject DUMP_UNUSED *dump_callback) screen->parser_buf_pos--; return true; } + /* fallthrough */ default: if (screen->parser_buf_pos >= PARSER_BUF_SZ - 1) { REPORT_ERROR("OSC sequence too long, truncating."); @@ -594,6 +595,7 @@ accumulate_oth(Screen *screen, uint32_t ch, PyObject DUMP_UNUSED *dump_callback) screen->parser_buf_pos--; return true; } + /* fallthrough */ default: if (screen->parser_buf_pos >= PARSER_BUF_SZ - 1) { REPORT_ERROR("OTH sequence too long, truncating.");