]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
ada: Refine type of a local variable
authorPiotr Trojanek <trojanek@adacore.com>
Mon, 29 Jan 2024 15:32:19 +0000 (16:32 +0100)
committerMarc Poulhiès <poulhies@adacore.com>
Mon, 13 May 2024 08:03:32 +0000 (10:03 +0200)
Code cleanup; semantics is unaffected.

gcc/ada/

* sem_util.adb (Has_No_Output): Iteration with
First_Formal/Next_Formal involves Entity_Ids.

gcc/ada/sem_util.adb

index e9ab6650dac6c2c32411e08a295d8a329c389f93..03055039a1faeb0f12c28d433499a273699a1599 100644 (file)
@@ -4203,7 +4203,7 @@ package body Sem_Util is
             -------------------
 
             function Has_No_Output (Subp : Entity_Id) return Boolean is
-               Param : Node_Id;
+               Param : Entity_Id;
 
             begin
                --  A function has its result as output