summaryrefslogtreecommitdiff
path: root/geometry.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2022-12-10 09:08:33 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2022-12-10 09:08:33 -0800
commitb67c058e2ccc27472b238a6b5dc5e4cd20f6d2bd (patch)
tree8eb225f654ff9fab0a0434be84f72dc3fe7066d4 /geometry.c
parent634f60a9b25b5d03c78e90574adce3e38f378333 (diff)
Eliminate 20 -Wimplicit-fallthrough warnings
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'geometry.c')
-rw-r--r--geometry.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/geometry.c b/geometry.c
index 91ab244..a5bf70c 100644
--- a/geometry.c
+++ b/geometry.c
@@ -2884,17 +2884,18 @@ HandleGeometryFile(XkbFile * file,
info->errorCount++;
break;
case StmtVModDef:
- if (!failWhat)
- failWhat = "virtual modifier";
+ failWhat = "virtual modifier";
+ goto fail;
case StmtInterpDef:
- if (!failWhat)
- failWhat = "symbol interpretation";
+ failWhat = "symbol interpretation";
+ goto fail;
case StmtGroupCompatDef:
- if (!failWhat)
- failWhat = "group compatibility map";
+ failWhat = "group compatibility map";
+ goto fail;
case StmtKeycodeDef:
- if (!failWhat)
- failWhat = "key name";
+ failWhat = "key name";
+ goto fail;
+ fail:
ERROR("Interpretation files may not include other types\n");
ACTION("Ignoring %s definition.\n", failWhat);
info->errorCount++;