• 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: More 'bool' weirdness
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: More 'bool' weirdness
      • From: Jeffrey Walton <email@hidden>
References: 
 >More 'bool' weirdness (From: Jens Alfke <email@hidden>)
 >Re: More 'bool' weirdness (From: Jeffrey Walton <email@hidden>)

  • Prev by Date: SOLVED: why does my app open ports to Amazon Web Services?
  • Next by Date: Re: More 'bool' weirdness
  • Previous by thread: Re: More 'bool' weirdness
  • Next by thread: Re: More 'bool' weirdness
  • Index(es):
    • Date
    • Thread