diff options
author | Manuel López-Ibáñez <manu@gcc.gnu.org> | 2007-02-12 09:32:08 +0000 |
---|---|---|
committer | Manuel López-Ibáñez <manu@gcc.gnu.org> | 2007-02-12 09:32:08 +0000 |
commit | 27f33b1531f5e59660355565e056a6630eafd762 (patch) | |
tree | f1b274125c0152bf665584f0c63ddbf388817016 /gcc/opts.c | |
parent | ed41063ab48a701f02fb4389f538d4264b9fc868 (diff) | |
download | gcc-27f33b1531f5e59660355565e056a6630eafd762.zip gcc-27f33b1531f5e59660355565e056a6630eafd762.tar.gz gcc-27f33b1531f5e59660355565e056a6630eafd762.tar.bz2 |
re PR middle-end/7651 (Define -Wextra strictly in terms of other warning flags)
2007-02-12 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
PR middle-end/7651
* doc/invoke.texi (Wunused-value): Update description.
(Wextra): Delete item.
* opts.c (set_Wextra): Don't use the value of Wextra to set the
value of Wunused-value.
* c-typeck.c (c_process_expr_stmt): Don't check extra_warnings.
(c_finish_stmt_expr): Don't check extra_warnings.
(emit_side_effect_warnings): The caller is responsible to check
warn_unused_value.
cp/
* cp-gimplify.c (gimplify_expr_stmt): Don't check extra_warnings.
Check warn_unused_value just once.
From-SVN: r121843
Diffstat (limited to 'gcc/opts.c')
-rw-r--r-- | gcc/opts.c | 1 |
1 files changed, 0 insertions, 1 deletions
@@ -1042,7 +1042,6 @@ static void set_Wextra (int setting) { extra_warnings = setting; - warn_unused_value = setting; warn_unused_parameter = (setting && maybe_warn_unused_parameter); /* We save the value of warn_uninitialized, since if they put |