Skip to content

Commit 822500d

Browse files
committed
TO BE CLEANED: shadowed copies
1 parent e30fcc8 commit 822500d

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/linking/linking.cpp

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -776,12 +776,13 @@ void linkingt::duplicate_code_symbol(
776776
else if(base_type_eq(old_symbol.type, new_symbol.type, ns))
777777
{
778778
// keep the one in old_symbol -- libraries come last!
779-
warning().source_location=new_symbol.location;
779+
// TODO: atomic built-ins should be marked file_local
780+
debug().source_location = new_symbol.location;
780781

781-
warning() << "function '" << old_symbol.name << "' in module '"
782-
<< new_symbol.module
783-
<< "' is shadowed by a definition in module '"
784-
<< old_symbol.module << "'" << eom;
782+
debug() << "function '" << old_symbol.name << "' in module '"
783+
<< new_symbol.module
784+
<< "' is shadowed by a definition in module '"
785+
<< old_symbol.module << "'" << eom;
785786
}
786787
else
787788
link_error(

0 commit comments

Comments
 (0)