diff options
author | Martin Uecker <uecker@tugraz.at> | 2023-04-13 19:35:15 +0200 |
---|---|---|
committer | Martin Uecker <uecker@tugraz.at> | 2023-08-05 18:09:58 +0200 |
commit | 39f413fc4b6979d194f2f736bd663eb7f5045168 (patch) | |
tree | 006e649dcafed2c210a10b31bd62dedcbbc2e538 /gcc/tree-vect-patterns.cc | |
parent | 54be338589ea93ad4ff53d22adde476a0582537b (diff) | |
download | gcc-39f413fc4b6979d194f2f736bd663eb7f5045168.zip gcc-39f413fc4b6979d194f2f736bd663eb7f5045168.tar.gz gcc-39f413fc4b6979d194f2f736bd663eb7f5045168.tar.bz2 |
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.
Diffstat (limited to 'gcc/tree-vect-patterns.cc')
0 files changed, 0 insertions, 0 deletions