class.c (warn_hidden): Add OPT_Woverloaded_virtual to warning.

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

cp/
	* class.c (warn_hidden): Add OPT_Woverloaded_virtual to warning.

From-SVN: r122926
parent 2e9cb75e
2007-03-14 Manuel Lopez-Ibanez <manu@gcc.gnu.org> 2007-03-14 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
* class.c (warn_hidden): Add OPT_Woverloaded_virtual to warning.
2007-03-14 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
PR c/21438 PR c/21438
* typeck.c (build_binary_op): Call warn_for_div_zero instead of * typeck.c (build_binary_op): Call warn_for_div_zero instead of
warning. warning.
......
...@@ -2421,8 +2421,8 @@ warn_hidden (tree t) ...@@ -2421,8 +2421,8 @@ warn_hidden (tree t)
while (base_fndecls) while (base_fndecls)
{ {
/* Here we know it is a hider, and no overrider exists. */ /* Here we know it is a hider, and no overrider exists. */
warning (0, "%q+D was hidden", TREE_VALUE (base_fndecls)); warning (OPT_Woverloaded_virtual, "%q+D was hidden", TREE_VALUE (base_fndecls));
warning (0, " by %q+D", fns); warning (OPT_Woverloaded_virtual, " by %q+D", fns);
base_fndecls = TREE_CHAIN (base_fndecls); base_fndecls = TREE_CHAIN (base_fndecls);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment