This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
How to generate warning when converting from int to unsigned implicitly or vice versa?
- From: "Peng Yu" <pengyu dot ut at gmail dot com>
- To: "gcc-help at gcc dot gnu dot org" <gcc-help at gcc dot gnu dot org>
- Date: Thu, 17 Jul 2008 13:31:24 -0500
- Subject: 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