]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Fix testcases up after recent -Wreturn-type change
authorAndrew Pinski <quic_apinski@quicinc.com>
Fri, 7 Mar 2025 21:18:43 +0000 (21:18 +0000)
committerAndrew Pinski <quic_apinski@quicinc.com>
Fri, 7 Mar 2025 21:23:49 +0000 (21:23 +0000)
I missed these two testcases in the diff when looking for testcases
that fail. The change is the same as what was done for
gcc.dg/Wreturn-mismatch-2.c.

Pushed as obvious after a quick test.

gcc/testsuite/ChangeLog:

* gcc.dg/Wreturn-mismatch-2a.c: Change dg-warning
for the last -Wreturn-type to dg-bogus.
* gcc.dg/Wreturn-mismatch-6.c: Likewise.

Signed-off-by: Andrew Pinski <quic_apinski@quicinc.com>
gcc/testsuite/gcc.dg/Wreturn-mismatch-2a.c
gcc/testsuite/gcc.dg/Wreturn-mismatch-6.c

index 836651ed9257d94361706a5592e7163134533c67..cdac140e4c8b9b620929044019452141f9d723a3 100644 (file)
@@ -37,5 +37,5 @@ int
 f7 (void)
 {
   return f1 (); /* { dg-error "void value not ignored as it ought to be" } */
-} /* { dg-warning "control reaches end of non-void\[^\n\r\]*-Wreturn-type" } */
+} /* { dg-bogus "control reaches end of non-void\[^\n\r\]*-Wreturn-type" } */
 
index 51543fb714115f575fa3d6dfe0c3f8606b6b4d4b..b7875f0830f0aab3b8ae31fdcdebc25219653934 100644 (file)
@@ -37,4 +37,4 @@ int
 f7 (void)
 {
   return f1 (); /* { dg-error "void value not ignored as it ought to be" } */
-} /* { dg-warning "control reaches end of non-void\[^\n\r\]*-Wreturn-type" } */
+} /* { dg-bogus "control reaches end of non-void\[^\n\r\]*-Wreturn-type" } */