[mutter/wip/fmuellner/shut-up-compiler-warning] clutter: Shut up a compiler warning
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/wip/fmuellner/shut-up-compiler-warning] clutter: Shut up a compiler warning
- Date: Thu, 24 Jan 2019 22:11:43 +0000 (UTC)
commit 3f074f187ad09e3200a1124b644fed5b9c49d079
Author: Florian Müllner <fmuellner gnome org>
Date: Thu Jan 24 23:09:15 2019 +0100
clutter: Shut up a compiler warning
g_assert_not_reached() can be disabled at compile time, resulting in
the compiler complaining about a missing return.
https://gitlab.gnome.org/GNOME/mutter/issues/447
clutter/clutter/clutter-pan-action.c | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/clutter/clutter/clutter-pan-action.c b/clutter/clutter/clutter-pan-action.c
index fa08efaf9..3bfb897ae 100644
--- a/clutter/clutter/clutter-pan-action.c
+++ b/clutter/clutter/clutter-pan-action.c
@@ -961,6 +961,7 @@ clutter_pan_action_get_motion_delta (ClutterPanAction *self,
return clutter_pan_action_get_interpolated_delta (self, delta_x, delta_y);
default:
g_assert_not_reached ();
+ return 0.0f; // Avoid compiler warning with G_DISABLE_ASSERT
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]