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

Skip to content

Commit 88748d7

Browse files
committed
Issue #10951: Fix compiler warnings in _sre.c
1 parent 8c15976 commit 88748d7

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

Modules/_sre.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2933,13 +2933,13 @@ _validate_inner(SRE_CODE *code, SRE_CODE *end, Py_ssize_t groups)
29332933
<INFO> <1=skip> <2=flags> <3=min> <4=max>;
29342934
If SRE_INFO_PREFIX or SRE_INFO_CHARSET is in the flags,
29352935
more follows. */
2936-
SRE_CODE flags, min, max, i;
2936+
SRE_CODE flags, i;
29372937
SRE_CODE *newcode;
29382938
GET_SKIP;
29392939
newcode = code+skip-1;
29402940
GET_ARG; flags = arg;
2941-
GET_ARG; min = arg;
2942-
GET_ARG; max = arg;
2941+
GET_ARG;
2942+
GET_ARG;
29432943
/* Check that only valid flags are present */
29442944
if ((flags & ~(SRE_INFO_PREFIX |
29452945
SRE_INFO_LITERAL |
@@ -2955,9 +2955,9 @@ _validate_inner(SRE_CODE *code, SRE_CODE *end, Py_ssize_t groups)
29552955
FAIL;
29562956
/* Validate the prefix */
29572957
if (flags & SRE_INFO_PREFIX) {
2958-
SRE_CODE prefix_len, prefix_skip;
2958+
SRE_CODE prefix_len;
29592959
GET_ARG; prefix_len = arg;
2960-
GET_ARG; prefix_skip = arg;
2960+
GET_ARG;
29612961
/* Here comes the prefix string */
29622962
if (code+prefix_len < code || code+prefix_len > newcode)
29632963
FAIL;

0 commit comments

Comments
 (0)