[Ada] Suppress CodePeer message on possible uninitialized variable
authorArnaud Charlet <charlet@adacore.com>
Wed, 22 Apr 2020 07:51:24 +0000 (03:51 -0400)
committerPierre-Marie de Rodat <derodat@adacore.com>
Thu, 18 Jun 2020 09:08:23 +0000 (05:08 -0400)
2020-06-18  Arnaud Charlet  <charlet@adacore.com>

gcc/ada/

* sem_ch4.adb (Check_Compatible_Profiles): Add explicit
initialization.

gcc/ada/sem_ch4.adb

index 556f209..fa23135 100644 (file)
@@ -6677,8 +6677,8 @@ package body Sem_Ch4 is
          I     : Interp_Index;
          It    : Interp;
          I1    : Interp_Index := 0;
-         Found : Boolean := False;
-         Tmp   : Entity_Id;
+         Found : Boolean      := False;
+         Tmp   : Entity_Id    := Empty;
 
       begin
          if not Is_Overloaded (N) then