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

ruby-changes:43692

From: nobu <ko1@a...>
Date: Thu, 28 Jul 2016 15:05:19 +0900 (JST)
Subject: [ruby-changes:43692] nobu:r55764 (trunk): ruby.h: use __extension__

nobu	2016-07-28 15:05:14 +0900 (Thu, 28 Jul 2016)

  New Revision: 55764

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

  Log:
    ruby.h: use __extension__
    
    * include/ruby/ruby.h (ruby_fl_type): use __extension__ to get rid
      of pedantic warning against RUBY_FL_USER19.
      https://github.com/skylightio/skylight-ruby/issues/64
    * include/ruby/ruby.h (rb_mul_size_overflow): ditto for use of
      int128.

  Modified files:
    trunk/ChangeLog
    trunk/include/ruby/ruby.h
Index: include/ruby/ruby.h
===================================================================
--- include/ruby/ruby.h	(revision 55763)
+++ include/ruby/ruby.h	(revision 55764)
@@ -792,6 +792,9 @@ VALUE rb_obj_setup(VALUE obj, VALUE klas https://github.com/ruby/ruby/blob/trunk/include/ruby/ruby.h#L792
 #define RGENGC_WB_PROTECTED_NODE_CREF 1
 #endif
 
+#ifdef __GNUC__
+__extension__
+#endif
 enum ruby_fl_type {
     RUBY_FL_WB_PROTECTED = (1<<5),
     RUBY_FL_PROMOTED0 = (1<<5),
@@ -1603,6 +1606,9 @@ static inline int https://github.com/ruby/ruby/blob/trunk/include/ruby/ruby.h#L1606
 rb_mul_size_overflow(size_t a, size_t b, size_t max, size_t *c)
 {
 #ifdef DSIZE_T
+# ifdef __GNUC__
+    __extension__
+# endif
     DSIZE_T c2 = (DSIZE_T)a * (DSIZE_T)b;
     if (c2 > max) return 1;
     *c = (size_t)c2;
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 55763)
+++ ChangeLog	(revision 55764)
@@ -1,3 +1,12 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Thu Jul 28 15:05:12 2016  Nobuyoshi Nakada  <nobu@r...>
+
+	* include/ruby/ruby.h (ruby_fl_type): use __extension__ to get rid
+	  of pedantic warning against RUBY_FL_USER19.
+	  https://github.com/skylightio/skylight-ruby/issues/64
+
+	* include/ruby/ruby.h (rb_mul_size_overflow): ditto for use of
+	  int128.
+
 Wed Jul 27 10:32:59 2016  Martin Duerst  <duerst@i...>
 
 	* enc/windows_1253.c: Remove dead code found by Coverity Scan.

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

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