This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Patch for bug 12951


This patch fixes bug 12951 by documenting that
-Wno-error-implicit-function-declaration is not a valid option.

With regard to the question of why it should not be a valid option, if
I were implementing fine-grained diagnostic control I'd be inclined to
have three options for each warning or warning group, -Wno-foo
(disable warning foo), -Wfoo (enable warning foo) and -Werror-foo
(enable warning foo and make it an error).  There is no need for a
fourth case and it is far from clear whether -Wfoo -Werror-foo
-Wno-error-foo would leave foo enabled as a warning or have it
disabled entirely, and whether -Wno-foo -Werror-foo -Wno-error-foo
should be different.

It passes "make info" and "make dvi".  Applied to mainline.

-- 
Joseph S. Myers               http://www.srcf.ucam.org/~jsm28/gcc/
  http://www.srcf.ucam.org/~jsm28/gcc/#c90status - status of C90 for GCC 4.0
    jsm@polyomino.org.uk (personal mail)
    jsm28@gcc.gnu.org (Bugzilla assignments and CCs)

2004-09-25  Joseph S. Myers  <jsm@polyomino.org.uk>

	PR c/12951
	* doc/invoke.texi: Document that
	-Wno-error-implicit-function-declaration is not accepted.

diff -rupN doc.orig/invoke.texi doc/invoke.texi
--- doc.orig/invoke.texi	2004-09-24 20:27:59.000000000 +0000
+++ doc/invoke.texi	2004-09-24 22:57:47.000000000 +0000
@@ -2289,7 +2289,8 @@ Warn when a declaration does not specify
 @opindex Wimplicit-function-declaration
 @opindex Werror-implicit-function-declaration
 Give a warning (or error) whenever a function is used before being
-declared.
+declared.  The form @option{-Wno-error-implicit-function-declaration}
+is not supported.
 
 @item -Wimplicit
 @opindex Wimplicit


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]