• 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: "Statement with no effect" warning
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • RE: "Statement with no effect" warning
      • From: "Michael Stauffer" <email@hidden>
References: 
 >Re: "Statement with no effect" warning (From: David Rowland <email@hidden>)
 >RE: "Statement with no effect" warning (From: "Michael Stauffer" <email@hidden>)

  • Prev by Date: Clear Run Log - Keyboard?
  • Next by Date: Re: Build Results window feature request
  • Previous by thread: RE: "Statement with no effect" warning
  • Next by thread: RE: "Statement with no effect" warning
  • Index(es):
    • Date
    • Thread