diff options
author | pme <pme@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-01-24 15:17:26 +0000 |
---|---|---|
committer | pme <pme@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-01-24 15:17:26 +0000 |
commit | 56421f5281f7aefa99319f6c82ede6c235c61373 (patch) | |
tree | 869d547d6a351decc78db9dd25b6fc48dbd968be /gcc/stmt.c | |
parent | 704a64baf9ad0bb1a2f313f44d4875e08e5e9e7c (diff) | |
download | gcc-56421f5281f7aefa99319f6c82ede6c235c61373.tar.gz |
2003-01-24 Phil Edwards <pme@gcc.gnu.org>
Rename -W to -Wextra.
* c-decl.c: Update comments.
* c-typeck.c: Likewise.
* flags.h: Likewise.
* function.c: Likewise.
* stmt.c: Likewise.
* toplev.c: Update comments.
(W_options): Add 'extra'.
(display_help): Remove '-W'.
(decode_W_option): Special warn_uninitialized treatment in the case
of -Wextra.
* doc/invoke.texi: Update with new entries.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@61696 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/stmt.c')
-rw-r--r-- | gcc/stmt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/stmt.c b/gcc/stmt.c index 043b752cb45..adc7114c7e2 100644 --- a/gcc/stmt.c +++ b/gcc/stmt.c @@ -2148,7 +2148,7 @@ expand_expr_stmt_value (exp, want_value, maybe_last) if (want_value == -1) want_value = expr_stmts_for_value != 0; - /* If -W, warn about statements with no side effects, + /* If -Wextra, warn about statements with no side effects, except for an explicit cast to void (e.g. for assert()), and except for last statement in ({...}) where they may be useful. */ if (! want_value |