[前][次][番号順一覧][スレッド一覧]

ruby-changes:49583

From: nobu <ko1@a...>
Date: Tue, 9 Jan 2018 09:25:36 +0900 (JST)
Subject: [ruby-changes:49583] nobu:r61698 (trunk): wrap statement expression with __extension__

nobu	2018-01-09 09:25:27 +0900 (Tue, 09 Jan 2018)

  New Revision: 61698

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=61698

  Log:
    wrap statement expression with __extension__

  Modified files:
    trunk/include/ruby/ruby.h
Index: include/ruby/ruby.h
===================================================================
--- include/ruby/ruby.h	(revision 61697)
+++ include/ruby/ruby.h	(revision 61698)
@@ -2229,7 +2229,7 @@ ERRORFUNC(("variable argument length doe https://github.com/ruby/ruby/blob/trunk/include/ruby/ruby.h#L2229
 
 # ifdef __GNUC__
 # define rb_scan_args_verify(fmt, varc) \
-    ({ \
+    __extension__ ({ \
 	int verify; \
 	_Pragma("GCC diagnostic push"); \
 	_Pragma("GCC diagnostic ignored \"-Warray-bounds\""); \

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]