public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r13-364] [Ada] Remove useless pragma Warnings Off from runtime units
@ 2022-05-12 12:41 Pierre-Marie de Rodat
0 siblings, 0 replies; only message in thread
From: Pierre-Marie de Rodat @ 2022-05-12 12:41 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:dff98f76fb246e0a0d02ce13f2160c69168c3dc7
commit r13-364-gdff98f76fb246e0a0d02ce13f2160c69168c3dc7
Author: Yannick Moy <moy@adacore.com>
Date: Fri Feb 11 09:02:42 2022 +0100
[Ada] Remove useless pragma Warnings Off from runtime units
GNAT does not issue a warning anymore on a postcondition of True (used
here to prevent inining inside GNATprove for proof).
gcc/ada/
* libgnat/s-valuei.ads: Remove pragma Warnings Off.
* libgnat/s-valueu.ads: Same.
* libgnat/s-valuti.ads: Same.
Diff:
---
gcc/ada/libgnat/s-valuei.ads | 2 --
gcc/ada/libgnat/s-valueu.ads | 2 --
gcc/ada/libgnat/s-valuti.ads | 2 --
3 files changed, 6 deletions(-)
diff --git a/gcc/ada/libgnat/s-valuei.ads b/gcc/ada/libgnat/s-valuei.ads
index d2e857a3de3..c5b4b8e5f48 100644
--- a/gcc/ada/libgnat/s-valuei.ads
+++ b/gcc/ada/libgnat/s-valuei.ads
@@ -37,8 +37,6 @@ pragma Assertion_Policy (Pre => Ignore,
Contract_Cases => Ignore,
Ghost => Ignore,
Subprogram_Variant => Ignore);
-pragma Warnings (Off, "postcondition does not mention function result");
--- True postconditions are used to avoid inlining for GNATprove
with System.Val_Util; use System.Val_Util;
diff --git a/gcc/ada/libgnat/s-valueu.ads b/gcc/ada/libgnat/s-valueu.ads
index 6245c47a791..1508b6ecb1c 100644
--- a/gcc/ada/libgnat/s-valueu.ads
+++ b/gcc/ada/libgnat/s-valueu.ads
@@ -43,8 +43,6 @@ pragma Assertion_Policy (Pre => Ignore,
Contract_Cases => Ignore,
Ghost => Ignore,
Subprogram_Variant => Ignore);
-pragma Warnings (Off, "postcondition does not mention function result");
--- True postconditions are used to avoid inlining for GNATprove
with System.Val_Util; use System.Val_Util;
diff --git a/gcc/ada/libgnat/s-valuti.ads b/gcc/ada/libgnat/s-valuti.ads
index db1051b7e3f..45a0b6691e7 100644
--- a/gcc/ada/libgnat/s-valuti.ads
+++ b/gcc/ada/libgnat/s-valuti.ads
@@ -41,8 +41,6 @@ pragma Assertion_Policy (Pre => Ignore,
Post => Ignore,
Contract_Cases => Ignore,
Ghost => Ignore);
-pragma Warnings (Off, "postcondition does not mention function result");
--- True postconditions are used to avoid inlining for GNATprove
with System.Case_Util;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-05-12 12:41 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-12 12:41 [gcc r13-364] [Ada] Remove useless pragma Warnings Off from runtime units Pierre-Marie de Rodat
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).