[committed] testsuite: suppress cast warnings in pr100563.c [PR100563]

Message ID 20210513140322.1310671-1-rearnsha@arm.com
State New
Headers show
Series
  • [committed] testsuite: suppress cast warnings in pr100563.c [PR100563]
Related show

Commit Message

H.J. Lu via Gcc-patches May 13, 2021, 2:03 p.m.
Fix a warning when building on machines that don't have 32-bit pointers

gcc/testsuite:

	PR target/100563
	* gcc.dg/pr100563.c (dg-options): Add -wno-pointer-to-int-cast.
---
 gcc/testsuite/gcc.dg/pr100563.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/gcc/testsuite/gcc.dg/pr100563.c b/gcc/testsuite/gcc.dg/pr100563.c
index 812eb9e6ae2..f6a5fcd3a47 100644
--- a/gcc/testsuite/gcc.dg/pr100563.c
+++ b/gcc/testsuite/gcc.dg/pr100563.c
@@ -1,5 +1,5 @@ 
 /* { dg-do compile } */
-/* { dg-options "-Og" } */
+/* { dg-options "-Og -Wno-pointer-to-int-cast" } */
 unsigned long long e(void);
 void f(int);
 void a() {