This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/19437] wrong warning when assigning negative value to int
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 14 Jan 2005 13:19:50 -0000
- Subject: [Bug c++/19437] wrong warning when assigning negative value to int
- References: <20050114093847.19437.oliverst@online.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-01-14 13:19 -------
The warning is correct.
To get a warning in C you have to use -Wconversion.
pr19437.c:4: warning: negative integer implicitly converted to unsigned type
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19437