• 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: -Wall
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: -Wall


  • Subject: Re: -Wall
  • From: Alex Curylo <email@hidden>
  • Date: Thu, 5 Jun 2008 04:14:24 -0700


On 5-Jun-08, at 3:56 AM, Alastair Houghton wrote:

You're right in general that some warnings are a little pointless, but the unused parameter warning *is* actually a useful one. It has occasionally saved me considerable headaches where


Where I've personally found it a veritable godsend is in porting massive cross-platform source bases of the form

void SomeFunction(int param)
{
#ifdef SOME_DEFINE
...
#elif SOME_OTHER_DEFINE
...
#endif
}

since it lets you know -- and is often the only way to *quickly* know -- that you need to add an #elif TARGET_OS_MAC or whatever to that particular function.

--
Alex Curylo -- email@hidden -- http://www.alexcurylo.com/

"The man does wield English like a finely balanced rapier."
    -- Gustav Kühn



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Re: -Wall (From: Alex Curylo <email@hidden>)
 >Re: -Wall (From: Alastair Houghton <email@hidden>)

  • Prev by Date: Re: -Wall
  • Next by Date: Re: -Wall
  • Previous by thread: Re: -Wall
  • Next by thread: Re: -Wall
  • Index(es):
    • Date
    • Thread