[gcc r15-7898] Fix testcases up after recent -Wreturn-type change
Andrew Pinski
pinskia@gcc.gnu.org
Fri Mar 7 21:27:10 GMT 2025
https://gcc.gnu.org/g:d71139982a364c5c9646737a7b9a407967ecd88c
commit r15-7898-gd71139982a364c5c9646737a7b9a407967ecd88c
Author: Andrew Pinski <quic_apinski@quicinc.com>
Date: Fri Mar 7 21:18:43 2025 +0000
Fix testcases up after recent -Wreturn-type change
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>
Diff:
---
gcc/testsuite/gcc.dg/Wreturn-mismatch-2a.c | 2 +-
gcc/testsuite/gcc.dg/Wreturn-mismatch-6.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/gcc/testsuite/gcc.dg/Wreturn-mismatch-2a.c b/gcc/testsuite/gcc.dg/Wreturn-mismatch-2a.c
index 836651ed9257..cdac140e4c8b 100644
--- a/gcc/testsuite/gcc.dg/Wreturn-mismatch-2a.c
+++ b/gcc/testsuite/gcc.dg/Wreturn-mismatch-2a.c
@@ -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" } */
diff --git a/gcc/testsuite/gcc.dg/Wreturn-mismatch-6.c b/gcc/testsuite/gcc.dg/Wreturn-mismatch-6.c
index 51543fb71411..b7875f0830f0 100644
--- a/gcc/testsuite/gcc.dg/Wreturn-mismatch-6.c
+++ b/gcc/testsuite/gcc.dg/Wreturn-mismatch-6.c
@@ -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" } */
More information about the Gcc-cvs
mailing list