diff options
| author | yui-knk <spiketeika@gmail.com> | 2023-10-20 21:30:18 +0900 |
|---|---|---|
| committer | Yuichiro Kaneko <spiketeika@gmail.com> | 2023-10-31 17:49:12 +0900 |
| commit | 51149f335e4aea3465bd52a98f85351455bf320e (patch) | |
| tree | b3eaf51570be281b7acbf0b2df6a5b058c91dfd1 /transcode_data.h | |
| parent | eff59e93df1102d990a61965d906a28d55abc14a (diff) | |
Keep unused literal nodes
For static analysis, it’s better to keep unused literal nodes.
If simply change `block_append` to fall through, both "unused literal ignored"
and "possibly useless use of a literal in void context" warnings
are shown for the same line. But it’s verbose then remove
"unused literal ignored" warning.
This kind of optimization is already implemented on compile.c.
`compile_block` calls `iseq_compile_each0` with `popped = 1` when NODE_BLOCK
has next.
Diffstat (limited to 'transcode_data.h')
0 files changed, 0 insertions, 0 deletions
