This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/25173] gcc outputs unnecessary warnings
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 Nov 2005 03:08:48 -0000
- Subject: [Bug c/25173] gcc outputs unnecessary warnings
- References: <bug-25173-11775@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #5 from pinskia at gcc dot gnu dot org 2005-11-30 03:08 -------
(In reply to comment #4)
> Don't you think that forcing people to cast pointers is much much more
> dangerous than allowing simple equivalence of pointers when they aren't even
> being derefenced?
No. Read my comment again about this code being not valid ISO C. Again this
is not valid C, we used to only warn with -pedantic but we decided that we
should warn all the time. Again if you want to ignore the warning use
-Wno-pointer-sign.
If you think it should be valid code, well talk with the C standards committee.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25173