aboutsummaryrefslogtreecommitdiffstats
path: root/vm_core.h
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-12-08 14:12:11 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-12-08 14:12:11 +0000
commitf609bde5977498664079c6419422c6bc335ea5e2 (patch)
treee8410e436fad7fdd508e6be6ab39f7660b420647 /vm_core.h
parentecd551e24f580ae8f5acbbb4650f3ac9fa3a3486 (diff)
downloadruby-f609bde5977498664079c6419422c6bc335ea5e2.tar.gz
suppress warnings
* compile.c (iseq_ibf_dump): check lenght overflow. * vm_core.h (rb_iseq_check): suppress unused-value warnings. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52955 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_core.h')
-rw-r--r--vm_core.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/vm_core.h b/vm_core.h
index 8c6456abda..89a242acc6 100644
--- a/vm_core.h
+++ b/vm_core.h
@@ -410,18 +410,18 @@ struct rb_iseq_struct {
#if USE_LAZY_LOAD
const rb_iseq_t *rb_iseq_complete(const rb_iseq_t *iseq);
+#endif
static inline const rb_iseq_t *
rb_iseq_check(const rb_iseq_t *iseq)
{
+#if USE_LAZY_LOAD
if (iseq->body == NULL) {
rb_iseq_complete((rb_iseq_t *)iseq);
}
+#endif
return iseq;
}
-#else
-#define rb_iseq_check(iseq) iseq
-#endif
enum ruby_special_exceptions {
ruby_error_reenter,