Skip to content

Commit

Permalink
Fixed conditional expressions with only one void side
Browse files Browse the repository at this point in the history
  • Loading branch information
nobu committed Nov 4, 2019
1 parent bd3463e commit a087e02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion parse.y
Expand Up @@ -955,7 +955,7 @@ static void token_info_warn(struct parser_params *p, const char *token, token_in

#define WARN_EOL(tok) \
(looking_at_eol_p(p) ? \
rb_warning0("`" tok "' at the end of line without an expression") : \
(void)rb_warning0("`" tok "' at the end of line without an expression") : \
(void)0)
static int looking_at_eol_p(struct parser_params *p);
%}
Expand Down

0 comments on commit a087e02

Please sign in to comment.