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

--- Comment #2 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Sergei Trofimovich <sly...@gcc.gnu.org>:

https://gcc.gnu.org/g:9eef85a0276a0a118b76ce2da00861b75e9a3012

commit r14-5125-g9eef85a0276a0a118b76ce2da00861b75e9a3012
Author: Sergei Trofimovich <siarh...@google.com>
Date:   Sat Nov 4 16:18:02 2023 +0000

    diagnostics: fix gcc-urlifier.cc bootstrap failure [PR112379]

    Without the change `./configure --enable-checking=release` bootstrap
    fails as:

        gcc/gcc-urlifier.cc:100:1: error: 'get_url_suffix_for_quoted_text()'
            defined but not used [-Werror=unused-function]

    This happens because the helper is used only in `ASSERT` macros which
    don't always get expanded to executable code.

    The fix marks helper function with `ATTRIBUTE_UNUSED`.

    gcc/
            PR bootstrap/112379
            * gcc-urlifier.cc (get_url_suffix_for_quoted_text): Mark as
            ATTRIBUTE_UNUSED.

Reply via email to