• 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
Disabling some compiler warnings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Disabling some compiler warnings


  • Subject: Disabling some compiler warnings
  • From: email@hidden
  • Date: Sun, 15 Jul 2001 19:58:30 +0200

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.


  • Follow-Ups:
    • Re: Disabling some compiler warnings
      • From: Graham Wihlidal <email@hidden>
    • Re: Disabling some compiler warnings
      • From: "John C. Randolph" <email@hidden>
  • Prev by Date: today's bug (?): getFileSystemInfoForPath
  • Next by Date: Bug in NSLog; program to verify included.
  • Previous by thread: today's bug (?): getFileSystemInfoForPath
  • Next by thread: Re: Disabling some compiler warnings
  • Index(es):
    • Date
    • Thread