]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[Ada] Initialize variable to Empty
authorGhjuvan Lacambre <lacambre@adacore.com>
Wed, 20 Oct 2021 09:56:09 +0000 (11:56 +0200)
committerPierre-Marie de Rodat <derodat@adacore.com>
Mon, 25 Oct 2021 15:07:20 +0000 (15:07 +0000)
gcc/ada/

* sem_ch8.adb (Analyze_Subprogram_Renaming): Set New_S to Empty.

gcc/ada/sem_ch8.adb

index 1513cd5579c5fa27f8f419771143a521621e4e6b..b05727e64f03d4076fb16f36caa927ed6f157695 100644 (file)
@@ -3099,7 +3099,7 @@ package body Sem_Ch8 is
       --  related formal type is class-wide.
 
       Inst_Node    : Node_Id   := Empty;
-      New_S        : Entity_Id;
+      New_S        : Entity_Id := Empty;
       Wrapped_Prim : Entity_Id := Empty;
 
    --  Start of processing for Analyze_Subprogram_Renaming