From aab8cf8ba42686aa9dee8a2bd61281c921784893 Mon Sep 17 00:00:00 2001 From: Javier Miranda Date: Sat, 6 Jun 2020 11:26:18 -0400 Subject: [PATCH] [Ada] Avoid false positive reported by CodePeer gcc/ada/ * exp_attr.adb (Expand_Access_To_Protected_Op): Initialize variable Sub to Empty to avoid false positive reported by Codepeer. --- gcc/ada/exp_attr.adb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/ada/exp_attr.adb b/gcc/ada/exp_attr.adb index 08c711800e9..cbc1fdd28d8 100644 --- a/gcc/ada/exp_attr.adb +++ b/gcc/ada/exp_attr.adb @@ -969,7 +969,7 @@ package body Exp_Attr is Loc : constant Source_Ptr := Sloc (N); Agg : Node_Id; Btyp : constant Entity_Id := Base_Type (Typ); - Sub : Entity_Id; + Sub : Entity_Id := Empty; Sub_Ref : Node_Id; E_T : constant Entity_Id := Equivalent_Type (Btyp); Acc : constant Entity_Id := -- 2.30.2