diff options
author | Timm Bäder <tbaeder@redhat.com> | 2020-04-14 16:31:58 +0200 |
---|---|---|
committer | Timm Bäder <tbaeder@redhat.com> | 2020-04-14 16:33:57 +0200 |
commit | 0b3cd20be5249c51ec981a66c07a39d54d1d1c9d (patch) | |
tree | 2d478ecc79f3c0e91f5421f6bfc995f066018213 /pango | |
parent | 3981fff79b368ab007cb1e977741a7fd7bb96821 (diff) | |
download | pango-0b3cd20be5249c51ec981a66c07a39d54d1d1c9d.tar.gz |
Replace fallthrough comments with G_GNUC_FALLTHROUGH
Diffstat (limited to 'pango')
-rw-r--r-- | pango/break.c | 6 | ||||
-rw-r--r-- | pango/pango-renderer.c | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/pango/break.c b/pango/break.c index ca62a28f..44718d82 100644 --- a/pango/break.c +++ b/pango/break.c @@ -405,7 +405,7 @@ pango_default_break (const gchar *text, GB_type = GB_Prepend; break; } - /* fall through */ + G_GNUC_FALLTHROUGH; case G_UNICODE_CONTROL: case G_UNICODE_LINE_SEPARATOR: case G_UNICODE_PARAGRAPH_SEPARATOR: @@ -421,7 +421,7 @@ pango_default_break (const gchar *text, GB_type = GB_ControlCRLF; break; } - /* fall through */ + G_GNUC_FALLTHROUGH; case G_UNICODE_OTHER_LETTER: if (makes_hangul_syllable) @@ -594,7 +594,7 @@ pango_default_break (const gchar *text, case G_UNICODE_CONTROL: if (wc != 0x000D && wc != 0x000A && wc != 0x000B && wc != 0x000C && wc != 0x0085) break; - /* fall through */ + G_GNUC_FALLTHROUGH; case G_UNICODE_LINE_SEPARATOR: case G_UNICODE_PARAGRAPH_SEPARATOR: WB_type = WB_NewlineCRLF; /* CR, LF, Newline */ diff --git a/pango/pango-renderer.c b/pango/pango-renderer.c index 6c0786c5..539df34a 100644 --- a/pango/pango-renderer.c +++ b/pango/pango-renderer.c @@ -227,7 +227,7 @@ draw_underline (PangoRenderer *renderer, rect->y + 2 * rect->height, rect->width, rect->height); - /* Fall through */ + G_GNUC_FALLTHROUGH; case PANGO_UNDERLINE_SINGLE: case PANGO_UNDERLINE_LOW: case PANGO_UNDERLINE_SINGLE_LINE: |