[pango/minor-cleanups: 1/4] pango-view: Fix compiler warnings
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pango/minor-cleanups: 1/4] pango-view: Fix compiler warnings
- Date: Tue, 15 Feb 2022 13:50:43 +0000 (UTC)
commit f28c8fd956aae44b0a26e09b3cefcfa9d3762b66
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Feb 12 08:03:01 2022 -0500
pango-view: Fix compiler warnings
utils/viewer-render.c | 3 +++
utils/viewer-x.c | 2 ++
2 files changed, 5 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;
diff --git a/utils/viewer-x.c b/utils/viewer-x.c
index ad1c9a8d..02c688ea 100644
--- a/utils/viewer-x.c
+++ b/utils/viewer-x.c
@@ -213,6 +213,8 @@ x_view_display (gpointer instance,
case Expose:
expose (&xev.xexpose, &update_region);
break;
+ default:
+ break;
}
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]