diff options
Diffstat (limited to 'gcc/c-decl.c')
-rw-r--r-- | gcc/c-decl.c | 7 |
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; |