diff options
author | Alan Wu <XrXr@users.noreply.github.com> | 2021-03-31 18:27:34 -0400 |
---|---|---|
committer | Alan Wu <XrXr@users.noreply.github.com> | 2021-10-20 18:19:32 -0400 |
commit | d03b7f77d45105bfe613b986bfddaaa6c1de6831 (patch) | |
tree | 813dfa739f9c9ff573268bc887dfd6e24afd605a /yjit_iface.h | |
parent | 9911f486a7d9902a900f91cfa607e8cacdda6494 (diff) |
Fix GCC warnings
Mostly unused and uninitialized warnings here and there
Diffstat (limited to 'yjit_iface.h')
-rw-r--r-- | yjit_iface.h | 5 |
1 files changed, 5 insertions, 0 deletions
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; |