This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Request for warnings on implicit bool to int conversions


> Hi,
>>
>> It would be nice if there was a
>>
>> ?-Wimplicit_bool
>>
>> that was enabled in -Wall which complained about these sorts of
>> operations. ?In particular
>> it would warn any time a bool was implicitly promoted to an int.
>

I am trying to understand what the real issue is here.  Do you want
-Wimplicit-char-to-int to?  -Wimplicit-short-to-int?  If not, why?
where to stop?


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]