diff options
author | Phil Edwards <pme@gcc.gnu.org> | 2003-01-24 15:17:26 +0000 |
---|---|---|
committer | Phil Edwards <pme@gcc.gnu.org> | 2003-01-24 15:17:26 +0000 |
commit | 65ca2d606c1420d9a4f76f22c5f07823119fe543 (patch) | |
tree | 869d547d6a351decc78db9dd25b6fc48dbd968be /gcc/c-decl.c | |
parent | 3de9c088e8349dbf2af82c6ae947e9fe84b356e2 (diff) | |
download | gcc-65ca2d606c1420d9a4f76f22c5f07823119fe543.zip gcc-65ca2d606c1420d9a4f76f22c5f07823119fe543.tar.gz gcc-65ca2d606c1420d9a4f76f22c5f07823119fe543.tar.bz2 |
Rename -W to -Wextra.
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.
From-SVN: r61696
Diffstat (limited to 'gcc/c-decl.c')
-rw-r--r-- | gcc/c-decl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/c-decl.c b/gcc/c-decl.c index c6aa2709..a543931 100644 --- a/gcc/c-decl.c +++ b/gcc/c-decl.c @@ -4175,7 +4175,7 @@ grokdeclarator (declarator, declspecs, decl_context, initialized) { /* Type qualifiers on a function return type are normally permitted by the standard but have no effect, so give a - warning at -W. Qualifiers on a void return type have + warning at -Wextra. Qualifiers on a void return type have meaning as a GNU extension, and are banned on function definitions in ISO C. FIXME: strictly we shouldn't pedwarn for qualified void return types except on function @@ -6544,7 +6544,7 @@ c_expand_body (fndecl, nested_p, can_defer_p) if (nested_p) ggc_pop_context (); - /* With just -W, complain only if function returns both with + /* With just -Wextra, complain only if function returns both with and without a value. */ if (extra_warnings && current_function_returns_value |