The patch removes the only use of the variable i here, thus remove it to get rid of one build time warning.
Signed-off-by: Martin Storsjö <[email protected]> --- mingw-w64-tools/widl/patches/0001-relocatable.patch | 11 ++++++++++- mingw-w64-tools/widl/src/widl.c | 2 +- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/mingw-w64-tools/widl/patches/0001-relocatable.patch b/mingw-w64-tools/widl/patches/0001-relocatable.patch index 84f305829..a0406ea1e 100644 --- a/mingw-w64-tools/widl/patches/0001-relocatable.patch +++ b/mingw-w64-tools/widl/patches/0001-relocatable.patch @@ -1,5 +1,5 @@ diff --git a/mingw-w64-tools/widl/src/widl.c b/mingw-w64-tools/widl/src/widl.c -index a99eed4e..38b9d864 100644 +index a99eed4e9..69cb4b628 100644 --- a/mingw-w64-tools/widl/src/widl.c +++ b/mingw-w64-tools/widl/src/widl.c @@ -42,6 +42,7 @@ @@ -10,6 +10,15 @@ index a99eed4e..38b9d864 100644 static const char usage[] = "Usage: widl [options...] infile.idl\n" +@@ -596,7 +597,7 @@ static void init_argv0_dir( const char *argv0 ) + + int main(int argc,char *argv[]) + { +- int i, optc; ++ int optc; + int ret = 0; + int opti = 0; + char *output_name = NULL; @@ -772,19 +773,12 @@ int main(int argc,char *argv[]) if (stdinc) diff --git a/mingw-w64-tools/widl/src/widl.c b/mingw-w64-tools/widl/src/widl.c index 38b9d864f..69cb4b628 100644 --- a/mingw-w64-tools/widl/src/widl.c +++ b/mingw-w64-tools/widl/src/widl.c @@ -597,7 +597,7 @@ static void init_argv0_dir( const char *argv0 ) int main(int argc,char *argv[]) { - int i, optc; + int optc; int ret = 0; int opti = 0; char *output_name = NULL; -- 2.17.1 _______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
