This is how my code looks currently
NSTimer *delayTimer;
delayTimer = [NSTimer scheduledTimerWithTimeInterval:0.01
target:self
selector:@selector(longRunner)
userInfo:nil
repeats:NO];
// [delayTimer invalidate];
If I run this through build and analyze I get the following warning
Value stored in delayTimer is never read.
I understand the message and what it means but can't really figure out how to stop it appearing. Are there some analyzer messages ok to ignore?
I tried adding the commented invalidate code, but as expected this ran before the timer so the timer didn't.