mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Fixed conditional expressions with only one void side
This commit is contained in:
parent
bd3463ee35
commit
a087e027bf
1 changed files with 1 additions and 1 deletions
2
parse.y
2
parse.y
|
@ -955,7 +955,7 @@ static void token_info_warn(struct parser_params *p, const char *token, token_in
|
||||||
|
|
||||||
#define WARN_EOL(tok) \
|
#define WARN_EOL(tok) \
|
||||||
(looking_at_eol_p(p) ? \
|
(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)
|
(void)0)
|
||||||
static int looking_at_eol_p(struct parser_params *p);
|
static int looking_at_eol_p(struct parser_params *p);
|
||||||
%}
|
%}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue