From ffd5f2761323eea74743302bfdbff644eceae83b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20L=C3=B3pez-Ib=C3=A1=C3=B1ez?= Date: Sun, 20 May 2007 00:45:58 +0000 Subject: re PR middle-end/7651 (Define -Wextra strictly in terms of other warning flags) 2006-05-20 Manuel Lopez-Ibanez PR middle-end/7651 * doc/invoke.texi (Wreturn-type): Complete description. (Wextra): Delete item about return-type warning. * c-decl.c: Delete redundant Wextra warning. testsuite/ * gcc.dg/20030906-1.c: Replace Wextra with Wreturn-type. * gcc.dg/20030906-2.c: Likewise. * objc.dg/method-17.m: Add -Wreturn-type. * obj-c++.dg/method-21.mm: Likewise. From-SVN: r124866 --- gcc/testsuite/gcc.dg/20030906-1.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'gcc/testsuite/gcc.dg/20030906-1.c') diff --git a/gcc/testsuite/gcc.dg/20030906-1.c b/gcc/testsuite/gcc.dg/20030906-1.c index 57d80f0..c416f55 100644 --- a/gcc/testsuite/gcc.dg/20030906-1.c +++ b/gcc/testsuite/gcc.dg/20030906-1.c @@ -2,7 +2,7 @@ Copyright (C) 2003 Free Software Foundation Inc. */ /* { dg-do compile } */ -/* { dg-options "-O -finline-functions -Wextra" } */ +/* { dg-options "-O -finline-functions -Wreturn-type" } */ extern int i; extern int foo (void); @@ -12,10 +12,10 @@ int foo (void) { if( i ) return 0; else return 1; -} /* { dg-bogus "may return with or without a value" } */ +} int bar (void) { - if( i ) return; + if( i ) return; /* { dg-warning "'return' with no value, in function returning non-void" } */ else return 1; -} /* { dg-warning "may return with or without a value" } */ +} -- cgit v1.1