ruby-changes:58564
From: Nobuyoshi <ko1@a...>
Date: Tue, 5 Nov 2019 01:33:13 +0900 (JST)
Subject: [ruby-changes:58564] a087e027bf (master): Fixed conditional expressions with only one void side
https://git.ruby-lang.org/ruby.git/commit/?id=a087e027bf From a087e027bf7cf0fbb825f1d55668f85ab1f3c9e6 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Tue, 5 Nov 2019 01:32:26 +0900 Subject: Fixed conditional expressions with only one void side diff --git a/parse.y b/parse.y index 61c1174..5295c63 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 https://github.com/ruby/ruby/blob/trunk/parse.y#L955 #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 v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/