In perl.git, the branch blead has been updated

<http://perl5.git.perl.org/perl.git/commitdiff/e94207f0054827b17e4288dc7a991b75906a5b1c?hp=007c123e562d5bde1d934fb84b696ea4329536e6>

- Log -----------------------------------------------------------------
commit e94207f0054827b17e4288dc7a991b75906a5b1c
Author: Nicholas Clark <[email protected]>
Date:   Thu May 6 10:16:02 2010 +0100

    Move code to after the variable declarations.
    
    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/.
-----------------------------------------------------------------------

Summary of changes:
 ext/PerlIO-scalar/scalar.xs |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/ext/PerlIO-scalar/scalar.xs b/ext/PerlIO-scalar/scalar.xs
index 67f674a..f2481f4 100644
--- a/ext/PerlIO-scalar/scalar.xs
+++ b/ext/PerlIO-scalar/scalar.xs
@@ -85,9 +85,12 @@ IV
 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;

--
Perl5 Master Repository

Reply via email to