summaryrefslogtreecommitdiff
path: root/zaphod32_hash.h
diff options
context:
space:
mode:
authorYves Orton <demerphq@gmail.com>2017-09-13 13:30:25 +0200
committerYves Orton <demerphq@gmail.com>2017-09-13 13:30:25 +0200
commit45908e4d120d33a558a8b052036c56cd0c90b898 (patch)
tree95affbf2d8defbcc3004e8cb0015c941d0e05c21 /zaphod32_hash.h
parentd6150e10749d85cf1797627bdf8cf9a86cd8d6e6 (diff)
downloadperl-45908e4d120d33a558a8b052036c56cd0c90b898.tar.gz
avoid 'the address of ... will always evaluate as ...' warns in mem macros
In f14cf363205 we added asserts to our memory macros (Copy(), Zero() etc) to ensure that the target is non-null. These asserts throw warnings like perl.c: In function ‘Perl_eval_sv’: perl.c:2976:264: warning: the address of ‘myop’ will always evaluate as ‘true’ [-Waddress] Zero(&myop, 1, UNOP); which is annoying. This patch changes how these asserts are coded so we avoid the warning. Thanks to Zefram for the fix.
Diffstat (limited to 'zaphod32_hash.h')
0 files changed, 0 insertions, 0 deletions