From 8549e62d8595bb6f94b51f2051f8542e357f236b Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Tue, 24 Oct 2017 18:13:45 +0200 Subject: Add default return values to switch statements We are using g_assert_not_reached() without doing anything, assuming it aborts the program. In release builds however, it is ignored. --- gtk/gtkcssselector.c | 1 + 1 file changed, 1 insertion(+) (limited to 'gtk/gtkcssselector.c') diff --git a/gtk/gtkcssselector.c b/gtk/gtkcssselector.c index 241a690230..961e78ea5c 100644 --- a/gtk/gtkcssselector.c +++ b/gtk/gtkcssselector.c @@ -876,6 +876,7 @@ change_pseudoclass_position (const GtkCssSelector *selector) return GTK_CSS_CHANGE_FIRST_CHILD | GTK_CSS_CHANGE_LAST_CHILD; default: g_assert_not_reached (); + return 0; } } -- cgit v1.2.1