From 263afe2fedb98e3c04a8ad7ae18002c7d726aacf Mon Sep 17 00:00:00 2001 From: Jesus Cea Date: Tue, 3 Jul 2012 13:04:55 +0200 Subject: [PATCH] Issue #1667: Unused variable warning in Non-Windows --- Parser/myreadline.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Parser/myreadline.c b/Parser/myreadline.c index d7a6566e554..59db41ab169 100644 --- a/Parser/myreadline.c +++ b/Parser/myreadline.c @@ -40,7 +40,10 @@ static int my_fgets(char *buf, int len, FILE *fp) { char *p; +#ifdef MS_WINDOWS int i; +#endif + while (1) { if (PyOS_InputHook != NULL) (void)(PyOS_InputHook)();