[Lldb-commits] [PATCH] Don't rely on C99 for loop initializers in test case

Stefanus Du Toit stefanus.du.toit at intel.com
Wed Jul 24 10:44:27 PDT 2013


Hi dmalea,

This allows compilation of the test case with GCC 4.8.

http://llvm-reviews.chandlerc.com/D1212

Files:
  test/expression_command/call-restarts/lotta-signals.c

Index: test/expression_command/call-restarts/lotta-signals.c
===================================================================
--- test/expression_command/call-restarts/lotta-signals.c
+++ test/expression_command/call-restarts/lotta-signals.c
@@ -17,7 +17,8 @@
 call_me (int some_value)
 {
   int ret_val = 0;
-  for (int i = 0; i < some_value; i++)
+  int i;
+  for (i = 0; i < some_value; i++)
     {
       int result = 0;
       if (i%2 == 0)
@@ -37,7 +38,8 @@
 call_me_nosig (int some_value)
 {
   int ret_val = 0;
-  for (int i = 0; i < some_value; i++)
+  int i;
+  for (i = 0; i < some_value; i++)
     weird_value += i % 4;
 
   nosig_no += some_value;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D1212.1.patch
Type: text/x-patch
Size: 664 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20130724/4a1cf4ba/attachment.bin>


More information about the lldb-commits mailing list