summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-12-03 03:25:06 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-12-03 03:25:06 +0000
commitc95b3a16bdf6c9a40c3ce23734b38c1982609712 (patch)
tree81b544e69dec554d7cd508fb5984003d073a972c /ext
parentb040788b527ad83c95b48b22defa07cf7f30dda3 (diff)
ruby.h: no warnings of hidden objects
* include/ruby/ruby.h (rb_data_object_alloc_warning): no warnings of internal hidden objects which klass == 0. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48692 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r--ext/tk/tcltklib.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/tk/tcltklib.c b/ext/tk/tcltklib.c
index 2d45f7511b..0798d0b24d 100644
--- a/ext/tk/tcltklib.c
+++ b/ext/tk/tcltklib.c
@@ -20,7 +20,11 @@
#endif
#undef RUBY_UNTYPED_DATA_WARNING
+#ifdef HAVE_BUILTIN___BUILTIN_CHOOSE_EXPR_CONSTANT_P
+#define RUBY_UNTYPED_DATA_WARNING 1
+#else
#define RUBY_UNTYPED_DATA_WARNING 0
+#endif
#ifdef HAVE_RB_THREAD_CHECK_TRAP_PENDING
static int rb_thread_critical; /* dummy */