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

ruby-changes:40104

From: nobu <ko1@a...>
Date: Sun, 18 Oct 2015 19:21:48 +0900 (JST)
Subject: [ruby-changes:40104] nobu:r52185 (trunk): disable warnings unless optimized

nobu	2015-10-18 19:21:35 +0900 (Sun, 18 Oct 2015)

  New Revision: 52185

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

  Log:
    disable warnings unless optimized
    
    * include/ruby/ruby.h (rb_data_object_{wrap,get}): move
      declarations inside ifdef too.

  Modified files:
    trunk/include/ruby/ruby.h
Index: include/ruby/ruby.h
===================================================================
--- include/ruby/ruby.h	(revision 52184)
+++ include/ruby/ruby.h	(revision 52185)
@@ -1364,12 +1364,12 @@ rb_obj_freeze_inline(VALUE x) https://github.com/ruby/ruby/blob/trunk/include/ruby/ruby.h#L1364
 # define RUBY_UNTYPED_DATA_FUNC(func) DEPRECATED(func)
 #endif
 
+#if defined(__GNUC__) && !defined(__NO_INLINE__)
 #if defined(HAVE_BUILTIN___BUILTIN_CHOOSE_EXPR_CONSTANT_P)
 RUBY_UNTYPED_DATA_FUNC(static inline VALUE rb_data_object_wrap_warning(VALUE,void*,RUBY_DATA_FUNC,RUBY_DATA_FUNC));
 #endif
 RUBY_UNTYPED_DATA_FUNC(static inline void *rb_data_object_get_warning(VALUE));
 
-#if defined(__GNUC__) && !defined(__NO_INLINE__)
 static inline VALUE
 rb_data_object_wrap_warning(VALUE klass, void *ptr, RUBY_DATA_FUNC mark, RUBY_DATA_FUNC free)
 {

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

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