How to mask an unwanted "Dead Store" warning in XCode? That is I have this code for which I don't think it's an issue, so if this is the case I don't want to keep seeing the warning...(welcome for feedback however)

This worked for me when the compiler got confused because the variables were used in an if statement. #pragma unused(showHideButtonX) #pragma unused(showHideButtonY) if ( DISPLAY_SHOWHIDE_BUTTON ) { CGRect showHideFrame = CGRectMake(showHideButtonX, showHideButtonY, buttonsSize, buttonsSize);
–
JScarryFeb 10 '13 at 16:09