libobs/plugins/UI: Suppress -Wimplicit-fallthrough introduced by GCC 7

Signed-off-by: Shaolin <admshao@gmail.com>
This commit is contained in:
Shaolin
2017-05-29 21:05:18 -03:00
parent d4bd7ea052
commit cb9f767e45
5 changed files with 8 additions and 0 deletions

View File

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

View File

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