c-decl.c: (grokdeclarator): Use OPT_Wignored_qualifiers instead of OPT_Wreturn_type...
commit5db2e9ca7dc5ab9bac4baad91c224ba7d8fc0c45
authorDoug Kwan <dougkwan@google.com>
Sun, 13 Jan 2008 00:22:38 +0000 (13 00:22 +0000)
committerDoug Kwan <dougkwan@gcc.gnu.org>
Sun, 13 Jan 2008 00:22:38 +0000 (13 00:22 +0000)
treee1ab0d8cbc735be34bf3b43df3a196670e70025b
parent7219c2c7d309f8a8f3695d82462351bb06bce542
c-decl.c: (grokdeclarator): Use OPT_Wignored_qualifiers instead of OPT_Wreturn_type in...

ChangeLog:

2008-01-12  Doug Kwan  <dougkwan@google.com>

* c-decl.c: (grokdeclarator): Use OPT_Wignored_qualifiers
instead of OPT_Wreturn_type in warning due to ignored return type
qualifiers.
* c-opt.c (c_common_post_option): Add -Wignored-qualifiers to
options included in -Wextra.
* c.opt: New option -Wignored_qualifiers.
* doc/invoke.texi (Warning Options, -Wextra): Add new option
-Wignore_qualifiers.
(-Wignored-qualifiers): Document.
(-Wreturn-type): Remove description of functionality now handled
by -Wignored-qualifiers.

cp/ChangeLog:

2008-01-12  Doug Kwan  <dougkwan@google.com>

* decl.c: (grokdeclarator): Use OPT_Wignored_qualifiers
instead of OPT_Wreturn_type in warning due to ignored return type
qualifiers.
* pt.c: (tsubst_function_type): Use OPT_Wignored_qualifiers
instead of OPT_Wreturn_type in warning due to ignored return type
qualifiers.

testsuite/ChangeLog:

2008-01-12  Doug Kwan  <dougkwan@google.com>

* gcc.dg/qual-return-1.c: Add -Wignored-qualifiers.
* g++.dg/warn/Wreturn-type-4.C: Replace -Wreturn-type by
-Wignored-qualifiers.

From-SVN: r131499
gcc/ChangeLog
gcc/c-decl.c
gcc/c-opts.c
gcc/c.opt
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/cp/pt.c
gcc/doc/invoke.texi
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/warn/Wreturn-type-4.C
gcc/testsuite/gcc.dg/qual-return-1.c