Re: More 'bool' weirdness
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