This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]