From e3a535f66f12aaaa5a66985b3c3531db32626048 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Mon, 9 Jan 2017 11:23:05 -0600 Subject: [PATCH] Fix verboten C99/C11 construct in sscanf() --- libc/stdio/lib_sscanf.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libc/stdio/lib_sscanf.c b/libc/stdio/lib_sscanf.c index fed7d71f347..b5fd60f4de8 100644 --- a/libc/stdio/lib_sscanf.c +++ b/libc/stdio/lib_sscanf.c @@ -159,6 +159,7 @@ static FAR const char *findscanset(FAR const char *fmt, int c; int n; int v; + int i; fmt++; /* Skip '[' */ @@ -253,7 +254,7 @@ doswitch: doexit: if (v) /* Default => accept */ { - for (int i = 0; i < 32; i++) /* Invert all */ + for (i = 0; i < 32; i++) /* Invert all */ { set[i] ^= 0xFF; }