Created
July 12, 2012 21:01
-
-
Save alaborie/3100972 to your computer and use it in GitHub Desktop.
Clang 3.1: interesting warning...
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@protocol MyProtocol <NSObject> | |
@end | |
int main(int argc, char *argv[]) | |
{ | |
@autoreleasepool | |
{ | |
id <MyProtocol> foo = nil; | |
__unused id value = [foo valueForKey:@"bar"]; | |
return EXIT_SUCCESS; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I understood :) http://unixjunkie.blogspot.com/2008/03/id-vs-nsobject-vs-id.html