• 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
Warning: Possible Unwanted Assignment
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Warning: Possible Unwanted Assignment


  • Subject: Warning: Possible Unwanted Assignment
  • From: Jerry Krinock <email@hidden>
  • Date: Fri, 04 Nov 2005 17:21:03 -0800
  • Thread-topic: Warning: Possible Unwanted Assignment

It seems, from searching docs and archives, there is no way to turn on/off
individual warnings in Xcode.

One of my common mistakes is this unwanted assignment:

if (index = 5) {

Wherein what I meant was

if (index == 5) {

Is there any way to make Xcode warn me about that, or is this a feature
request?

Jerry Krinock

Note: Yes, this is another "CodeWarrior does it" question.  If I actually
want to do an assignment inside a test, I enclose it in two parenthese:

if ((index = 5)) {

and then CodeWarrior does not warn about it.  Very smart feature!


 _______________________________________________
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: Warning: Possible Unwanted Assignment
      • From: Jim Ingham <email@hidden>
  • Prev by Date: OpenSceneGraph and Xcode 2.1
  • Next by Date: Re: Warning: Possible Unwanted Assignment
  • Previous by thread: OpenSceneGraph and Xcode 2.1
  • Next by thread: Re: Warning: Possible Unwanted Assignment
  • Index(es):
    • Date
    • Thread