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

--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Martin Uecker <uec...@gcc.gnu.org>:

https://gcc.gnu.org/g:39f413fc4b6979d194f2f736bd663eb7f5045168

commit r14-3005-g39f413fc4b6979d194f2f736bd663eb7f5045168
Author: Martin Uecker <uec...@tugraz.at>
Date:   Thu Apr 13 19:35:15 2023 +0200

    c: Less warnings for parameters declared as arrays [PR98536]

    To avoid false positivies, tune the warnings for parameters declared
    as arrays with size expressions.  Do not warn when more bounds are
    specified in the declaration than before.

            PR c/98536

    gcc/c-family/:
            * c-warn.cc (warn_parm_array_mismatch): Do not warn if more
            bounds are specified.

    gcc/testsuite:
            * gcc.dg/Wvla-parameter-4.c: Adapt test.
            * gcc.dg/attr-access-2.c: Adapt test.

Reply via email to