This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/19090] New: Non-useful warnings included in -Wall
- From: "willy at debian dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 20 Dec 2004 14:44:25 -0000
- Subject: [Bug c/19090] New: Non-useful warnings included in -Wall
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Warning about passing a signed int to a function that expects an unsigned int,
or vice-versa does not seem like a useful warning to me. On a Linux kernel build,
% zgrep -c 'differ in signedness' 2.6.10rc2-gcc4-warnings.gz
6809
This is quite high and drowns out many warnings that are more useful.
My understanding is that these warnings only turn into actual bugs on machines
that don't use 2's complement, and I'm not aware of a gcc port to any 1's
complement or sign-magnitude machines. So could this warning be moved to -W please?
--
Summary: Non-useful warnings included in -Wall
Product: gcc
Version: 4.0.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: willy at debian dot org
CC: ak at muc dot de,gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19090