This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/25173] New: gcc outputs unnecessary warnings
- From: "jw203198 at hotmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 Nov 2005 01:25:26 -0000
- Subject: [Bug c/25173] New: gcc outputs unnecessary warnings
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
I refer to the very frequent warnings about signed/unsigned mismatches.
Can I please say this:
What does it matter if the signedness of pointers don't match? Surely it only
*really* matters when a pointer is actually dereferenced. That is the only
time when signedness really matters. The rest of the time you should be able
to switch between signed/unsigned to your heart's content because it doesn't
have any effect.
Why should a compiler generate warning messages about something that is quite
irrelevant?
It is only when you actually use a signed/unsigned pointer that the signedness
has any effect!
Please exclude those warnings from the -Wall setting and only have them enabled
if explicitly requested by some fastidious programmer who has pedants in
his/her pants.
--
Summary: gcc outputs unnecessary warnings
Product: gcc
Version: 4.0.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: jw203198 at hotmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25173