/* This is a sample to illustrate the meaning of `-Wprotcol' vs `-Wno-protocol'. This warning is (stupidly) turned on by default. */ #include @protocol Printable -print; @end @interface Dyt : Object -print; @end @interface Bam : Dyt -doNothing; @end @interface Slam : Bam -doIt; @end @implementation Slam -doIt { printf("Who cares...\n"); } @end @interface Slam (Printing) - fooBar; @end @implementation Slam (Printing) - fooBar {} @end main () { id xx = [Slam new]; [xx print]; exit (0); } .