st: Handle all possible enum values in switch statements

This commit is contained in:
Florian Müllner 2015-09-23 20:11:34 +02:00
parent 36bbe64898
commit f983b34784
2 changed files with 8 additions and 0 deletions

View File

@ -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;
}

View File

@ -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 ();
}