Warning: Possible Unwanted Assignment
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