summaryrefslogtreecommitdiff
path: root/gtk/gtkcssselector.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2017-10-24 18:13:45 +0200
committerBenjamin Otte <otte@redhat.com>2017-10-24 18:21:03 +0200
commit8549e62d8595bb6f94b51f2051f8542e357f236b (patch)
tree02c18a8a28393f163f1ab0136b20772e0a13b309 /gtk/gtkcssselector.c
parent46f475664d66e25f0cc4212786c441f929a91d05 (diff)
downloadgtk+-8549e62d8595bb6f94b51f2051f8542e357f236b.tar.gz
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.
Diffstat (limited to 'gtk/gtkcssselector.c')
-rw-r--r--gtk/gtkcssselector.c1
1 files changed, 1 insertions, 0 deletions
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;
}
}