From 699fd48374a0163f69cde978c71996055a1ce4e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20L=C3=B3pez-Ib=C3=A1=C3=B1ez?= Date: Tue, 6 Mar 2007 21:04:35 +0000 Subject: [PATCH] invoke.texi (Warning Options): Replace -Werror- with -Werror=. 2007-03-06 Manuel Lopez-Ibanez * doc/invoke.texi (Warning Options): Replace -Werror- with -Werror=. * opts.c (common_handle_option): Likewise. From-SVN: r122638 --- gcc/ChangeLog | 6 ++++++ gcc/doc/invoke.texi | 2 +- gcc/opts.c | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 5ee8cfcf113f..0a7eb26c69aa 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2007-03-06 Manuel Lopez-Ibanez + + * doc/invoke.texi (Warning Options): Replace -Werror- with + -Werror=. + * opts.c (common_handle_option): Likewise. + 2006-03-06 Anatoly Sokolov * config/avr/avr.c (avr_mcu_types): Add support for ATmega325P, diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index 128a60fe179f..668b86f17392 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -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 diff --git a/gcc/opts.c b/gcc/opts.c index 01ec30d6ceb5..33f69e324301 100644 --- a/gcc/opts.c +++ b/gcc/opts.c @@ -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 {