Author: labath
Date: Fri Jan  8 05:23:21 2016
New Revision: 257166

URL: http://llvm.org/viewvc/llvm-project?rev=257166&view=rev
Log:
Fix TestBatchMode for gcc

gcc by default does not accept for loop declarations in C files (one must 
choose C99 mode first,
which we don't). Place the declaration outside the loop, to make this code more 
conformant.

Modified:
    lldb/trunk/packages/Python/lldbsuite/test/driver/batch_mode/main.c

Modified: lldb/trunk/packages/Python/lldbsuite/test/driver/batch_mode/main.c
URL: 
http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/driver/batch_mode/main.c?rev=257166&r1=257165&r2=257166&view=diff
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/driver/batch_mode/main.c 
(original)
+++ lldb/trunk/packages/Python/lldbsuite/test/driver/batch_mode/main.c Fri Jan  
8 05:23:21 2016
@@ -25,7 +25,8 @@ main (int argc, char **argv)
     int do_crash = 0;
     int do_wait = 0;
 
-    for (int idx = 1; idx < argc; idx++)
+    int idx;
+    for (idx = 1; idx < argc; idx++)
     {
         if (strcmp(argv[idx], "CRASH") == 0)
             do_crash = 1;


_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to