[Bug c++/103758] bogus warning: misspelled term 'decl' in format; use 'declaration' instead [-Wformat-diag]

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Jan 6 00:43:01 GMT 2022


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

--- Comment #11 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The trunk branch has been updated by Marek Polacek <mpolacek@gcc.gnu.org>:

https://gcc.gnu.org/g:1935db296892bbd9fc597889237528bd7e080ab1

commit r12-6277-g1935db296892bbd9fc597889237528bd7e080ab1
Author: Marek Polacek <polacek@redhat.com>
Date:   Wed Jan 5 17:53:30 2022 -0500

    Avoid more -Wformat-diag warnings [PR103758]

    Let's use "%<x>, %<y>, or %<z>" rather than "[x|y|z]" as in the rest of
    our codebase.

            PR c++/103758

    gcc/c-family/ChangeLog:

            * c-pragma.c (handle_pragma_scalar_storage_order): Use %< %> in
            diagnostic messages.
            (handle_pragma_diagnostic): Likewise.

    gcc/testsuite/ChangeLog:

            * gcc.dg/sso-6.c: Update dg-warning.


More information about the Gcc-bugs mailing list