This is the mail archive of the gcc-help@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]

How to generate warning when converting from int to unsigned implicitly or vice versa?


Hi,

g++ can generate warnings when comparing int and signed integer. I'm
wondering if it can generate warnings when converting int to unsigned
or unsigned to int.

Thanks,
Peng


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