Hi Joseph,
v7 fixes the comment that was obsolete (which you reported in v6).
See the range-diff below.
Cheers,
Alex
Alejandro Colomar (1):
c, objc: Add -Wmultiple-parameter-fwd-decl-lists
gcc/c-family/c.opt | 4 ++++
gcc/c/c-decl.cc | 20 ++++++++--------
gcc/doc/extend.texi | 23 +++++++++++--------
gcc/doc/invoke.texi | 12 +++++++++-
.../Wmultiple-parameter-fwd-decl-lists.c | 6 +++++
5 files changed, 45 insertions(+), 20 deletions(-)
create mode 100644 gcc/testsuite/gcc.dg/Wmultiple-parameter-fwd-decl-lists.c
Range-diff against v6:
1: f4eedff05d4 ! 1: da736c52009 c, objc: Add
-Wmultiple-parameter-fwd-decl-lists
@@ gcc/c-family/c.opt: Wmultiple-inheritance
## gcc/c/c-decl.cc ##
@@ gcc/c/c-decl.cc: struct GTY((chain_next ("%h.outer"))) c_scope {
- /* True if we already complained about forward parameter decls
- in this scope. This prevents double warnings on
- foo (int a; int b; ...) */
+ if these appears in a function definition. */
+ BOOL_BITFIELD had_vla_unspec : 1;
+
+- /* True if we already complained about forward parameter decls
+- in this scope. This prevents double warnings on
+- foo (int a; int b; ...) */
- BOOL_BITFIELD warned_forward_parm_decls : 1;
++ /* True if we parsed a list of forward parameter decls in this scope.
*/
+ BOOL_BITFIELD had_forward_parm_decls : 1;
/* True if this is the outermost block scope of a function body.
--
2.51.0