Re: CriticalAlert
Re: CriticalAlert
- Subject: Re: CriticalAlert
- From: Ondra Cada <email@hidden>
- Date: Fri, 21 Dec 2001 00:04:37 +0100
Donald,
>
>>>>> Donald Brown (DB) wrote at Thu, 20 Dec 2001 15:15:29 -0600:
DB> And, of course, make sure you enable warnings, and READ THEM. CodeWarrior
DB> will warn when you use if (x=y) (and a warning is appropriate, it is
DB> legal syntax, it's equivalent to x=y; if (x)), haven't encountered this
DB> with PB yet.
PB has plain nothing to do with that -- it's a compiler thing.
GCC _can_ do this, but it is by default switched off -- and I am grateful
for that, since I don't want to have all those "while (o=[en nextObject])"
lines warned at!
Though, you can switch it on by using some appropriate compiler switch (I
guess it's -WAll, but re-check GCC docs, I'm not that sure).
---
Ondra Cada
OCSoftware: email@hidden
http://www.ocs.cz
2K Development: email@hidden
http://www.2kdevelopment.cz
private email@hidden
http://www.ocs.cz/oc