diff options
author | Steve Peters <steve@fisharerojo.org> | 2006-12-22 14:53:17 +0000 |
---|---|---|
committer | Steve Peters <steve@fisharerojo.org> | 2006-12-22 14:53:17 +0000 |
commit | 70ad979907cd25638a8f48cee7753606e16e2275 (patch) | |
tree | e8d9372970178167c955f02431db5977a45f642b /sv.h | |
parent | c9ce39a9108fcb88216bc67ce14c52154d53f364 (diff) | |
download | perl-70ad979907cd25638a8f48cee7753606e16e2275.tar.gz |
Silence an unused variable warning in sv.c.
p4raw-id: //depot/perl@29611
Diffstat (limited to 'sv.h')
-rw-r--r-- | sv.h | 16 |
1 files changed, 7 insertions, 9 deletions
@@ -1987,17 +1987,15 @@ Returns a pointer to the character buffer. (((SvFLAGS(pwadak) & (SVp_POK|SVpgv_GP)) == SVpgv_GP) \ && (SvTYPE(pwadak) == SVt_PVGV || SvTYPE(pwadak) == SVt_PVLV)) #define isGV_with_GP_on(sv) STMT_START { \ - GV *const uggh = (GV*) sv; \ - assert (SvTYPE(uggh) == SVt_PVGV || SvTYPE(uggh) == SVt_PVLV); \ - assert (!SvPOKp(uggh)); \ - assert (!SvIOKp(uggh)); \ - (SvFLAGS(uggh) |= SVpgv_GP); \ + assert (SvTYPE(sv) == SVt_PVGV || SvTYPE(sv) == SVt_PVLV); \ + assert (!SvPOKp(sv)); \ + assert (!SvIOKp(sv)); \ + (SvFLAGS(sv) |= SVpgv_GP); \ } STMT_END #define isGV_with_GP_off(sv) STMT_START { \ - GV *const uggh = (GV *) sv; \ - assert (SvTYPE(uggh) == SVt_PVGV || SvTYPE(uggh) == SVt_PVLV); \ - assert (!SvPOKp(uggh)); \ - assert (!SvIOKp(uggh)); \ + assert (SvTYPE(sv) == SVt_PVGV || SvTYPE(sv) == SVt_PVLV); \ + assert (!SvPOKp(sv)); \ + assert (!SvIOKp(sv)); \ (SvFLAGS(sv) &= ~SVpgv_GP); \ } STMT_END |