[binutils-gdb] Fix problem building PE DLL test generator with compilers that do not support c99/c11.
Nick Clifton
nickc@sourceware.org
Thu Aug 8 09:25:00 GMT 2019
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=7d55c1d61edfef2323f5d4675f0367ffb411c3cb
commit 7d55c1d61edfef2323f5d4675f0367ffb411c3cb
Author: Nick Clifton <nickc@redhat.com>
Date: Thu Aug 8 10:24:08 2019 +0100
Fix problem building PE DLL test generator with compilers that do not support c99/c11.
* testsuite/gentestdlls.c (main): Move declaration of loop
variable outside of the for() statement.
Diff:
---
binutils/ChangeLog | 5 +++++
binutils/testsuite/gentestdlls.c | 3 ++-
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index 0498a0c..e80e8c7 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,3 +1,8 @@
+2019-08-08 Nick Clifton <nickc@redhat.com>
+
+ * testsuite/gentestdlls.c (main): Move declaration of loop
+ variable outside of the for() statement.
+
2019-08-08 Jordan Rupprecht <rupprecht@google.com>
* readelf.c (process_note): Mask unknown description data bytes.
diff --git a/binutils/testsuite/gentestdlls.c b/binutils/testsuite/gentestdlls.c
index 09bbe33..22d6bac 100644
--- a/binutils/testsuite/gentestdlls.c
+++ b/binutils/testsuite/gentestdlls.c
@@ -129,6 +129,7 @@ main (int argc, char** argv)
{
char* program_name = argv[0];
char* output_directory = argv[1];
+ int i;
if (argc < 3)
{
@@ -150,7 +151,7 @@ main (int argc, char** argv)
platforms. See https://github.com/jbevain/cecil/issues/337 for an
example of this value being used in practice. */
- for (int i = 2; i < argc; i++)
+ for (i = 2; i < argc; i++)
{
char* wanted_format = argv[i];
More information about the Binutils-cvs
mailing list