Skip to content

Commit 03fc3e0

Browse files
committed
TO BE CLEANED: shadowed copies
1 parent 3208d4f commit 03fc3e0

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
@@ -775,12 +775,13 @@ void linkingt::duplicate_code_symbol(
775775
else if(base_type_eq(old_symbol.type, new_symbol.type, ns))
776776
{
777777
// keep the one in old_symbol -- libraries come last!
778-
warning().source_location=new_symbol.location;
778+
// TODO: atomic built-ins should be marked file_local
779+
debug().source_location = new_symbol.location;
779780

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

0 commit comments

Comments
 (0)