ada: Remove GNATcheck violations
commit8ce9496f0e18f2cd1a0b86d18c534bd04fbacc31
authorSheri Bernstein <bernstein@adacore.com>
Fri, 1 Dec 2023 01:14:22 +0000 (1 01:14 +0000)
committerMarc Poulhiès <poulhies@adacore.com>
Tue, 19 Dec 2023 14:27:50 +0000 (19 15:27 +0100)
treed629ce7147f64c1f821a235b6c6e01f5bdcbc06f
parent23508d3dc673de88af9a43d34d723863f1edd61d
ada: Remove GNATcheck violations

Remove GNATcheck violations by refactoring code and also using
pragma Annotate to exempt them.

gcc/ada/

* libgnat/a-comlin.adb (Argument_Count): Rewrite code so there is
only one return, to remove Improper_Returns violation.
(Command_Name): Add pragma to exempt Improper_Returns violation.
gcc/ada/libgnat/a-comlin.adb