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>
This commit is contained in:
Andrew Pinski 2025-03-07 21:18:43 +00:00
parent e6e7b477bb
commit d71139982a
2 changed files with 2 additions and 2 deletions

View 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" } */

View 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" } */