tests/test-char: Use a proper fallthrough comment
authorThomas Huth <thuth@redhat.com>
Fri, 2 Oct 2020 17:13:43 +0000 (19:13 +0200)
committerLaurent Vivier <laurent@vivier.eu>
Tue, 13 Oct 2020 11:33:45 +0000 (13:33 +0200)
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 <thuth@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Tested-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20201002171343.283426-1-thuth@redhat.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
tests/test-char.c

index d35cc839bc60db1884c3f265629b40256cbfb6bb..9196e566e9ba671ed268a31788451ebb2335dc7d 100644 (file)
@@ -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;