]> granicus.if.org Git - python/commitdiff
Issue #1677: Unused variable warning in Non-Windows
authorJesus Cea <jcea@jcea.es>
Tue, 3 Jul 2012 11:15:03 +0000 (13:15 +0200)
committerJesus Cea <jcea@jcea.es>
Tue, 3 Jul 2012 11:15:03 +0000 (13:15 +0200)
Parser/myreadline.c

index f0b51f8e1ff53e218073ddc926aadef2004cf0a1..93edd7fbc4c96a5e1c8088d346ba913c11936dc5 100644 (file)
@@ -36,8 +36,11 @@ static int
 my_fgets(char *buf, int len, FILE *fp)
 {
     char *p;
-    int i;
     int err;
+#ifdef MS_WINDOWS
+    int i;
+#endif
+
     while (1) {
         if (PyOS_InputHook != NULL)
             (void)(PyOS_InputHook)();