Re: More 'bool' weirdness
Re: More 'bool' weirdness
- Subject: Re: More 'bool' weirdness
- From: Jens Alfke <email@hidden>
- Date: Sat, 15 Jun 2013 12:20:36 -0700
On Jun 14, 2013, at 6:32 PM, Jeffrey Walton < email@hidden> wrote: -Wconversion should do the trick. Nope; I checked my project settings and I’ve already got that turned on (as “Suspicious Implicit Conversion” in the build settings UI.)
I’ve also got “Implicit Boolean Conversions” (-Wbool-conversion) enabled, which certainly sounds like it should detect this, but it doesn’t.
I’ve been using bool instead of BOOL lately, but this C ‘feature’ seems like a significant drawback to it, so I’d love to find out if there’s a warning that actually detects this misuse.
—Jens
|
_______________________________________________
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