opts.c (warning_as_error_callback, [...]): Remove.
authorJoseph Myers <joseph@codesourcery.com>
Thu, 11 Nov 2010 16:54:49 +0000 (16:54 +0000)
committerJoseph Myers <jsm28@gcc.gnu.org>
Thu, 11 Nov 2010 16:54:49 +0000 (16:54 +0000)
commitf954bd2c81520966ffccdd2786bab6415bd6f6ac
tree2057187053c110209cde5ca5305225655fda8d8f
parenta5f09e731173ce7b5fbe6731b0afde5390663147
opts.c (warning_as_error_callback, [...]): Remove.

* opts.c (warning_as_error_callback,
register_warning_as_error_callback): Remove.
(enable_warning_as_error): Don't use warning_as_error_callback.
* opts.h (register_warning_as_error_callback): Remove.

c-family:
* c-opts.c (warning_as_error_callback): Remove.
(c_common_initialize_diagnostics): Don't call
register_warning_as_error_callback.
(c_common_handle_option): Handle -Werror=normalized= here.

testsuite:
* gcc.dg/cpp/warn-normalized-3.c: Update expected note text.

From-SVN: r166606
gcc/ChangeLog
gcc/c-family/ChangeLog
gcc/c-family/c-opts.c
gcc/opts.c
gcc/opts.h
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/cpp/warn-normalized-3.c