summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesus Cea <jcea@jcea.es>2012-07-03 11:04:55 (GMT)
committerJesus Cea <jcea@jcea.es>2012-07-03 11:04:55 (GMT)
commit263afe2fedb98e3c04a8ad7ae18002c7d726aacf (patch)
tree6961dd457346008aef9a199b9a94678a573e78bb
parente5567ccc863cadb68f5e57a2760e021e0d3807cf (diff)
downloadcpython-263afe2fedb98e3c04a8ad7ae18002c7d726aacf.zip
cpython-263afe2fedb98e3c04a8ad7ae18002c7d726aacf.tar.gz
cpython-263afe2fedb98e3c04a8ad7ae18002c7d726aacf.tar.bz2
Issue #1667: Unused variable warning in Non-Windows
-rw-r--r--Parser/myreadline.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Parser/myreadline.c b/Parser/myreadline.c
index d7a6566..59db41a 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)();