Fix problem building PE DLL test generator with compilers that do not support c99...
authorNick Clifton <nickc@redhat.com>
Thu, 8 Aug 2019 09:24:08 +0000 (10:24 +0100)
committerNick Clifton <nickc@redhat.com>
Thu, 8 Aug 2019 09:24:08 +0000 (10:24 +0100)
* testsuite/gentestdlls.c (main): Move declaration of loop
variable outside of the for() statement.

binutils/ChangeLog
binutils/testsuite/gentestdlls.c

index 0498a0c359552d2f65bb2336188ee998846fad3c..e80e8c73503563e94c727da72277657d540f07e5 100644 (file)
@@ -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.
index 09bbe3319f03445fe06bfca2381088372c43d5f6..22d6bac876fe22adc8e437c3b062c7874169db47 100644 (file)
@@ -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];
 
This page took 0.025235 seconds and 4 git commands to generate.