]> gcc.gnu.org Git - gcc.git/commitdiff
[Ada] Fix CodePeer warnings
authorGhjuvan Lacambre <lacambre@adacore.com>
Wed, 4 Aug 2021 15:46:04 +0000 (17:46 +0200)
committerPierre-Marie de Rodat <derodat@adacore.com>
Fri, 1 Oct 2021 06:13:35 +0000 (06:13 +0000)
gcc/ada/

* sem_aggr.adb (Resolve_Iterated_Component_Association):
Initialize Id_Typ to Any_Type by default.

gcc/ada/sem_aggr.adb

index c4c4d9152dcdf77453d003478b2b36ed93be6370..752b84d6b48abfa1060bb208f93080de9ed70802 100644 (file)
@@ -1605,7 +1605,7 @@ package body Sem_Aggr is
          Loc : constant Source_Ptr := Sloc (N);
          Id  : constant Entity_Id  := Defining_Identifier (N);
 
-         Id_Typ : Entity_Id;
+         Id_Typ : Entity_Id := Any_Type;
 
          -----------------------
          -- Remove_References --
This page took 0.073648 seconds and 5 git commands to generate.