This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Wmissing-parameter-type (PR7651 Define -Wextra strictly in terms of other warning flags)
- From: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- To: Manuel López-Ibáñez <lopezibanez at gmail dot com>
- Cc: gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: 21 Dec 2006 03:58:35 +0100
- Subject: Re: Wmissing-parameter-type (PR7651 Define -Wextra strictly in terms of other warning flags)
- References: <6c33472e0612191649q4b6e0d87g943f695f1625ae59@mail.gmail.com>
"Manuel López-Ibáñez" <lopezibanez@gmail.com> writes:
| :ADDPATCH c:
|
| This patch continues the effort to fix PR7651 [1].
|
| It adds a new option -Wmissing-parameter-type that takes over the
| function of warning about function parameters declared without a type
| specifier in K&R-style functions. The new option is enabled by
| -Wextra, so we keep the current behaviour but add the ability to
| enable/disable this individual warning.
|
| Bootstrapped and regression tested with --enable-languages=all on
| i686-pc-linux-gnu. Yet, this seemed at bit futile, since we don't have
| any testcase for this warning flag (or I wasn't able to find them).
|
| OK for mainline?
Please provide a testcase as suggested by JSM.
Otherwise, OK with me.
-- Gaby