Request for warnings on implicit bool to int conversions

Franz Sirl Franz.Sirl-kernel@lauterbach.com
Wed Mar 28 09:00:00 GMT 2012


Am 2012-03-28 00:43, schrieb mathog:
> The C99 bool data type, and the similar type in C++, currently (v 4.5.2)
> do not generate
> warnings for any of these sorts of operations:
>
> bool b;
>
> b = 3;
> b++;
> b += 2;
> if(b == 3)

The last one is PR 44077.

Franz



More information about the Gcc mailing list