mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-09-28 02:06:12 -04:00
libobs/plugins/UI: Suppress -Wimplicit-fallthrough introduced by GCC 7
Signed-off-by: Shaolin <admshao@gmail.com>
This commit is contained in:
@@ -228,12 +228,14 @@ static void ep_parse_struct(struct effect_parser *ep)
|
||||
|
||||
case PARSE_UNEXPECTED_CONTINUE:
|
||||
cf_adderror_syntax_error(&ep->cfp);
|
||||
/* Falls through. */
|
||||
case PARSE_CONTINUE:
|
||||
ep_var_free(&var);
|
||||
continue;
|
||||
|
||||
case PARSE_UNEXPECTED_BREAK:
|
||||
cf_adderror_syntax_error(&ep->cfp);
|
||||
/* Falls through. */
|
||||
case PARSE_BREAK:
|
||||
ep_var_free(&var);
|
||||
do_break = true;
|
||||
|
||||
@@ -277,12 +277,14 @@ static void sp_parse_struct(struct shader_parser *sp)
|
||||
|
||||
case PARSE_UNEXPECTED_CONTINUE:
|
||||
cf_adderror_syntax_error(&sp->cfp);
|
||||
/* Falls through. */
|
||||
case PARSE_CONTINUE:
|
||||
shader_var_free(&var);
|
||||
continue;
|
||||
|
||||
case PARSE_UNEXPECTED_BREAK:
|
||||
cf_adderror_syntax_error(&sp->cfp);
|
||||
/* Falls through. */
|
||||
case PARSE_BREAK:
|
||||
shader_var_free(&var);
|
||||
do_break = true;
|
||||
|
||||
@@ -123,6 +123,7 @@ static bool cf_is_token_break(struct base_token *start_token,
|
||||
start_token->type = BASETOKEN_DIGIT;
|
||||
break;
|
||||
}
|
||||
/* Falls through. */
|
||||
|
||||
case BASETOKEN_NONE:
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user