From: Thomas Huth Date: Fri, 2 Oct 2020 17:13:43 +0000 (+0200) Subject: tests/test-char: Use a proper fallthrough comment X-Git-Tag: v5.2.0-rc0~57^2~10 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ff82a54bc4ce76ee407c7c42aa64eeec86285bb7;p=thirdparty%2Fqemu.git tests/test-char: Use a proper fallthrough comment For being able to compile with -Werror=implicit-fallthrough we need to use comments that the compiler recognizes. Use "fallthrough" instead of "no break" here. Signed-off-by: Thomas Huth Reviewed-by: Marc-André Lureau Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé Message-Id: <20201002171343.283426-1-thuth@redhat.com> Signed-off-by: Laurent Vivier --- diff --git a/tests/test-char.c b/tests/test-char.c index d35cc839bc6..9196e566e9b 100644 --- a/tests/test-char.c +++ b/tests/test-char.c @@ -70,7 +70,7 @@ static void fe_event(void *opaque, QEMUChrEvent event) h->openclose_mismatch = true; } h->is_open = new_open_state; - /* no break */ + /* fallthrough */ default: quit = true; break;