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

Eric Gallager <egallager at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |diagnostic
                 CC|                            |egallager at gcc dot gnu.org,
                   |                            |msebor at gcc dot gnu.org

--- Comment #35 from Eric Gallager <egallager at gcc dot gnu.org> ---
cc-ing Martin Sebor since this bug is relevant to this blog post he wrote:
https://developers.redhat.com/blog/2019/03/13/understanding-gcc-warnings/

(In reply to Manuel López-Ibáñez from comment #16)
> Subject: Bug 7651
> 
> Author: manu
> Date: Tue Jan  2 17:33:25 2007
> New Revision: 120347
> 
> URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=120347
> Log:
> 2007-01-02  Manuel Lopez-Ibanez  <m...@gcc.gnu.org>
> 
>       PR middle-end/7651
>       * c.opt (Wold-style-declaration): New.
>       * doc/invoke.texi (C-only Warning Options): New.
>       (Wold-style-declaration): Document it.
>       (Wextra): Enabled by -Wextra.
>       * c-opts.c (c_common_post_options): Enabled by -Wextra.
>       * c-decl.c (declspecs_add_scspec): Replace -Wextra with
>       -Wold-style-declaration.
> 
> testsuite/
>       * gcc.dg/declspec-3.c: Replace -W with -Wold-style-declaration.
>       * gcc.dg/declspec-3-Wextra.c: New.
>       * gcc.dg/declspec-3-no.c: New
> 
> Added:
>     trunk/gcc/testsuite/gcc.dg/declspec-3-Wextra.c
>     trunk/gcc/testsuite/gcc.dg/declspec-3-no.c
> Modified:
>     trunk/gcc/ChangeLog
>     trunk/gcc/c-decl.c
>     trunk/gcc/c-opts.c
>     trunk/gcc/c.opt
>     trunk/gcc/doc/invoke.texi
>     trunk/gcc/testsuite/ChangeLog
>     trunk/gcc/testsuite/gcc.dg/declspec-3.c

Would have been nice to have a testcase explicitly named
gcc.dg/Wold-style-declaration.c, too, for easier findability

Reply via email to