[gnome-shell] st: Handle all possible enum values in switch statements
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] st: Handle all possible enum values in switch statements
- Date: Wed, 23 Sep 2015 19:56:54 +0000 (UTC)
commit f983b34784e3603889ba73820e51e64fe8382ee9
Author: Florian Müllner <fmuellner gnome org>
Date: Wed Sep 23 20:11:34 2015 +0200
st: Handle all possible enum values in switch statements
src/st/st-theme.c | 4 ++++
src/st/st-widget.c | 4 ++++
2 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/src/st/st-theme.c b/src/st/st-theme.c
index 2dab983..9ad40f7 100644
--- a/src/st/st-theme.c
+++ b/src/st/st-theme.c
@@ -909,6 +909,10 @@ add_matched_properties (StTheme *a_this,
}
}
break;
+ case AT_RULE_STMT:
+ case AT_PAGE_RULE_STMT:
+ case AT_CHARSET_RULE_STMT:
+ case AT_FONT_FACE_RULE_STMT:
default:
break;
}
diff --git a/src/st/st-widget.c b/src/st/st-widget.c
index c0968c8..d93f1a4 100644
--- a/src/st/st-widget.c
+++ b/src/st/st-widget.c
@@ -1849,6 +1849,8 @@ filter_by_position (GList *children,
continue;
break;
+ case GTK_DIR_TAB_BACKWARD:
+ case GTK_DIR_TAB_FORWARD:
default:
g_return_val_if_reached (NULL);
}
@@ -2014,6 +2016,8 @@ st_widget_real_navigate_focus (StWidget *widget,
case GTK_DIR_RIGHT:
sort_box.x2 = sort_box.x1;
break;
+ case GTK_DIR_TAB_FORWARD:
+ case GTK_DIR_TAB_BACKWARD:
default:
g_warn_if_reached ();
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]