diff options
| author | Yusuke Endoh <mame@ruby-lang.org> | 2019-10-04 02:35:10 +0900 |
|---|---|---|
| committer | Yusuke Endoh <mame@ruby-lang.org> | 2019-10-04 02:35:10 +0900 |
| commit | c3dd3b95538a641bbffb02993985ce0cbac1b9d6 (patch) | |
| tree | b2e7f29f354fa52e56b230b720c9c7d1933db690 /include/ruby/debug.h | |
| parent | b732a9f8a0f694d8668bb1d42e94435c47e05df3 (diff) | |
iseq.c (rb_iseq_compile_with_option): dummy parent_iseq for the parser
The parsing of `RubyVM::InstructionSequence.compile` does not support an
outer scope currently. So it specified NULL as parent_iseq for the
parser. However, it resulted in the following false-positive warning.
```
RubyVM::InstructionSequence.compile(<<END)
o = Object.new
o #=> <compiled>:2: warning: possibly useless use of a variable in void context
END
```
This change specifies a dummy empty parent_iseq instead of NULL, which
suppresses the false positive.
Diffstat (limited to 'include/ruby/debug.h')
0 files changed, 0 insertions, 0 deletions
