From: Piotr Trojanek Date: Tue, 8 Jun 2021 23:04:35 +0000 (+0200) Subject: [Ada] Initialize local variables related to static expression functions X-Git-Tag: basepoints/gcc-13~6112 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1f72ec808b2a6f95f969bc9a1a13af1f310e1678;p=thirdparty%2Fgcc.git [Ada] Initialize local variables related to static expression functions gcc/ada/ * sem_ch6.adb (Analyze_Expression_Function): Initialize Orig_N and Typ variables. --- diff --git a/gcc/ada/sem_ch6.adb b/gcc/ada/sem_ch6.adb index d5432536846d..78a076cf51a7 100644 --- a/gcc/ada/sem_ch6.adb +++ b/gcc/ada/sem_ch6.adb @@ -298,9 +298,9 @@ package body Sem_Ch6 is Asp : Node_Id; New_Body : Node_Id; New_Spec : Node_Id; - Orig_N : Node_Id; + Orig_N : Node_Id := Empty; Ret : Node_Id; - Typ : Entity_Id; + Typ : Entity_Id := Empty; Def_Id : Entity_Id := Empty; Prev : Entity_Id;