diff options
author | Ross Lagerwall <rosslagerwall@gmail.com> | 2012-03-06 19:48:57 (GMT) |
---|---|---|
committer | Ross Lagerwall <rosslagerwall@gmail.com> | 2012-03-06 19:48:57 (GMT) |
commit | 88748d7bfe23e2ae3d6140b547cacc7a2e18ad00 (patch) | |
tree | c665cc1c89bb8552bba9039596eba6aab854cd26 /Modules | |
parent | 8c159761decc518eb9e90c3823c03d9d14cbdfd6 (diff) | |
download | cpython-88748d7bfe23e2ae3d6140b547cacc7a2e18ad00.zip cpython-88748d7bfe23e2ae3d6140b547cacc7a2e18ad00.tar.gz cpython-88748d7bfe23e2ae3d6140b547cacc7a2e18ad00.tar.bz2 |
Issue #10951: Fix compiler warnings in _sre.c
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/_sre.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Modules/_sre.c b/Modules/_sre.c index 0069d82..f1c3baf 100644 --- a/Modules/_sre.c +++ b/Modules/_sre.c @@ -2933,13 +2933,13 @@ _validate_inner(SRE_CODE *code, SRE_CODE *end, Py_ssize_t groups) <INFO> <1=skip> <2=flags> <3=min> <4=max>; If SRE_INFO_PREFIX or SRE_INFO_CHARSET is in the flags, more follows. */ - SRE_CODE flags, min, max, i; + SRE_CODE flags, i; SRE_CODE *newcode; GET_SKIP; newcode = code+skip-1; GET_ARG; flags = arg; - GET_ARG; min = arg; - GET_ARG; max = arg; + GET_ARG; + GET_ARG; /* Check that only valid flags are present */ if ((flags & ~(SRE_INFO_PREFIX | SRE_INFO_LITERAL | @@ -2955,9 +2955,9 @@ _validate_inner(SRE_CODE *code, SRE_CODE *end, Py_ssize_t groups) FAIL; /* Validate the prefix */ if (flags & SRE_INFO_PREFIX) { - SRE_CODE prefix_len, prefix_skip; + SRE_CODE prefix_len; GET_ARG; prefix_len = arg; - GET_ARG; prefix_skip = arg; + GET_ARG; /* Here comes the prefix string */ if (code+prefix_len < code || code+prefix_len > newcode) FAIL; |