[Python-checkins] cpython (3.2): Issue #1677: Unused variable warning in Non-Windows

jesus.cea python-checkins at python.org
Tue Jul 3 13:18:48 CEST 2012


http://hg.python.org/cpython/rev/4de541fbdd58
changeset:   77933:4de541fbdd58
branch:      3.2
parent:      77908:031862264304
user:        Jesus Cea <jcea at jcea.es>
date:        Tue Jul 03 13:15:03 2012 +0200
summary:
  Issue #1677: Unused variable warning in Non-Windows

files:
  Parser/myreadline.c |  5 ++++-
  1 files changed, 4 insertions(+), 1 deletions(-)


diff --git a/Parser/myreadline.c b/Parser/myreadline.c
--- a/Parser/myreadline.c
+++ b/Parser/myreadline.c
@@ -36,8 +36,11 @@
 my_fgets(char *buf, int len, FILE *fp)
 {
     char *p;
+    int err;
+#ifdef MS_WINDOWS
     int i;
-    int err;
+#endif
+
     while (1) {
         if (PyOS_InputHook != NULL)
             (void)(PyOS_InputHook)();

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list