• 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: "Patrick Stinson" <email@hidden>
  • Date: Thu, 5 Jun 2008 10:47:05 -0800

woah. and that works for all compilers?

On Thu, Jun 5, 2008 at 10:40 AM, Mark Wagner <email@hidden> wrote:
> On 6/4/08, Stuart Malin <email@hidden> wrote:
>> Is there some other way I can inform the
>> compiler (and a future maintainer) that the parameter is intentionally not
>> used?
>
> Our code has the following macro, designed to defeat even the smartest
> optimizing compiler:
>
> #define USE(x)          {Int _y_ = ((Int)(long)&_y_, x, 1);}
>
> It also has simpler versions of the macro for compilers that don't
> need the complexity.
>
> --
> Mark
>  _______________________________________________
> 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
>
 _______________________________________________
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: 
 >-Wall (From: Stuart Malin <email@hidden>)
 >Re: -Wall (From: "Sean McBride" <email@hidden>)
 >Re: -Wall (From: Stuart Malin <email@hidden>)
 >Re: -Wall (From: "Mark Wagner" <email@hidden>)

  • Prev by Date: Re: -Wall
  • Next by Date: Replacement for IB2.x outline mode?
  • Previous by thread: Re: -Wall
  • Next by thread: #define in prefix.pch (was -Wall)
  • Index(es):
    • Date
    • Thread