[gnome-builder/gnome-builder-3-18] workspace: use g_return_if_reached()
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/gnome-builder-3-18] workspace: use g_return_if_reached()
- Date: Tue, 13 Oct 2015 07:39:04 +0000 (UTC)
commit 52093643933de0aa83b5f54b098e81963bef4a64
Author: Christian Hergert <chergert redhat com>
Date: Sat Oct 10 23:27:18 2015 -0400
workspace: use g_return_if_reached()
This doesn't get compiled out in optimized builds, so it is more useful
for us to use this than the assertion to avoid a gcc warning.
src/workspace/gb-slider.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/workspace/gb-slider.c b/src/workspace/gb-slider.c
index 61ade5e..4b34e7c 100644
--- a/src/workspace/gb-slider.c
+++ b/src/workspace/gb-slider.c
@@ -897,8 +897,7 @@ gb_slider_set_position (GbSlider *self,
break;
default:
- g_assert_not_reached ();
- break;
+ g_return_if_reached ();
}
frame_clock = gtk_widget_get_frame_clock (GTK_WIDGET (self));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]