Re: Compiler Warning - unknown Method
Re: Compiler Warning - unknown Method
- Subject: Re: Compiler Warning - unknown Method
- From: Joe Osborn <email@hidden>
- Date: Thu, 25 Aug 2005 11:45:40 -0500
Unfortunately, you can't always rely on this. For instance, if a
method returns or takes as argument a non-object type, the compiler
will sometimes generate incorrect code. Don't ignore the warning,
fix it! Trust me, I have had bugs that have taken tens of minutes
to track down simply due to the compiler misinterpreting a method call.
If you for some reason can't import a header, you can use a category
to suppress the warning:
@interface ObjectToBeMessaged(WarningSuppression)
- dumb;
@end
At the top of your implementation file.
On Aug 25, 2005, at 07.22, Marco Maniscalco wrote:
Sometimes I send messages to objects which are not 'imported'
directlly, but due to the fact that
function-resolving is done dynamically, the function gets called -
all fine so far. Now here goes
my question:
How can I suppress > warning - no '-dumb' function found < ?
Is there a way to disable a _specific_ warning in gcc? (not all
warnings)
(I know from other compilers than gcc a compiler-pragma like
"#pragma nowarn:4532" e.g.)
Thanks in advance,
Marco Maniscalco
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden