diff options
author | Yves Orton <demerphq@gmail.com> | 2012-12-15 21:55:47 +0100 |
---|---|---|
committer | Yves Orton <demerphq@gmail.com> | 2012-12-15 22:13:19 +0100 |
commit | 8ee91b45111f396b427530ccf9d50a687fe8636c (patch) | |
tree | f96746e9067becf5cad15c7966ee7c4ce4859c0a /dump.c | |
parent | 496575ce841293eaf818395fc1f56e7fb74a18cc (diff) | |
download | perl-8ee91b45111f396b427530ccf9d50a687fe8636c.tar.gz |
Silence a warning under clang/asan
This should silence the following warning:
dump.c:459:57: warning: comparison of constant 85 with expression of
type 'svtype' is always false [-Wtautological-constant-out-of-range-compare]
The warning is a false positive, this code is /meant/ to detect
conditions that should not happen.
Diffstat (limited to 'dump.c')
-rw-r--r-- | dump.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -456,7 +456,8 @@ Perl_sv_peek(pTHX_ SV *sv) sv_catpv(t, "VOID"); goto finish; } - else if (sv == (const SV *)0x55555555 || SvTYPE(sv) == 'U') { + else if (sv == (const SV *)0x55555555 || ((char)SvTYPE(sv)) == 'U') { + /* detect data corruption under memory poisoning */ sv_catpv(t, "WILD"); goto finish; } |