From a087e027bf7cf0fbb825f1d55668f85ab1f3c9e6 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Tue, 5 Nov 2019 01:32:26 +0900 Subject: Fixed conditional expressions with only one void side --- parse.y | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'parse.y') diff --git a/parse.y b/parse.y index 61c1174074..5295c6333e 100644 --- a/parse.y +++ b/parse.y @@ -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); %} -- cgit v1.2.3