Re: "Statement with no effect" warning
Re: "Statement with no effect" warning
- Subject: Re: "Statement with no effect" warning
- From: "Clark Cox" <email@hidden>
- Date: Fri, 22 Jun 2007 02:53:46 -0700
On 6/21/07, Michael Stauffer <email@hidden> wrote:
> > On Jun 20, 2007, at 9:27 PM, Michael Stauffer wrote:
> >
> >> Is there a way to suppress the "statement has no effect" and the
> >> "left-hand
> >>
> >> operand of comma expression has no effect" warnings? I can't find
> >> these
> >>
> >> documented. A old post on this list suggests "-no-undefined" but I
> >> can't
> >>
> >> find that documented so am not sure what else it might do.
> >>
> >
> > I am obligated to say that the way to suppress these warnings is to
> > correct the source code that is triggering them.
> >
> The comma operator is a trap for the unwary. Lose it.
Huh?
The comma operator is almost never necessary, and it often obfuscates
the code. Unless it is absolutely necessary, it is best avoided.
--
Clark S. Cox III
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