mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-01 08:20:36 +00:00
Merge branch 'wip/baedert/for-master' into 'main'
build: Make GCC ignore fallthrough comments Closes #4663 See merge request GNOME/gtk!4419
This commit is contained in:
commit
a37584a404
@ -200,7 +200,7 @@ gtk_gesture_single_handle_event (GtkEventController *controller,
|
||||
case GDK_TOUCHPAD_HOLD:
|
||||
if (gdk_touchpad_event_get_n_fingers (event) == 1)
|
||||
return FALSE;
|
||||
/* fallthrough */
|
||||
G_GNUC_FALLTHROUGH;
|
||||
case GDK_TOUCH_CANCEL:
|
||||
case GDK_GRAB_BROKEN:
|
||||
case GDK_TOUCHPAD_SWIPE:
|
||||
|
@ -298,7 +298,8 @@ elif cc.get_id() == 'gcc' or cc.get_id() == 'clang'
|
||||
'array-bounds',
|
||||
'empty-body',
|
||||
'implicit',
|
||||
'implicit-fallthrough',
|
||||
'implicit-fallthrough', # For non-gcc
|
||||
'implicit-fallthrough=5', # For GCC, only recognize the attribute and no comments
|
||||
'init-self',
|
||||
'int-to-pointer-cast',
|
||||
'main',
|
||||
|
Loading…
Reference in New Issue
Block a user