mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-31 12:51:15 +08:00
[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:
parent
c7641c228a
commit
aab8cf8ba4
@ -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 :=
|
||||
|
Loading…
x
Reference in New Issue
Block a user