summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2000-07-05 22:56:52 (GMT)
committerTim Peters <tim.peters@gmail.com>2000-07-05 22:56:52 (GMT)
commit54925f98d3a685ba5949b064d21521d089cb3efa (patch)
treeb3c330900a3912816d4a38f55ff531b960343c52 /Modules
parent2855290b848a95c925cbf605d39044164a71d7e5 (diff)
downloadcpython-54925f98d3a685ba5949b064d21521d089cb3efa.zip
cpython-54925f98d3a685ba5949b064d21521d089cb3efa.tar.gz
cpython-54925f98d3a685ba5949b064d21521d089cb3efa.tar.bz2
Add more "volatile" decls to stop gcc -Wall warnings.
Somebody w/ gcc please check that the wngs are gone! There are cheaper (at runtime) ways to prevent the wngs, but they're obscure and delicate. I'm going for the easy Big Hammer here under the theory that PCRE will be replaced by SRE anyway.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/pypcre.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/pypcre.c b/Modules/pypcre.c
index afff59c..2f493c0 100644
--- a/Modules/pypcre.c
+++ b/Modules/pypcre.c
@@ -4520,9 +4520,9 @@ pcre_exec(const pcre *external_re, const pcre_extra *external_extra,
they won't cost too much performance. */
volatile int resetcount, ocount;
volatile int first_char = -1;
+const uschar * volatile start_bits = NULL;
+const uschar * volatile start_match = (const uschar *)subject + start_pos;
match_data match_block;
-const uschar *start_bits = NULL;
-const uschar *start_match = (const uschar *)subject + start_pos;
const uschar *end_subject;
const real_pcre *re = (const real_pcre *)external_re;
const real_pcre_extra *extra = (const real_pcre_extra *)external_extra;