[Lldb-commits] [lldb] r187057 - Don't rely on C99 for loop initializers in test case
Stefanus Du Toit
stefanus.du.toit at intel.com
Wed Jul 24 10:48:04 PDT 2013
Author: sdt
Date: Wed Jul 24 12:48:04 2013
New Revision: 187057
URL: http://llvm.org/viewvc/llvm-project?rev=187057&view=rev
Log:
Don't rely on C99 for loop initializers in test case
This allows compilation of the test case with GCC 4.8.
Modified:
lldb/trunk/test/expression_command/call-restarts/lotta-signals.c
Modified: lldb/trunk/test/expression_command/call-restarts/lotta-signals.c
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/expression_command/call-restarts/lotta-signals.c?rev=187057&r1=187056&r2=187057&view=diff
==============================================================================
--- lldb/trunk/test/expression_command/call-restarts/lotta-signals.c (original)
+++ lldb/trunk/test/expression_command/call-restarts/lotta-signals.c Wed Jul 24 12:48:04 2013
@@ -17,7 +17,8 @@ int
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 @@ int
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;
More information about the lldb-commits
mailing list