c-common.c (match_case_to_enum_1): Add appropriate OPT_W* parameter to warning.
authorManuel López-Ibáñez <manu@gcc.gnu.org>
Mon, 25 Feb 2008 23:59:44 +0000 (23:59 +0000)
committerManuel López-Ibáñez <manu@gcc.gnu.org>
Mon, 25 Feb 2008 23:59:44 +0000 (23:59 +0000)
commit683d6ff954e871028b34e8bd5e9fdda491ec2cbf
tree64878ef154456615c954564cc936b478852e6c76
parent369dcbd9d2f7d4577f689b46ee3028bc7949049c
c-common.c (match_case_to_enum_1): Add appropriate OPT_W* parameter to warning.

2008-02-26  Manuel Lopez-Ibanez <manu@gcc.gnu.org>

* c-common.c (match_case_to_enum_1): Add appropriate
OPT_W* parameter to warning.
(c_do_switch_warnings): Likewise.
* c-typeck.c (warning_init): Add one more parameter following
'warning' function.
(push_init_level): Update call to warning_init.
(pop_init_level): Likewise.
(add_pending_init): Likewise.
(output_init_element: Likewise.
cp/
* typeck.c (build_class_member_access_expr): Add appropriate
OPT_W* parameter to warning.
(build_reinterpret_cast_1): Likewise.
* name-lookup.c (push_overloaded_decl): Likewise.
testsuite/
* gcc.dg/Wswitch-enum-error.c: New.
* gcc.dg/Wswitch-error.c: New.
* gcc.dg/20011021-1.c: Use two directives to match two different
messages.

From-SVN: r132649
gcc/ChangeLog
gcc/c-common.c
gcc/c-typeck.c
gcc/cp/ChangeLog
gcc/cp/name-lookup.c
gcc/cp/typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/20011021-1.c
gcc/testsuite/gcc.dg/Wswitch-enum-error.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/Wswitch-error.c [new file with mode: 0644]