[ruby-cvs:57126] nobu:r49977 (trunk): ruby.h: suppress false warnings

nobu at ruby-lang.org nobu at ruby-lang.org
Mon Mar 16 16:47:49 JST 2015


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


More information about the ruby-cvs mailing list