I can’t get the _unused attribute to work properly.
Every time I try and run the code below I get a message saying “Use of undeclared identifier “_unused””.
Did something change in the new version of iOS, or am I entering this information wrong?
Thanks
#import <Foundation/Foundation.h>
#import “BNRLogger.h”
int main(int argc, const char * argv[])
{
@autoreleasepool {
BNRLogger *logger = [[BNRLogger alloc]init];
_unused NSTimer *timer = [NSTimer scheduledTimerWithTimeInterval:2.0
target:logger
selector:@selector(updateLastTime:)
userInfo:nil
repeats:YES];
[[NSRunLoop currentRunLoop] run];
}
return 0;
}