From 65ca2d606c1420d9a4f76f22c5f07823119fe543 Mon Sep 17 00:00:00 2001 From: Phil Edwards Date: Fri, 24 Jan 2003 15:17:26 +0000 Subject: Rename -W to -Wextra. 2003-01-24 Phil Edwards 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 --- gcc/function.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'gcc/function.c') diff --git a/gcc/function.c b/gcc/function.c index d40801c..c240788 100644 --- a/gcc/function.c +++ b/gcc/function.c @@ -6795,9 +6795,10 @@ expand_function_end (filename, line, end_bindings) } /* Warn about unused parms if extra warnings were specified. */ - /* Either ``-W -Wunused'' or ``-Wunused-parameter'' enables this + /* Either ``-Wextra -Wunused'' or ``-Wunused-parameter'' enables this warning. WARN_UNUSED_PARAMETER is negative when set by - -Wunused. */ + -Wunused. Note that -Wall implies -Wunused, so ``-Wall -Wextra'' will + also give these warnings. */ if (warn_unused_parameter > 0 || (warn_unused_parameter < 0 && extra_warnings)) { -- cgit v1.1