I get a "unused parameter" testString "warning" from the following code. But I use testString to register. So why is this not used?
- (void)getString:(NSString *)testString { ICELogInfo(@"%@", testString); }
ICELogInfo is a macro for NSLog.
#define ICELogInfo(fmt, ...) LOG_FORMAT(fmt, @"INFO", ##__VA_ARGS__) #define LOG_FORMAT(fmt, lvl, ...) LOG_FORMAT_NO_LOCATION(fmt, lvl, ##__VA_ARGS__) #define LOG_FORMAT_NO_LOCATION(fmt, lvl, ...) NSLog((@"%@ " fmt), lvl, ##__VA_ARGS__)
What am I doing wrong?
source share