My code looks like this:
-(void)setGuiDisplayMode:(id)mode
{
// constrain inputs
if ( [mode intValue] < 3 && [mode intValue] > -1 ) {
guiDisplayMode=[mode intValue];
} else {
guiDisplayMode=0;
}
NSString *titles[3]={
@"Narg",
@"Fubar",
@"Eep"};
[mView[0] setValue:titles[guiDisplayMode] forKey:@"inputTitle"];
}
When I build this in Xcode 4.6.3 using the Apple LLVM compiler 4.2, I get an "Unused Entity Issue" "Unused variable 'titles'" warning which is clearly incorrect. When I look at the compiler output, there is no warning there, so apparently the warning is coming from the post-compilation "indexing" that Xcode does.
Since this warning isn't coming from the compiler, is there anything I can do about it? Is this a known Xcode bug?
Thanks, Chris