From 45e2505f686f6712f8291ff11c488ea0e13e1314 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sat, 12 Feb 2022 08:03:01 -0500 Subject: pango-view: Fix compiler warnings --- utils/viewer-render.c | 3 +++ 1 file changed, 3 insertions(+) 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; -- cgit v1.2.1