From 0e9f2b2dc8df91be27acc383c63f0feae28fa229 Mon Sep 17 00:00:00 2001 From: Andrew MacLeod Date: Fri, 18 Dec 2020 17:05:18 -0500 Subject: [PATCH] Re: [r11-6232 Regression] FAIL: gcc.dg/pr97750.c Adjust testcase to not actually check for an undefined warning since we don't really care about it, or what line it is issued on. gcc/testsuite/ * gcc.dg/pr97750.c: Remove check for warning. --- gcc/testsuite/gcc.dg/pr97750.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gcc/testsuite/gcc.dg/pr97750.c b/gcc/testsuite/gcc.dg/pr97750.c index 822b53abcff..90c3dc26852 100644 --- a/gcc/testsuite/gcc.dg/pr97750.c +++ b/gcc/testsuite/gcc.dg/pr97750.c @@ -14,8 +14,8 @@ void CopyFromUswc(long src_pitch) { for (; CopyFromUswc_height;) { unsigned unaligned = (long)CopyFromUswc_src; if (unaligned) - CopyPlane(&dst[unaligned]); /* { dg-warning "may be used uninitialized" } */ + CopyPlane(&dst[unaligned]); CopyFromUswc_src += src_pitch; } } - +/* { dg-prune-output "-Wmaybe-uninitialized" } */ -- 2.30.2