aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandre Oliva <oliva@adacore.com>2022-04-01 23:18:34 -0300
committerAlexandre Oliva <oliva@gnu.org>2022-04-01 23:18:34 -0300
commitf0ccbe10f152b55fb809264d2ae11c724ab09ff6 (patch)
tree86c5c7ca290b8de4b5a1913b05dde4e2b65c0597
parent95533fe4f014c10dd18de649927668aba6117daf (diff)
downloadgcc-f0ccbe10f152b55fb809264d2ae11c724ab09ff6.zip
gcc-f0ccbe10f152b55fb809264d2ae11c724ab09ff6.tar.gz
gcc-f0ccbe10f152b55fb809264d2ae11c724ab09ff6.tar.bz2
fixed-point/composite-type: add -Wno-array-parameter
On machines that support fixed-point and the test runs, it's failing because of warnings issued by -Warray-parameter=[12], enabled by -Wall. The warnings state "mismatch in bound 1 of argument 1 declared as...", referring to the redeclaration of f2_##NAME. The purpose of the redeclaration is not clear to me. It doesn't look like the test intends to catch mismatches between parameter's array lengths, despite the explicit array bound and the incompatible calls, so I'm adding -Wno-array-parameter to avoid this distraction and enable the test to pass. for gcc/testsuite/ChangeLog * gcc.dg/fixed-point/composite-type.c: Add -Wno-array-parameter.
-rw-r--r--gcc/testsuite/gcc.dg/fixed-point/composite-type.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/testsuite/gcc.dg/fixed-point/composite-type.c b/gcc/testsuite/gcc.dg/fixed-point/composite-type.c
index 026bdaf..59351ff 100644
--- a/gcc/testsuite/gcc.dg/fixed-point/composite-type.c
+++ b/gcc/testsuite/gcc.dg/fixed-point/composite-type.c
@@ -1,5 +1,5 @@
/* { dg-do compile } */
-/* { dg-options "-std=gnu99 -O -Wall -Wno-unused -ftrack-macro-expansion=0" } */
+/* { dg-options "-std=gnu99 -O -Wall -Wno-unused -ftrack-macro-expansion=0 -Wno-array-parameter" } */
/* C99 6.2.7: Compatible type and composite type. */