[ruby-cvs:57127] nobu:r49978 (trunk): ruby.h: suppress false warnings

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


nobu	2015-03-16 16:49:27 +0900 (Mon, 16 Mar 2015)

  New Revision: 49978

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

  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/include/ruby/ruby.h
    trunk/random.c


More information about the ruby-cvs mailing list