[Ada] Reduce scope of local variables for detecting extra WITH clauses
authorPiotr Trojanek <trojanek@adacore.com>
Tue, 11 Aug 2020 20:08:10 +0000 (22:08 +0200)
committerPierre-Marie de Rodat <derodat@adacore.com>
Thu, 22 Oct 2020 12:11:22 +0000 (08:11 -0400)
commit903275965921f6f63519f07b4f82467ee39160a1
tree4a05260fb5a9e052d00a1535604e7ec3832042d4
parent61d832dee4e62fce2376138f8ab3a05c069237b0
[Ada] Reduce scope of local variables for detecting extra WITH clauses

gcc/ada/

* sem_warn.adb (Check_Unused_Withs): Move local variables from
to a nested procedure; Lunit is passed as a parameter to
Check_System_Aux and its type is refined from Node_Id to
Entity_Id; Cnode is now a constant.
gcc/ada/sem_warn.adb