mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-04-24 16:16:52 +02:00
glib/giowin32.c: Add G_GNUC_FALLTHROUGH annotation
Fixes the following warning on CLang: ../glib/glib/giowin32.c:1665:7: warning: unannotated fall-through between switch labels [-Wimplicit-fallthrough] default: ^ ../glib/glib/giowin32.c:1665:7: note: insert '__attribute__((fallthrough));' to silence this warning default: ^ __attribute__((fallthrough)); ../glib/glib/giowin32.c:1665:7: note: insert 'break;' to avoid fall-through default: ^ break;
This commit is contained in:
parent
985cab7737
commit
f075db637a
@ -1661,7 +1661,7 @@ g_io_channel_new_file (const gchar *filename,
|
|||||||
mode_num |= MODE_PLUS;
|
mode_num |= MODE_PLUS;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
/* Fall through */
|
G_GNUC_FALLTHROUGH;
|
||||||
default:
|
default:
|
||||||
g_warning ("Invalid GIOFileMode %s.", mode);
|
g_warning ("Invalid GIOFileMode %s.", mode);
|
||||||
return NULL;
|
return NULL;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user