summaryrefslogtreecommitdiff
path: root/src/compose
diff options
context:
space:
mode:
authorDaniel Stone <daniels@collabora.com>2017-04-11 15:09:23 +0100
committerDaniel Stone <daniels@collabora.com>2017-04-11 15:09:23 +0100
commitce38f96e951b1288a91a4fc3e5ba96607b44b4d5 (patch)
treee3e8588f138ef180892084f3c5f5386f4c533043 /src/compose
parent877fe59ac362b4e9afb2979b6e0bc837950a1dad (diff)
downloadxorg-lib-libxkbcommon-ce38f96e951b1288a91a4fc3e5ba96607b44b4d5.tar.gz
Add explicit fallthrough case statements
When we fall through to another label in a case, add an explicit comment noting so, to quiet GCC 7's warnings. Signed-off-by: Daniel Stone <daniels@collabora.com>
Diffstat (limited to 'src/compose')
-rw-r--r--src/compose/parser.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/compose/parser.c b/src/compose/parser.c
index fd2dca9..2ca1653 100644
--- a/src/compose/parser.c
+++ b/src/compose/parser.c
@@ -655,6 +655,7 @@ rhs:
}
production.keysym = keysym;
production.has_keysym = true;
+ /* fallthrough */
case TOK_END_OF_LINE:
if (!production.has_string && !production.has_keysym) {
scanner_warn(s, "right-hand side must have at least one of string or keysym; skipping line");