diff options
author | Thomas Huth <thuth@redhat.com> | 2020-10-02 19:13:43 +0200 |
---|---|---|
committer | Laurent Vivier <laurent@vivier.eu> | 2020-10-13 13:33:45 +0200 |
commit | ff82a54bc4ce76ee407c7c42aa64eeec86285bb7 (patch) | |
tree | 2dd07c328863aa2043b32f8d501ccd815cc360ff | |
parent | 009f51df0e697bab4578037092057ac398fd15f4 (diff) | |
download | qemu-ff82a54bc4ce76ee407c7c42aa64eeec86285bb7.zip qemu-ff82a54bc4ce76ee407c7c42aa64eeec86285bb7.tar.gz qemu-ff82a54bc4ce76ee407c7c42aa64eeec86285bb7.tar.bz2 |
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 <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>
-rw-r--r-- | tests/test-char.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test-char.c b/tests/test-char.c index d35cc83..9196e56 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; |