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

ruby-changes:37896

From: nobu <ko1@a...>
Date: Mon, 16 Mar 2015 16:48:05 +0900 (JST)
Subject: [ruby-changes:37896] nobu:r49977 (trunk): ruby.h: suppress false warnings

nobu	2015-03-16 16:47:48 +0900 (Mon, 16 Mar 2015)

  New Revision: 49977

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

  Log:
    ruby.h: suppress false warnings
    
    * include/ruby/ruby.h (rb_data_object_alloc_warning): enable only
      if __builtin_choose_expr works with __builtin_constant_p so that
      warnings will be suppressed if klass is 0.

  Modified files:
    trunk/random.c
Index: random.c
===================================================================
--- random.c	(revision 49976)
+++ random.c	(revision 49977)
@@ -491,6 +491,8 @@ fill_random_bytes(void *seed, size_t siz https://github.com/ruby/ruby/blob/trunk/random.c#L491
 	}
 	else {
 	    if (!old_prov) {
+# undef RUBY_UNTYPED_DATA_WARNING
+# define RUBY_UNTYPED_DATA_WARNING 0
 		rb_gc_register_mark_object(Data_Wrap_Struct(0, 0, release_crypt, &prov));
 	    }
 	    else {

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

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