ObjectStackView.m:307: warning: 'views.267' may be used uninitialized in this function
ObjectStackView.m:307: warning: 'views.265' may be used uninitialized in this function
on the following line of code
for( ObjectView *objectView in ( onTop ? [ views objectEnumerator ] : [ views reverseObjectEnumerator ] ) )
onTop is a BOOL, views is an NSArray. I'm assuming that views.265 and views.267 are the two enumerator expressions.
onTop doesn't change for different iterations but even if it did, as far as I understand it the _expression_ is evaluated once at the start of the loop so no issue there.
I can get rid of the warning by moving the onTop ? .. : .. to a variable assignment on the line before and then using the variable but I don't see why I need to.
This is gcc-4.2, XCode 3.2.2, compiling for iPhone so has to be gcc.
Is there actually a problem with that line or is the compiler confused?