Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 54925f9

Browse files
committed
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.
1 parent 2855290 commit 54925f9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Modules/pypcre.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4520,9 +4520,9 @@ pcre_exec(const pcre *external_re, const pcre_extra *external_extra,
45204520
they won't cost too much performance. */
45214521
volatile int resetcount, ocount;
45224522
volatile int first_char = -1;
4523+
const uschar * volatile start_bits = NULL;
4524+
const uschar * volatile start_match = (const uschar *)subject + start_pos;
45234525
match_data match_block;
4524-
const uschar *start_bits = NULL;
4525-
const uschar *start_match = (const uschar *)subject + start_pos;
45264526
const uschar *end_subject;
45274527
const real_pcre *re = (const real_pcre *)external_re;
45284528
const real_pcre_extra *extra = (const real_pcre_extra *)external_extra;

0 commit comments

Comments
 (0)