Currently we only compile the top level code with "extreme warnings", so code
in ext/ isn't subject to -Wdeclaration-after-statement, hence why this was
missed. Now that dual life modules have been evicted from ext/, we could
probably consider notching up the warnings for all code in ext/.
PerlIOScalar_seek(pTHX_ PerlIO * f, Off_t offset, int whence)
{
PerlIOScalar *s = PerlIOSelf(f, PerlIOScalar);
- SvGETMAGIC(s->var);
- STRLEN oldcur = SvCUR(s->var);
+ STRLEN oldcur;
STRLEN newlen;
+
+ SvGETMAGIC(s->var);
+ oldcur = SvCUR(s->var);
+
switch (whence) {
case SEEK_SET:
s->posn = offset;