aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-decl.c
diff options
context:
space:
mode:
authorManuel López-Ibáñez <manu@gcc.gnu.org>2007-05-20 00:45:58 +0000
committerManuel López-Ibáñez <manu@gcc.gnu.org>2007-05-20 00:45:58 +0000
commitffd5f2761323eea74743302bfdbff644eceae83b (patch)
treebbcc1e2ae00d84751fb6d9e0d94ad59c5dd5ae75 /gcc/c-decl.c
parent05ce201275137ae82ced2edc32c43acf9fea37d7 (diff)
downloadgcc-ffd5f2761323eea74743302bfdbff644eceae83b.zip
gcc-ffd5f2761323eea74743302bfdbff644eceae83b.tar.gz
gcc-ffd5f2761323eea74743302bfdbff644eceae83b.tar.bz2
re PR middle-end/7651 (Define -Wextra strictly in terms of other warning flags)
2006-05-20 Manuel Lopez-Ibanez <manu@gcc.gnu.org> 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
Diffstat (limited to 'gcc/c-decl.c')
-rw-r--r--gcc/c-decl.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/gcc/c-decl.c b/gcc/c-decl.c
index db8412c..1f8943f 100644
--- a/gcc/c-decl.c
+++ b/gcc/c-decl.c
@@ -6788,13 +6788,6 @@ finish_function (void)
TREE_NO_WARNING (fndecl) = 1;
}
- /* With just -Wextra, complain only if function returns both with
- and without a value. */
- if (extra_warnings
- && current_function_returns_value
- && current_function_returns_null)
- warning (OPT_Wextra, "this function may return with or without a value");
-
/* Store the end of the function, so that we get good line number
info for the epilogue. */
cfun->function_end_locus = input_location;