[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Compiler warning level
From: |
Mondragon, Ian |
Subject: |
RE: Compiler warning level |
Date: |
Thu, 30 Jan 2003 17:09:16 -0600 |
when you're making an assignment in a conditional like this, wrap it in
another set of parenthasis:
while ((foo = [enumerator nextObject]))
{
/* bar */
}
- ian
> -----Original Message-----
> From: Andreas Hoeschler [SMTP:ahoesch@smartsoft.de]
> Sent: Thursday, January 30, 2003 5:04 PM
> To: discuss-gnustep@gnu.org
> Subject: Compiler warning level
>
> Hi all,
>
> how can I cause GNUstep to use -Wmost (MacOSX default) instead of -Wall
> when compiling sources? I would like to suppress these "suggest
> parentheses around assignment..." messages since I normaly write
>
> while (object = [enumerator nextObject])
> {
> ...
> }
>
> Is this uncommon practice? I must have seen this somewhere years ago when
> I learned programming OPENSTEP.
>
> Regards,
>
> Andreas
> << File: ATT2473719.txt >>