diff options
author | Steve Baird <baird@adacore.com> | 2022-08-29 15:33:45 -0700 |
---|---|---|
committer | Marc Poulhiès <poulhies@adacore.com> | 2022-09-12 10:16:50 +0200 |
commit | 9fcd4ccd445bd86f417db0d6940a679ced2e6307 (patch) | |
tree | 5925b57b46ff6087f7e5d6976d18fb6b6cc4c208 /gcc | |
parent | 1588e8872ac0eb0d34a35b2f4dc9539ce10f4746 (diff) | |
download | gcc-9fcd4ccd445bd86f417db0d6940a679ced2e6307.zip gcc-9fcd4ccd445bd86f417db0d6940a679ced2e6307.tar.gz gcc-9fcd4ccd445bd86f417db0d6940a679ced2e6307.tar.bz2 |
[Ada] Initialize a local variable to avoid a CodePeer warning
gcc/ada/
* sem_ch4.adb
(Analyze_Selected_Component): Initialize the local variable Comp
to avoid having CodePeer generate an uninitialized variable
warning.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ada/sem_ch4.adb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/ada/sem_ch4.adb b/gcc/ada/sem_ch4.adb index 6c81732..ceaf66b 100644 --- a/gcc/ada/sem_ch4.adb +++ b/gcc/ada/sem_ch4.adb @@ -4798,7 +4798,7 @@ package body Sem_Ch4 is Name : constant Node_Id := Prefix (N); Sel : constant Node_Id := Selector_Name (N); Act_Decl : Node_Id; - Comp : Entity_Id; + Comp : Entity_Id := Empty; Has_Candidate : Boolean := False; Hidden_Comp : Entity_Id; In_Scope : Boolean; |