-Wformat-sign-mismatch?

Joseph S. Myers jsm28@cam.ac.uk
Mon Feb 10 21:46:00 GMT 2003


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



More information about the Gcc mailing list