public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug c/19090] New: Non-useful warnings included in -Wall @ 2004-12-20 14:44 willy at debian dot org 2004-12-20 14:46 ` [Bug c/19090] " pinskia at gcc dot gnu dot org ` (4 more replies) 0 siblings, 5 replies; 6+ messages in thread From: willy at debian dot org @ 2004-12-20 14:44 UTC (permalink / raw) To: gcc-bugs 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 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c/19090] Non-useful warnings included in -Wall 2004-12-20 14:44 [Bug c/19090] New: Non-useful warnings included in -Wall willy at debian dot org @ 2004-12-20 14:46 ` pinskia at gcc dot gnu dot org 2004-12-20 14:56 ` pinskia at gcc dot gnu dot org ` (3 subsequent siblings) 4 siblings, 0 replies; 6+ messages in thread From: pinskia at gcc dot gnu dot org @ 2004-12-20 14:46 UTC (permalink / raw) To: gcc-bugs ------- Additional Comments From pinskia at gcc dot gnu dot org 2004-12-20 14:46 ------- This is useful warning as it is not really valid code without a cast. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19090 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c/19090] Non-useful warnings included in -Wall 2004-12-20 14:44 [Bug c/19090] New: Non-useful warnings included in -Wall willy at debian dot org 2004-12-20 14:46 ` [Bug c/19090] " pinskia at gcc dot gnu dot org @ 2004-12-20 14:56 ` pinskia at gcc dot gnu dot org 2005-01-10 2:40 ` ak at muc dot de ` (2 subsequent siblings) 4 siblings, 0 replies; 6+ messages in thread From: pinskia at gcc dot gnu dot org @ 2004-12-20 14:56 UTC (permalink / raw) To: gcc-bugs ------- Additional Comments From pinskia at gcc dot gnu dot org 2004-12-20 14:56 ------- http://gcc.gnu.org/ml/gcc/2003-10/msg00184.html -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19090 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c/19090] Non-useful warnings included in -Wall 2004-12-20 14:44 [Bug c/19090] New: Non-useful warnings included in -Wall willy at debian dot org 2004-12-20 14:46 ` [Bug c/19090] " pinskia at gcc dot gnu dot org 2004-12-20 14:56 ` pinskia at gcc dot gnu dot org @ 2005-01-10 2:40 ` ak at muc dot de 2005-01-14 23:54 ` pinskia at gcc dot gnu dot org 2005-01-18 13:57 ` pinskia at gcc dot gnu dot org 4 siblings, 0 replies; 6+ messages in thread From: ak at muc dot de @ 2005-01-10 2:40 UTC (permalink / raw) To: gcc-bugs ------- Additional Comments From ak at muc dot de 2005-01-10 02:39 ------- Created an attachment (id=7915) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=7915&action=view) Patch to add -Wno-pointer-sign This patch adds a new flag to disable this warning. With that the kernel compilation is down to a few hundred warnings only. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19090 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c/19090] Non-useful warnings included in -Wall 2004-12-20 14:44 [Bug c/19090] New: Non-useful warnings included in -Wall willy at debian dot org ` (2 preceding siblings ...) 2005-01-10 2:40 ` ak at muc dot de @ 2005-01-14 23:54 ` pinskia at gcc dot gnu dot org 2005-01-18 13:57 ` pinskia at gcc dot gnu dot org 4 siblings, 0 replies; 6+ messages in thread From: pinskia at gcc dot gnu dot org @ 2005-01-14 23:54 UTC (permalink / raw) To: gcc-bugs ------- Additional Comments From pinskia at gcc dot gnu dot org 2005-01-14 23:54 ------- Patch here: <http://gcc.gnu.org/ml/gcc-patches/2005-01/msg00822.html>. Confirmed. -- What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed| |1 Keywords| |diagnostic, patch Last reconfirmed|0000-00-00 00:00:00 |2005-01-14 23:54:29 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19090 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c/19090] Non-useful warnings included in -Wall 2004-12-20 14:44 [Bug c/19090] New: Non-useful warnings included in -Wall willy at debian dot org ` (3 preceding siblings ...) 2005-01-14 23:54 ` pinskia at gcc dot gnu dot org @ 2005-01-18 13:57 ` pinskia at gcc dot gnu dot org 4 siblings, 0 replies; 6+ messages in thread From: pinskia at gcc dot gnu dot org @ 2005-01-18 13:57 UTC (permalink / raw) To: gcc-bugs ------- Additional Comments From pinskia at gcc dot gnu dot org 2005-01-18 13:56 ------- Fixed. -- What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED Target Milestone|--- |4.0.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19090 ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2005-01-18 13:57 UTC | newest] Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2004-12-20 14:44 [Bug c/19090] New: Non-useful warnings included in -Wall willy at debian dot org 2004-12-20 14:46 ` [Bug c/19090] " pinskia at gcc dot gnu dot org 2004-12-20 14:56 ` pinskia at gcc dot gnu dot org 2005-01-10 2:40 ` ak at muc dot de 2005-01-14 23:54 ` pinskia at gcc dot gnu dot org 2005-01-18 13:57 ` pinskia at gcc dot gnu dot org
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).