st: Add default case to switch statements

This commit is contained in:
Florian Müllner
2015-09-22 18:47:25 +02:00
parent f983b34784
commit f5e7530fc7
6 changed files with 52 additions and 2 deletions

View File

@ -378,6 +378,9 @@ st_scroll_view_get_preferred_width (ClutterActor *actor,
* but that's not cleanly defined at the moment */
min_width = 0;
break;
default:
g_warn_if_reached();
break;
}
switch (priv->vscrollbar_policy)
@ -396,6 +399,9 @@ st_scroll_view_get_preferred_width (ClutterActor *actor,
*/
account_for_vscrollbar = !priv->overlay_scrollbars;
break;
default:
g_warn_if_reached();
break;
}
if (account_for_vscrollbar)
@ -452,6 +458,9 @@ st_scroll_view_get_preferred_height (ClutterActor *actor,
/* We've requested space for the scrollbar, subtract it back out */
for_width -= sb_width;
break;
default:
g_warn_if_reached();
break;
}
switch (priv->hscrollbar_policy)
@ -470,6 +479,9 @@ st_scroll_view_get_preferred_height (ClutterActor *actor,
*/
account_for_hscrollbar = !priv->overlay_scrollbars;
break;
default:
g_warn_if_reached();
break;
}
clutter_actor_get_preferred_height (priv->child, for_width,
@ -489,6 +501,9 @@ st_scroll_view_get_preferred_height (ClutterActor *actor,
* but that's not cleanly defined at the moment */
min_height = 0;
break;
default:
g_warn_if_reached();
break;
}
if (account_for_hscrollbar)
@ -759,6 +774,9 @@ st_scroll_view_scroll_event (ClutterActor *self,
case CLUTTER_SCROLL_RIGHT:
adjust_with_direction (priv->hadjustment, event->direction);
break;
default:
g_warn_if_reached();
break;
}
return TRUE;