• 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 13:25:12 -0700


On Jun 15, 2013, at 1:15 PM, Jeffrey Walton <email@hidden> wrote:

I was wrong. It appears the warning is not available with GCC and
Clang. I was not able to tease out a warning on both Apple and Linux.
Even with -Wall -Wextra and -Wconversion.

It's probably because the conversion is well defined by the standard:

Yes, but it’s also very likely to be a mistake in the context of a variable assignment or a ‘return’. And there are warnings for similar well-defined but likely-to-be-wrong constructs like “if (a = b)”.

Should I file an issue against Clang to add such a warning? (If so, where’s the Clang issue tracker?)

—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: Jens Alfke <email@hidden>
References: 
 >More 'bool' weirdness (From: Jens Alfke <email@hidden>)
 >Re: More 'bool' weirdness (From: Jeffrey Walton <email@hidden>)
 >Re: More 'bool' weirdness (From: Jens Alfke <email@hidden>)
 >Re: More 'bool' weirdness (From: Jeffrey Walton <email@hidden>)

  • Prev by Date: Re: More 'bool' weirdness
  • 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