This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: 2.1c1 stringobject: unused vrbl cleanup
Type: Stage:
Components: Interpreter Core Versions:
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: tim.peters Nosy List: mfavas, tim.peters
Priority: normal Keywords: patch

Created on 2001-04-15 11:18 by mfavas, last changed 2022-04-10 16:03 by admin. This issue is now closed.

Messages (2)
msg36365 - (view) Author: Mark Favas (mfavas) Date: 2001-04-15 11:18
Variable set but unused:

*** stringobject.c.orig Sun Apr 15 17:51:21 2001
--- stringobject.c      Sun Apr 15 18:10:26 2001
***************
*** 2758,2764 ****
                        int flags = 0;
                        int width = -1;
                        int prec = -1;
-                       int size = 0;
                        int c = '\0';
                        int fill;
                        PyObject *v = NULL;
--- 2758,2763 ----
***************
*** 2895,2901 ****
                        } /* prec */
                        if (fmtcnt >= 0) {
                                if (c == 'h' || c ==
'l' || c == 'L') {
-                                       size = c;
                                        if (--fmtcnt >=
0)
                                                c =
*fmt++;
                                }
--- 2894,2899 ----
msg36366 - (view) Author: Tim Peters (tim.peters) * (Python committer) Date: 2001-05-09 20:06
Logged In: YES 
user_id=31435

Thanks -- applied to stringobject.c, rev 2.113.

Mark, in the future could you attach patch files instead?  
It's impossible to extract patches from the SF web view 
(leading whitespace destroyed), and in this case the email 
version was mangled too (line wrap).
History
Date User Action Args
2022-04-10 16:03:57adminsetgithub: 34334
2001-04-15 11:18:16mfavascreate