This is the mail archive of the gcc-patches@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]

Re: -Wformat


 > From: Ulrich Drepper <drepper@cygnus.com>
 > 
 > The appended patch changes -Wformat to optionally take a parameter and
 > set the flag appropriately.  The non-constant printf string warning is
 > only emitted if the flag value is > 1 (default is 1).  This was
 > discussed when the patch which makes this one necessary went in.  I
 > think Mike Meissner proposed it this way.
 > 
 > -- 
 > ---------------.      drepper at gnu.org  ,-.   1325 Chesapeake Terrace
 > Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
 > Red Hat          `--' drepper at redhat.com   `------------------------
 > 
 > 2000-01-28  Ulrich Drepper  <drepper@redhat.com>
 > 
 > 	* c-decl.c (c_decode_option): Accept optional numeric argument to
 > 	-Wformat and set warn_format.
 > 	* c-common.c: Don't emit warning about non-constant printf format
 > 	string unless warn_format > 1.


You should probably also update the documentation.

--
Kaveh R. Ghazi			Engagement Manager / Project Services
ghazi@caip.rutgers.edu		Qwest Internet Solutions

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