This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: -Wformat
- To: drepper at cygnus dot com, gcc-patches at sourceware dot cygnus dot com
- Subject: Re: -Wformat
- From: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Date: Sat, 29 Jan 2000 18:43:28 -0500 (EST)
> 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