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] |
Other format: | [Raw text] |
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).
PR middle-end/7651 * c.opt (Wmissing-parameter-type): New. * doc/invoke.texi (Wmissing-parameter-type): Document it. (Wextra): Enabled by -Wextra. * c-opts.c (c_common_post_options): Enabled by -Wextra. * c-decl.c (store_parm_decls_oldstyle): Replace Wextra with Wmissing-parameter-type.
Attachment:
wmissing-parameter-type.diff
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |