aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/libgnat/a-cfinve.ads
diff options
context:
space:
mode:
authorJoffrey Huguet <huguet@adacore.com>2022-06-13 11:44:51 +0200
committerPierre-Marie de Rodat <derodat@adacore.com>2022-07-12 12:24:11 +0000
commita31eda15463b00bad7c48d973e4e7e8a33006379 (patch)
treee351ff913a65f922df4f5ddc8528c8620f971b68 /gcc/ada/libgnat/a-cfinve.ads
parent01bf0d6cf53c8c5909f07d89a188b8b1a7a8f179 (diff)
downloadgcc-a31eda15463b00bad7c48d973e4e7e8a33006379.zip
gcc-a31eda15463b00bad7c48d973e4e7e8a33006379.tar.gz
gcc-a31eda15463b00bad7c48d973e4e7e8a33006379.tar.bz2
[Ada] Annotate libraries with returning annotation
This patch annotates SPARK-annotated libraries with returning annotations (Always_Return, Might_Not_Return) to remove the warnings raised by GNATprove about missing annotations. gcc/ada/ * libgnarl/a-reatim.ads, libgnat/a-cfdlli.ads, libgnat/a-cfhama.ads, libgnat/a-cfhase.ads, libgnat/a-cfinse.ads, libgnat/a-cfinve.ads, libgnat/a-cforma.ads, libgnat/a-cforse.ads, libgnat/a-chahan.ads, libgnat/a-cofove.ads, libgnat/a-cofuma.ads, libgnat/a-cofuse.ads, libgnat/a-cofuve.ads, libgnat/a-nbnbin.ads, libgnat/a-nbnbre.ads, libgnat/a-ngelfu.ads, libgnat/a-nlelfu.ads, libgnat/a-nllefu.ads, libgnat/a-nselfu.ads, libgnat/a-nuelfu.ads, libgnat/a-strbou.ads, libgnat/a-strfix.ads, libgnat/a-strmap.ads, libgnat/a-strunb.ads, libgnat/a-strunb__shared.ads, libgnat/a-strsea.ads, libgnat/a-textio.ads, libgnat/a-tideio.ads, libgnat/a-tienio.ads, libgnat/a-tifiio.ads, libgnat/a-tiflio.ads, libgnat/a-tiinio.ads, libgnat/a-timoio.ads, libgnat/i-c.ads, libgnat/interfac.ads, libgnat/interfac__2020.ads, libgnat/s-atacco.ads, libgnat/s-stoele.ads: Annotate packages and subprograms with returning annotations.
Diffstat (limited to 'gcc/ada/libgnat/a-cfinve.ads')
-rw-r--r--gcc/ada/libgnat/a-cfinve.ads4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/ada/libgnat/a-cfinve.ads b/gcc/ada/libgnat/a-cfinve.ads
index b5fa29b..f44e45b 100644
--- a/gcc/ada/libgnat/a-cfinve.ads
+++ b/gcc/ada/libgnat/a-cfinve.ads
@@ -53,8 +53,10 @@ generic
-- grow via heap allocation.
package Ada.Containers.Formal_Indefinite_Vectors with
- SPARK_Mode => On
+ SPARK_Mode,
+ Annotate => (GNATprove, Always_Return)
is
+
-- Contracts in this unit are meant for analysis only, not for run-time
-- checking.