[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.
This commit is contained in:
Javier Miranda 2020-06-06 11:26:18 -04:00 committed by Pierre-Marie de Rodat
parent c7641c228a
commit aab8cf8ba4

View File

@ -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 :=