[Ada] Fix CodePeer warnings in GNAT sources
authorJustin Squirek <squirek@adacore.com>
Thu, 30 Jun 2022 16:20:52 +0000 (16:20 +0000)
committerPierre-Marie de Rodat <derodat@adacore.com>
Wed, 13 Jul 2022 10:01:14 +0000 (10:01 +0000)
commit730814edc8b3c1bc872c54a39064ac59e2b8fdbd
tree4859c335942d87468bdec8679958832794858693
parent1d73dfb5e6f60030bb0809266fb9c639eb60fa11
[Ada] Fix CodePeer warnings in GNAT sources

This patch fixes various redundant constructs or uninitialized variables
identified by CodePeer in the GNAT frontend and runtime sources.

gcc/ada/

* exp_ch6.adb (Expand_N_Extended_Return_Statement): Add default
initialization for Stmts.
* sem_ch12.adb (Analyze_Associations): Add default
initialization for Match.
* libgnat/a-ztenau.adb (Scan_Enum_Lit): Remove duplicated
boolean test.
* libgnat/g-spipat.adb (XMatch): Combine duplicated cases.
gcc/ada/exp_ch6.adb
gcc/ada/libgnat/a-ztenau.adb
gcc/ada/libgnat/g-spipat.adb
gcc/ada/sem_ch12.adb