Commit f9bcb547 by Jason Merrill Committed by Richard Kenner

(duplicate_decls): Turn off whining about virtual functions redeclared

inline for now.

From-SVN: r10402
parent 87416640
...@@ -2672,6 +2672,9 @@ duplicate_decls (newdecl, olddecl) ...@@ -2672,6 +2672,9 @@ duplicate_decls (newdecl, olddecl)
if (DECL_THIS_INLINE (newdecl) && ! DECL_THIS_INLINE (olddecl)) if (DECL_THIS_INLINE (newdecl) && ! DECL_THIS_INLINE (olddecl))
{ {
#if 0 /* I think this will be correct, but it's really annoying. We should
fix the compiler to find vtables by indirection so it isn't
necessary. (jason 8/25/95) */
if (DECL_VINDEX (olddecl) && ! DECL_ABSTRACT_VIRTUAL_P (olddecl)) if (DECL_VINDEX (olddecl) && ! DECL_ABSTRACT_VIRTUAL_P (olddecl))
{ {
cp_pedwarn ("virtual function `%#D' redeclared inline", cp_pedwarn ("virtual function `%#D' redeclared inline",
...@@ -2679,7 +2682,9 @@ duplicate_decls (newdecl, olddecl) ...@@ -2679,7 +2682,9 @@ duplicate_decls (newdecl, olddecl)
cp_pedwarn_at ("previous non-inline declaration here", cp_pedwarn_at ("previous non-inline declaration here",
olddecl); olddecl);
} }
else if (TREE_ADDRESSABLE (olddecl)) else
#endif
if (TREE_ADDRESSABLE (olddecl))
{ {
cp_pedwarn ("`%#D' was used before it was declared inline", cp_pedwarn ("`%#D' was used before it was declared inline",
newdecl); newdecl);
......
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