diff options
author | Daniel Stone <daniels@collabora.com> | 2017-04-11 15:09:23 +0100 |
---|---|---|
committer | Daniel Stone <daniels@collabora.com> | 2017-04-11 15:09:23 +0100 |
commit | ce38f96e951b1288a91a4fc3e5ba96607b44b4d5 (patch) | |
tree | e3e8588f138ef180892084f3c5f5386f4c533043 /src/compose | |
parent | 877fe59ac362b4e9afb2979b6e0bc837950a1dad (diff) | |
download | xorg-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.c | 1 |
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"); |