This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: -Wformat-sign-mismatch?
- From: "Joseph S. Myers" <jsm28 at cam dot ac dot uk>
- To: Dan Kegel <dkegel at ixiacom dot com>
- Cc: <gcc at gcc dot gnu dot org>, Jake Holland <jholland at ixiacom dot com>
- Date: Mon, 10 Feb 2003 21:46:46 +0000 (GMT)
- Subject: Re: -Wformat-sign-mismatch?
On Mon, 10 Feb 2003, Dan Kegel wrote:
> Thanks very much. I did read the manual, but it didn't
> hint that -pedantic would turn on this kind of -Wformat check.
> Would it be appropriate to spell this out more clearly? e.g.
It already says "if -pedantic is used with -Wformat, warnings will be
given about format features not in the selected standard version". This
includes various pointer type mismatches that the C standard doesn't
permit for variadic functions, but which most implementations (and the
Single Unix Specification) permit, as well as the obvious cases such as
additional format specifiers.
--
Joseph S. Myers
jsm28@cam.ac.uk