diff options
author | Benjamin Otte <otte@redhat.com> | 2017-10-24 18:13:45 +0200 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2017-10-24 18:21:03 +0200 |
commit | 8549e62d8595bb6f94b51f2051f8542e357f236b (patch) | |
tree | 02c18a8a28393f163f1ab0136b20772e0a13b309 /gtk/gtkcssselector.c | |
parent | 46f475664d66e25f0cc4212786c441f929a91d05 (diff) | |
download | gtk+-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.c | 1 |
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; } } |