summaryrefslogtreecommitdiff
path: root/utils/viewer-render.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2022-02-12 08:03:01 -0500
committerMatthias Clasen <mclasen@redhat.com>2022-02-15 07:50:34 -0600
commitf28c8fd956aae44b0a26e09b3cefcfa9d3762b66 (patch)
tree5ac5cdaa51f07bb0642511a3cbe3ad017f480a6a /utils/viewer-render.c
parentbcf61fc3a0c30da173c8629d1458fe3440288878 (diff)
downloadpango-f28c8fd956aae44b0a26e09b3cefcfa9d3762b66.tar.gz
pango-view: Fix compiler warnings
Diffstat (limited to 'utils/viewer-render.c')
-rw-r--r--utils/viewer-render.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/utils/viewer-render.c b/utils/viewer-render.c
index 8816f06f..d5ca5e3e 100644
--- a/utils/viewer-render.c
+++ b/utils/viewer-render.c
@@ -709,6 +709,7 @@ parse_margin (const char *name G_GNUC_UNUSED,
{
switch (sscanf (arg, "%d%*[ ,]%d%*[ ,]%d%*[ ,]%d", &opt_margin_t, &opt_margin_r, &opt_margin_b, &opt_margin_l))
{
+ default:
case 0:
{
g_set_error(error,
@@ -718,7 +719,9 @@ parse_margin (const char *name G_GNUC_UNUSED,
return FALSE;
}
case 1: opt_margin_r = opt_margin_t;
+ G_GNUC_FALLTHROUGH;
case 2: opt_margin_b = opt_margin_t;
+ G_GNUC_FALLTHROUGH;
case 3: opt_margin_l = opt_margin_r;
}
return TRUE;