invoke.texi (Warning Options): Replace -Werror- with -Werror=.

2007-03-06  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>

	* doc/invoke.texi (Warning Options): Replace -Werror- with
	-Werror=.
	* opts.c (common_handle_option): Likewise.

From-SVN: r122638
This commit is contained in:
Manuel López-Ibáñez
2007-03-06 21:04:35 +00:00
parent 33cedfad9f
commit 699fd48374
3 changed files with 8 additions and 2 deletions

View File

@@ -1,3 +1,9 @@
2007-03-06 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
* doc/invoke.texi (Warning Options): Replace -Werror- with
-Werror=.
* opts.c (common_handle_option): Likewise.
2006-03-06 Anatoly Sokolov <aesok@post.ru>
* config/avr/avr.c (avr_mcu_types): Add support for ATmega325P,

View File

@@ -225,7 +225,7 @@ Objective-C and Objective-C++ Dialects}.
-Wc++-compat -Wcast-align -Wcast-qual -Wchar-subscripts -Wcomment @gol
-Wconversion -Wno-deprecated-declarations @gol
-Wdisabled-optimization -Wno-div-by-zero -Wno-endif-labels @gol
-Werror -Werror-* -Werror-implicit-function-declaration @gol
-Werror -Werror=* -Werror-implicit-function-declaration @gol
-Wfatal-errors -Wfloat-equal -Wformat -Wformat=2 @gol
-Wno-format-extra-args -Wformat-nonliteral @gol
-Wformat-security -Wformat-y2k @gol

View File

@@ -688,7 +688,7 @@ common_handle_option (size_t scode, const char *arg, int value,
option_index = find_opt (new_option, lang_mask);
if (option_index == N_OPTS)
{
error ("-Werror-%s: No option -%s", arg, new_option);
error ("-Werror=%s: No option -%s", arg, new_option);
}
else
{