This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/31153] New: -Wconversion does not catch return value mismatch
- From: "craig dot lawson at centrify dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 12 Mar 2007 18:39:46 -0000
- Subject: [Bug c/31153] New: -Wconversion does not catch return value mismatch
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
In functions declared to return unsigned int, -Wconversion correctly warns when
a constant signed int is returned. But -Wconversion fails to warn when the
return value is an identifier with type signed int.
Seen in gcc 3.2.3 (Red Hat) and 4.0.1 (Mac OS X)
--
Summary: -Wconversion does not catch return value mismatch
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: craig dot lawson at centrify dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31153