ada: Default initialize entity to avoid CodePeer message
commit54783e61dd9bfd0f0289890ba9240deeef1af81a
authorYannick Moy <moy@adacore.com>
Wed, 29 Mar 2023 13:02:32 +0000 (29 15:02 +0200)
committerMarc Poulhiès <poulhies@adacore.com>
Fri, 26 May 2023 07:29:19 +0000 (26 09:29 +0200)
tree950877ba99193167359b46c98b3fa50d7ae45285
parentb8a3e2ed647cf5cfec72e9b7801a82a1d9e574a3
ada: Default initialize entity to avoid CodePeer message

CodePeer issues a false alarm when reading local entity Component later
if not initialized by default. Fix this.

gcc/ada/

* sem_aggr.adb (Resolve_Record_Aggregate): Add dummy initialization and
assertion that clarifies when we reassigned to a useful value.
gcc/ada/sem_aggr.adb