summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Mitchell <davem@iabyn.com>2011-10-19 11:49:40 +0100
committerDavid Mitchell <davem@iabyn.com>2012-06-13 13:25:50 +0100
commite174e89a6052ba796c47d7ef3085a9d6ba21a30b (patch)
tree18c0fbc393747ea1cf582cc23921a18c029740b5
parentd63c20f27b4a88c274844b2b635deb3c6588cccd (diff)
downloadperl-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/regcomp.c b/regcomp.c
index c9e5aac7e6..9449288308 100644
--- a/regcomp.c
+++ b/regcomp.c
@@ -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 */