Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
f9bcb547
Commit
f9bcb547
authored
Sep 26, 1995
by
Jason Merrill
Committed by
Richard Kenner
Sep 26, 1995
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(duplicate_decls): Turn off whining about virtual functions redeclared
inline for now. From-SVN: r10402
parent
87416640
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletions
+6
-1
gcc/cp/decl.c
+6
-1
No files found.
gcc/cp/decl.c
View file @
f9bcb547
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment