This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH, diagnostics] Add -Wvarargs option
- From: Dodji Seketeli <dodji at redhat dot com>
- To: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>, Jason Merrill <jason at redhat dot com>
- Date: Fri, 27 Apr 2012 23:46:51 +0200
- Subject: Re: [PATCH, diagnostics] Add -Wvarargs option
- References: <m3aa1xdx41.fsf@redhat.com>
Dodji Seketeli <dodji@redhat.com> writes:
> Tested on x86_64-unknown-linux-gnu against trunk. Bootstrap for all
> languages is still underway.
>
> gcc/c-family/
>
> * c.opt (Wvarargs): Define new option.
>
> gcc/
> builtins.c (fold_builtin_next_arg): Use OPT_Wvarargs as an
> argument for the various warning_at calls.
>
> gcc/doc/
>
> * invoke.texi: Update the documentation.
>
> gcc/testsuite/
>
> * c-c++-common/Wvarargs.c: New test case.
> * c-c++-common/Wvarargs-2.c: Likewise.
FWIW, this completed bootstrap and testing fine.
--
Dodji