summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2017-10-24 16:58:06 +0100
committerEmmanuele Bassi <ebassi@gnome.org>2017-10-24 16:58:06 +0100
commit46f475664d66e25f0cc4212786c441f929a91d05 (patch)
treeca363020b80f511fbb98e0a1e3eb89ae9a2854df
parent6c74a8c7552ec2788a0bb8d7a249e39262c3f5a9 (diff)
downloadgtk+-46f475664d66e25f0cc4212786c441f929a91d05.tar.gz
Add a return value
When building with G_DISABLE_ASSERT, the g_assert_not_reached() statement won't do anything, and we're going to fall through, and the compiler will emit a warning that we're not returning anything from a function with a return value.
-rw-r--r--gdk/wayland/gdkwindow-wayland.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gdk/wayland/gdkwindow-wayland.c b/gdk/wayland/gdkwindow-wayland.c
index bb15eb1820..2d738a63ca 100644
--- a/gdk/wayland/gdkwindow-wayland.c
+++ b/gdk/wayland/gdkwindow-wayland.c
@@ -1617,6 +1617,9 @@ rect_anchor_to_anchor (GdkGravity rect_anchor)
default:
g_assert_not_reached ();
}
+
+ return (ZXDG_POSITIONER_V6_ANCHOR_TOP |
+ ZXDG_POSITIONER_V6_ANCHOR_LEFT);
}
static enum zxdg_positioner_v6_gravity
@@ -1650,6 +1653,9 @@ window_anchor_to_gravity (GdkGravity rect_anchor)
default:
g_assert_not_reached ();
}
+
+ return (ZXDG_POSITIONER_V6_GRAVITY_BOTTOM |
+ ZXDG_POSITIONER_V6_GRAVITY_RIGHT);
}
static GdkWindow *