Re: get rid of warning "suggest parenthesis around assignment used as truth value"
Re: get rid of warning "suggest parenthesis around assignment used as truth value"
- Subject: Re: get rid of warning "suggest parenthesis around assignment used as truth value"
- From: Bob Sabiston <email@hidden>
- Date: Thu, 20 Nov 2008 09:08:48 -0600
On Nov 20, 2008, at 8:10 AM, Sherm Pendley wrote:
On Nov 19, 2008, at 8:14 PM, Bob Sabiston wrote:
On Nov 19, 2008, at 7:07 PM, Sherm Pendley wrote:
On Nov 19, 2008, at 7:26 PM, Bob Sabiston wrote:
Is there any way to make this warning not appear? Besides
turning of all warnings? Xcode's own template class code
generates these warnings. I mean "thanks but no thanks" for the
suggestion, xcode.
Follow the suggestion given in the warning itself, and add another
set of parenthesis:
if ((foo = 1)) { ... }
Um, that's just what I *don't* want to do, unless it's the only
way. It's a small thing but that is just so unnecessary - and ugly
IMHO.
Agreed, it's not pretty, but it seems to me the lesser of the
available evils. Warnings are ugly too, and disabling them leaves
the possibility of a '=' vs. '==' typo elsewhere.
sherm--
Yeah -- it isn't that big a deal.
Thanks
Bob
_______________________________________________
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