build: fix implicit-fallthrough errors with clang

The clang build fails due to -Werror=implicit-fallthrough being
on by default and some fallthrough cases not being marked as such.

Use G_GNUC_FALLTHROUGH or duplicate the code in those cases.
This commit is contained in:
Christoph Reiter 2021-08-26 05:14:18 +02:00
parent 989ecf69ad
commit a0c147d246

View File

@ -724,7 +724,7 @@ gtk_im_context_ime_focus_out (GtkIMContext *context)
context_ime->priv->pretend_empty_preedit = FALSE; context_ime->priv->pretend_empty_preedit = FALSE;
g_free (utf8str); g_free (utf8str);
} }
/* fallthrough */ G_GNUC_FALLTHROUGH;
case GTK_WIN32_IME_FOCUS_BEHAVIOR_DISCARD: case GTK_WIN32_IME_FOCUS_BEHAVIOR_DISCARD:
gtk_im_context_ime_reset (context); gtk_im_context_ime_reset (context);
@ -1054,7 +1054,7 @@ gtk_im_context_ime_message_filter (GdkWin32Display *display,
default: default:
break; break;
} }
break;
default: default:
break; break;
} }