Use G_GNUC_FALLTHROUGH where appropriate

This commit is contained in:
Benjamin Otte
2018-09-02 20:47:32 +02:00
parent 95477a4e35
commit 3aff811d13
8 changed files with 21 additions and 7 deletions

View File

@@ -210,10 +210,7 @@ token_stream_prepare (TokenStream *stream)
break;
}
else
{
/* ↓↓↓ */
}
G_GNUC_FALLTHROUGH;
case 'a': /* 'b' */ case 'c': case 'd': case 'e': case 'f':
case 'g': case 'h': case 'i': case 'j': case 'k': case 'l':
@@ -1646,6 +1643,8 @@ string_parse (TokenStream *stream,
case '\n': i++; continue;
}
G_GNUC_FALLTHROUGH;
default:
str[j++] = token[i++];
}
@@ -1773,6 +1772,8 @@ bytestring_parse (TokenStream *stream,
case '\n': i++; continue;
}
G_GNUC_FALLTHROUGH;
default:
str[j++] = token[i++];
}