ada: Remove GNATcheck violations
commitdab7e3430e76c7f23839e112f1c9676383263256
authorSheri Bernstein <bernstein@adacore.com>
Fri, 17 Nov 2023 22:14:48 +0000 (17 22:14 +0000)
committerMarc Poulhiès <poulhies@adacore.com>
Thu, 30 Nov 2023 10:12:48 +0000 (30 11:12 +0100)
treef13873f69318c790fbcb3c73512c5262409bb0dc
parentce5572d4b8b391657f050b783f0a65471cd36ad2
ada: Remove GNATcheck violations

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

gcc/ada/

* libgnat/i-cstrin.adb (Free): Rewrite code so there is only one
return, to remove Improper_Returns violation.
(Position_Of_Nul): Add pragma to exempt Improper_Returns
violation.
(To_Chars_Ptr): Likewise.
(Value): Likewise
gcc/ada/libgnat/i-cstrin.adb