[Ada] Simplify call to overloaded Earlier_In_Extended_Unit
We have two variants of Earlier_In_Extended_Unit that take either Node_Id or Source_Ptr values. The caller can simply use another variant and not explicitly convert parameters. Code cleanup; semantics is unaffected. gcc/ada/ * sem_warn.adb (Check_Unset_Reference): Use variant of Earlier_In_Extended_Unit that calls Sloc internally.
This commit is contained in:
parent
45c4d9193d
commit
d5e6a22b54
1 changed files with 1 additions and 1 deletions
|
@ -1915,7 +1915,7 @@ package body Sem_Warn is
|
||||||
and then (No (Unset_Reference (E))
|
and then (No (Unset_Reference (E))
|
||||||
or else
|
or else
|
||||||
Earlier_In_Extended_Unit
|
Earlier_In_Extended_Unit
|
||||||
(Sloc (N), Sloc (Unset_Reference (E))))
|
(N, Unset_Reference (E)))
|
||||||
and then not Has_Pragma_Unmodified_Check_Spec (E)
|
and then not Has_Pragma_Unmodified_Check_Spec (E)
|
||||||
and then not Warnings_Off_Check_Spec (E)
|
and then not Warnings_Off_Check_Spec (E)
|
||||||
and then not Has_Junk_Name (E)
|
and then not Has_Junk_Name (E)
|
||||||
|
|
Loading…
Add table
Reference in a new issue