Re: CriticalAlert
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)