]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/c/c-typeck.c
re PR middle-end/7651 (Define -Wextra strictly in terms of other warning flags)
authorManuel López-Ibáñez <manu@gcc.gnu.org>
Mon, 12 Feb 2007 09:32:08 +0000 (09:32 +0000)
committerManuel López-Ibáñez <manu@gcc.gnu.org>
Mon, 12 Feb 2007 09:32:08 +0000 (09:32 +0000)
commit27f33b1531f5e59660355565e056a6630eafd762
treef1b274125c0152bf665584f0c63ddbf388817016
parented41063ab48a701f02fb4389f538d4264b9fc868
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
gcc/ChangeLog
gcc/c-typeck.c
gcc/cp/ChangeLog
gcc/cp/cp-gimplify.c
gcc/doc/invoke.texi
gcc/opts.c