https://gcc.gnu.org/bugzilla/show_bug.cgi?id=44209

--- Comment #12 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Florian Weimer <f...@gcc.gnu.org>:

https://gcc.gnu.org/g:ff9efa3fc48baa1dee7ed376c25ecfcfbc28d35c

commit r14-6038-gff9efa3fc48baa1dee7ed376c25ecfcfbc28d35c
Author: Florian Weimer <fwei...@redhat.com>
Date:   Fri Dec 1 08:10:13 2023 +0100

    c: Add new -Wdeclaration-missing-parameter-type permerror

    This used to be a warning, enabled by default, without its own option.

    A subsequent change could improve diagnostics and provide spelling
    hints for declarations like âvoid function (int32t);â.

    gcc/c-family/

            * c.opt (Wdeclaration-missing-parameter-type): New.

    gcc/c/ChangeLog:

            PR other/44209
            * c-decl.cc (grokparms): Issue permerror for
            OPT_Wdeclaration_missing_parameter_type instead of a pedwarn.

    gcc/ChangeLog:

            * doc/invoke.texi (Warning Options): Document
            -Wdeclaration-missing-parameter-type.

    gcc/testsuite/ChangeLog:

            * gcc.dg/permerror-default.c (missing_parameter_type):
            Expect error.
            * gcc.dg/permerror-fpermissive.c (missing_parameter_type):
            Expect -Wdeclaration-missing-parameter-type warning.
            * gcc.dg/permerror-gnu89-nopermissive.c (missing_parameter_type):
            Expect -Wdeclaration-missing-parameter-type error.
            * gcc.dg/permerror-gnu89-pedantic.c (missing_parameter_type):
            Likewise.
            * gcc.dg/permerror-gnu89.c (missing_parameter_type):
            Expect -Wdeclaration-missing-parameter-type warning.
            * gcc.dg/permerror-noerror.c: Add
            -Wno-error=declaration-missing-parameter-type to build flags.
            (missing_parameter_type): Expect
            -Wdeclaration-missing-parameter-type warning.
            * gcc.dg/permerror-nowarning.c: Build with
            -Wno-declaration-missing-parameter-type.  Remove previously
            expected warning.
            * gcc.dg/permerror-fpermissive-nowarning.c: Likewise.
            * gcc.dg/permerror-pedantic.c (missing_parameter_type):
            Expect -Wdeclaration-missing-parameter-type error.
            * gcc.dg/permerror-system.c (missing_parameter_type):
            Likewise.
  • [Bug other/44209] [meta-bug] So... cvs-commit at gcc dot gnu.org via Gcc-bugs

Reply via email to