]> granicus.if.org Git - python/commitdiff
Issue #10951: Fix compiler warnings in _sre.c
authorRoss Lagerwall <rosslagerwall@gmail.com>
Tue, 6 Mar 2012 19:48:57 +0000 (21:48 +0200)
committerRoss Lagerwall <rosslagerwall@gmail.com>
Tue, 6 Mar 2012 19:48:57 +0000 (21:48 +0200)
Modules/_sre.c

index 0069d82956b53337fec22673c7f4ec56cbca6e0d..f1c3bafd21e15160ab96bb73b6098b0fddf19d03 100644 (file)
@@ -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;