Suppress the unused parameter warning in GTMOBJECT_SINGLETON_BOILERPLATE macro

4 views
Skip to first unread message

fikovnik

unread,
Aug 26, 2010, 3:05:48 PM8/26/10
to google-toolbox-for-mac
Hi,

would it be possible to change GTMOBJECT_SINGLETON_BOILERPLATE macro
to something like:

...
...
- (id)copyWithZone:(NSZone *) __unused zone { \
return self; \
} \

or

...
...
- (id)copyWithZone:(NSZone *) zone { \
(void) zone;
return self; \
} \

so there is no unused parameter warning?

/cheers
Filip
Reply all
Reply to author
Forward
0 new messages