Subject: | [Patch] Fix compiler warning |
When compiling the C code from PadWalker.xs with the -W switch the
following warnings are produced:
PadWalker.xs: In function ‘SV* fetch_from_stash(HV*, char*, U32)’:
PadWalker.xs:197:49: warning: suggest braces around empty body in an
‘else’ statement [-Wempty-body]
PadWalker.xs: In function ‘void do_peek(I32, HV*, HV*)’:
PadWalker.xs:335:62: warning: suggest braces around empty body in an
‘if’ statement [-Wempty-body]
A proposed patch can be found in this pull request:
https://github.com/hporten/PadWalker/commit/5a5c636850a732a98b67a919e98a7edccd09d479