This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]