This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/26542] bogus diagnostic with -pedantic?: format '%p'; expects type 'void*', but argument 2 has type 'A*'
- From: "jason dot orendorff at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 Feb 2009 22:22:55 -0000
- Subject: [Bug c/26542] bogus diagnostic with -pedantic?: format '%p'; expects type 'void*', but argument 2 has type 'A*'
- References: <bug-26542-7667@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #9 from jason dot orendorff at gmail dot com 2009-02-10 22:22 -------
Please consider reopening this bug.
I appreciate that the relevant standards don't guarantee this idiom will always
work. On the other hand, this warning is in practice only a nuisance. Balance
the real work this makes for people who try to keep their code pedantic-clean
against the risk that someday an architecture will come along where it matters.
Could we maybe delete this warning just until we have some reason to believe
that such an architecture is likely to exist someday, and then reinstate it?
--
jason dot orendorff at gmail dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jason dot orendorff at gmail
| |dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26542