On Fri, Oct 2, 2020 at 9:14 PM Thomas Huth <th...@redhat.com> wrote: > 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 <th...@redhat.com> >
Reviewed-by: Marc-André Lureau <marcandre.lur...@redhat.com> --- > tests/test-char.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/tests/test-char.c b/tests/test-char.c > index d35cc839bc..9196e566e9 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; > -- > 2.18.2 > > > -- Marc-André Lureau