Re: [r11-6232 Regression] FAIL: gcc.dg/pr97750.c
authorAndrew MacLeod <amacleod@redhat.com>
Fri, 18 Dec 2020 22:05:18 +0000 (17:05 -0500)
committerAndrew MacLeod <amacleod@redhat.com>
Fri, 18 Dec 2020 22:08:42 +0000 (17:08 -0500)
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

index 822b53abcff03fb530079f7282f3c155ce513fca..90c3dc268524382e9aa948d56badd974ee6790a5 100644 (file)
@@ -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" } */