In perl.git, the branch blead has been updated

<http://perl5.git.perl.org/perl.git/commitdiff/9af62dcbf8dcfc51b4a96307e945369b28e0c215?hp=01b515d1d793fe9ee31ac67de850d943ce109686>

- Log -----------------------------------------------------------------
commit 9af62dcbf8dcfc51b4a96307e945369b28e0c215
Author: Lukas Mai <[email protected]>
Date:   Sat Oct 22 17:48:03 2016 +0200

    op.c: silence compiler warning in fold_constants()
    
    op.c: In function ‘S_fold_constants’:
    op.c:4374:28: warning: argument ‘o’ might be clobbered by ‘longjmp’ 
or ‘vfork’ [-Wclobbered]
     S_fold_constants(pTHX_ OP *o)
                                ^
    
    This warning occurs for non-volatile local variables where the compiler
    can't prove that their value doesn't change between setjmp and longjmp
    (because the modified value may only be stored in a register which
    longjmp overwrites). Adding 'const' apparently convinces the compiler
    that no such modification occurs.
-----------------------------------------------------------------------

Summary of changes:
 op.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/op.c b/op.c
index ebbbf81..cf1399e 100644
--- a/op.c
+++ b/op.c
@@ -4371,7 +4371,7 @@ S_op_integerize(pTHX_ OP *o)
 }
 
 static OP *
-S_fold_constants(pTHX_ OP *o)
+S_fold_constants(pTHX_ OP *const o)
 {
     dVAR;
     OP * VOL curop;

--
Perl5 Master Repository

Reply via email to