• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Disabling some compiler warnings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Disabling some compiler warnings


  • Subject: Re: Disabling some compiler warnings
  • From: Graham Wihlidal <email@hidden>
  • Date: Fri, 20 Jul 2001 10:52:35 -0600

Yes there is. Go to your build target and select Build Settings. Scroll down to the listbox with Expert Build Settings. In the OTHER_CFLAGS field put -w

Hope that helps,

Graham

On Sunday, July 15, 2001, at 11:58 AM, email@hidden wrote:

Is there a way to disable some unuseful warnings of the compiler? For instance, I have a class with:

IBOutlet id delegate;

and then in implementation:

[delegate someAction];

The compiler says:
Warning: cannot find method
Warning: return type for 'someAction' defaults to id

Well how would it be possible to find a method for an 'id', anyway? If I declare the object as id, I already know that the compiler cannot check at runtime, so it is just noise. Moreover, I don't mind the return type, since I don't use it (the method is called as a procedure; actually it's a void one in my case). this is something that the compiler could check before issuing the warning!

Thanks for any suggestion.

Thomas Lachand-Robert
********************** email@hidden
The Commandant Project: http://lachand.free.fr/
<< Et le chemin est long du projet ` la chose. >> Molihre, Tartuffe.
_______________________________________________
cocoa-dev mailing list
email@hidden
http://www.lists.apple.com/mailman/listinfo/cocoa-dev


References: 
 >Disabling some compiler warnings (From: email@hidden)

  • Prev by Date: Re: Resize corner on NSPanel
  • Next by Date: Re: A bit stumped....
  • Previous by thread: Re: Disabling some compiler warnings
  • Next by thread: Re: Disabling some compiler warnings
  • Index(es):
    • Date
    • Thread