From: Tim Peters Date: Wed, 5 Jul 2000 22:56:52 +0000 (+0000) Subject: Add more "volatile" decls to stop gcc -Wall warnings. X-Git-Tag: v2.0b1~1069 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=54925f98d3a685ba5949b064d21521d089cb3efa;p=python 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. --- diff --git a/Modules/pypcre.c b/Modules/pypcre.c index afff59c475..2f493c0183 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;