From d03b7f77d45105bfe613b986bfddaaa6c1de6831 Mon Sep 17 00:00:00 2001 From: Alan Wu Date: Wed, 31 Mar 2021 18:27:34 -0400 Subject: Fix GCC warnings Mostly unused and uninitialized warnings here and there --- yjit_iface.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'yjit_iface.h') diff --git a/yjit_iface.h b/yjit_iface.h index a70ca90fc7..bc1f1a7ad6 100644 --- a/yjit_iface.h +++ b/yjit_iface.h @@ -7,9 +7,12 @@ #define YJIT_IFACE_H 1 #include "ruby/ruby.h" +#include "ruby/assert.h" // for RUBY_DEBUG #include "vm_core.h" #include "yjit_core.h" +#if RUBY_DEBUG + #define YJIT_DECLARE_COUNTERS(...) struct rb_yjit_runtime_counters { \ int64_t __VA_ARGS__; \ }; \ @@ -61,6 +64,8 @@ YJIT_DECLARE_COUNTERS( #undef YJIT_DECLARE_COUNTERS +#endif // if RUBY_DEBUG + RUBY_EXTERN struct rb_yjit_options rb_yjit_opts; RUBY_EXTERN int64_t rb_compiled_iseq_count; RUBY_EXTERN struct rb_yjit_runtime_counters yjit_runtime_counters; -- cgit v1.2.3