[Python-checkins] cpython: Issue #10951: Fix compiler warnings in _sre.c

ross.lagerwall python-checkins at python.org
Wed Mar 7 18:08:23 CET 2012


http://hg.python.org/cpython/rev/1dd43e939c07
changeset: 75470:1dd43e939c07
user: Ross Lagerwall <rosslagerwall at gmail.com>
date: Tue Mar 06 21:48:57 2012 +0200
summary:
 Issue #10951: Fix compiler warnings in _sre.c
files:
 Modules/_sre.c | 10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/Modules/_sre.c b/Modules/_sre.c
--- a/Modules/_sre.c
+++ b/Modules/_sre.c
@@ -2933,13 +2933,13 @@
 <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 @@
 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;
-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /