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

Re: CriticalAlert


  • Subject: Re: CriticalAlert
  • From: Andreas Monitzer <email@hidden>
  • Date: Fri, 21 Dec 2001 16:41:14 +0100

On Friday, December 21, 2001, at 04:17 , Andrew Pinski wrote:

On Friday, December 21, 2001, at 10:06 , Andreas Monitzer wrote:

Where's that -Wundesired-results switch again?

-Wparentheses or -Wall


But that one warns at things you don't want it to.

This is invalid:

long a=random();
long b=0;
if(a=b) {} // check if random number is not 0

but this is valid:

long a=random();
long b=0;
if(b=a) {} // check if random number is not 0

So this switch doesn't help, only -Wundesired-results does the correct thing.

andy
(don't take everything serious)


References: 
 >Re: CriticalAlert (From: Andrew Pinski <email@hidden>)

  • Prev by Date: NSBorderlessWindowMask questions
  • Next by Date: Re: Silly question
  • Previous by thread: Re: CriticalAlert
  • Next by thread: Re: CriticalAlert
  • Index(es):
    • Date
    • Thread