peterdocter / objectiveclipse

Automatically exported from code.google.com/p/objectiveclipse
0 stars 0 forks source link

For iterator generates syntax error - std=c99 missing #29

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
../src/UI/ViewController.m:133: error: 'for' loop initial declaration used 
outside C99 mode

for (TableViewCell *cell in [editingCells allValues]) {
...
}

This flags up a syntax error in the source as well as in the compiler in a 
run-of-the-mill objective 
c project.

-std=c99 is passed by Xcode; perhaps we need to add this? If I add it manually, 
this goes away. 
So (a) we need this as a property for the compiler, and (b) it's worth setting 
by default

Original issue reported on code.google.com by alex.ble...@gmail.com on 10 Jul 2009 at 12:11