Hi,

Here's v3, this time a proper patch, tested for regressions, and with
tests and ChangeLog entries.

It only contains a trivial fix in the tests since v2.  See a reply to v2
for the results of regression testing.  You can check that the commit
hash of those tests corresponds to the commit hash shown below in the
range-diff for v3: 83fbe0d41f3.


Have a lovely day!
Alex

Alejandro Colomar (1):
  c, objc: Deprecate more than one list of forward declarations of
    parameters

 gcc/c-family/c.opt                               |  4 ++++
 gcc/c/c-decl.cc                                  | 16 +++++++++-------
 gcc/doc/extend.texi                              |  2 +-
 gcc/doc/invoke.texi                              | 13 ++++++++++++-
 .../gcc.dg/Wmultiple-parameter-fwd-decl-lists.c  |  6 ++++++
 5 files changed, 32 insertions(+), 9 deletions(-)
 create mode 100644 gcc/testsuite/gcc.dg/Wmultiple-parameter-fwd-decl-lists.c

Range-diff against v2:
1:  c17fc8e7f0d ! 1:  83fbe0d41f3 c, objc: Deprecate more than one list of 
forward declarations of parameters
    @@ gcc/doc/invoke.texi: is not considered an old-style definition in C23 
mode, beca
      ## gcc/testsuite/gcc.dg/Wmultiple-parameter-fwd-decl-lists.c (new) ##
     @@
     +/* { dg-do compile } */
    -+/* { dg-options "-Wmultiple-parameter-fwd-decl-lists } */
    ++/* { dg-options "-Wmultiple-parameter-fwd-decl-lists" } */
     +
     +void f(int n, int m; int n, int m);
     +void g(int n; int m; int n, int m); /* { dg-warning "more than one list 
of forward declarations" } */
-- 
2.50.1

Reply via email to