[Bug c/19090] New: Non-useful warnings included in -Wall

willy at debian dot org gcc-bugzilla@gcc.gnu.org
Mon Dec 20 14:44:00 GMT 2004


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



More information about the Gcc-bugs mailing list