diff options
author | David Mitchell <davem@iabyn.com> | 2011-10-19 11:49:40 +0100 |
---|---|---|
committer | David Mitchell <davem@iabyn.com> | 2012-06-13 13:25:50 +0100 |
commit | e174e89a6052ba796c47d7ef3085a9d6ba21a30b (patch) | |
tree | 18c0fbc393747ea1cf582cc23921a18c029740b5 | |
parent | d63c20f27b4a88c274844b2b635deb3c6588cccd (diff) | |
download | perl-e174e89a6052ba796c47d7ef3085a9d6ba21a30b.tar.gz |
In Perl_re_op_compile, make a var volatile
This function includes a setjmp to allow for abort and retry if the
pattern getting compiled suddenly becomes UTF8. My recent changes to
it left one var generating the dreaded "warning: variable ‘pat’ might be
clobbered" warning. So declare it VOL to fix this.
-rw-r--r-- | regcomp.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -5030,7 +5030,7 @@ Perl_re_op_compile(pTHX_ SV * const pattern, OP *expr, U32 orig_pm_flags) I32 flags; I32 minlen = 0; U32 pm_flags; - SV *pat; + SV * VOL pat; /* these are all flags - maybe they should be turned * into a single int with different bit masks */ |