From 2a3cdeadf11d29a2321d5d19929c82f19d8ec186 Mon Sep 17 00:00:00 2001 From: Joshua Leung Date: Sun, 4 May 2014 23:28:27 +1200 Subject: Fixes for errors uncovered after previous commit --- .../editors/animation/anim_channels_defines.c | 23 ++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) (limited to 'source/blender/editors/animation') diff --git a/source/blender/editors/animation/anim_channels_defines.c b/source/blender/editors/animation/anim_channels_defines.c index 55253c81c6c..3e0b26f2c6f 100644 --- a/source/blender/editors/animation/anim_channels_defines.c +++ b/source/blender/editors/animation/anim_channels_defines.c @@ -859,10 +859,11 @@ static int acf_group_setting_flag(bAnimContext *ac, eAnimChannel_Settings settin case ACHANNEL_SETTING_VISIBLE: /* visibility - graph editor */ *neg = 1; return AGRP_NOTVISIBLE; + + default: + /* this shouldn't happen */ + return 0; } - - /* this shouldn't happen */ - return 0; } /* get pointer to the setting */ @@ -2456,7 +2457,7 @@ static int acf_gpd_icon(bAnimListElem *UNUSED(ale)) } /* check if some setting exists for this channel */ -static bool acf_gpd_setting_valid(bAnimContext *UNUSED(ac), bAnimListElem *UNUSED(ale), int setting) +static bool acf_gpd_setting_valid(bAnimContext *UNUSED(ac), bAnimListElem *UNUSED(ale), eAnimChannel_Settings setting) { switch (setting) { /* only select and expand supported */ @@ -2481,10 +2482,11 @@ static int acf_gpd_setting_flag(bAnimContext *UNUSED(ac), eAnimChannel_Settings case ACHANNEL_SETTING_EXPAND: /* expanded */ return GP_DATA_EXPAND; + + default: + /* these shouldn't happen */ + return 0; } - - /* this shouldn't happen */ - return 0; } /* get pointer to the setting */ @@ -2646,10 +2648,11 @@ static int acf_mask_setting_flag(bAnimContext *UNUSED(ac), eAnimChannel_Settings case ACHANNEL_SETTING_EXPAND: /* expanded */ return MASK_ANIMF_EXPAND; + + default: + /* this shouldn't happen */ + return 0; } - - /* this shouldn't happen */ - return 0; } /* get pointer to the setting */ -- cgit v1.2.3