aboutsummaryrefslogtreecommitdiff
path: root/binutils/testsuite
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2019-08-08 10:24:08 +0100
committerNick Clifton <nickc@redhat.com>2019-08-08 10:24:08 +0100
commit7d55c1d61edfef2323f5d4675f0367ffb411c3cb (patch)
treefa3d51ab0b06b19bd88523ff8d24d0653341ad59 /binutils/testsuite
parent178d871928b99112a39e0ca1284d6bbdde50ab6e (diff)
downloadgdb-7d55c1d61edfef2323f5d4675f0367ffb411c3cb.zip
gdb-7d55c1d61edfef2323f5d4675f0367ffb411c3cb.tar.gz
gdb-7d55c1d61edfef2323f5d4675f0367ffb411c3cb.tar.bz2
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.
Diffstat (limited to 'binutils/testsuite')
-rw-r--r--binutils/testsuite/gentestdlls.c3
1 files changed, 2 insertions, 1 deletions
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];