This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] ada: Suppress warning on possibly unused out parameters in uintp.adb
- From: Samuel Tardieu <sam at rfc1149 dot net>
- To: gcc-patches at gcc dot gnu dot org
- Date: Sat, 27 Oct 2007 15:38:27 +0200
- Subject: [PATCH] ada: Suppress warning on possibly unused out parameters in uintp.adb
- Organisation: RFC1149 (see http://www.rfc1149.net/)
2007-10-27 Samuel Tardieu <sam@rfc1149.net>
* uintp.adb (UI_Div_Rem): Supress warnings on Quotient and
Remainder as they may not be updated depending on the
Discard_Quotient and Discard_Remainder settings.
---
gcc/ada/uintp.adb | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/gcc/ada/uintp.adb b/gcc/ada/uintp.adb
index 4ee886e..1f79670 100644
--- a/gcc/ada/uintp.adb
+++ b/gcc/ada/uintp.adb
@@ -1280,6 +1280,8 @@ package body Uintp is
Discard_Quotient : Boolean;
Discard_Remainder : Boolean)
is
+ pragma Warnings (Off, Quotient);
+ pragma Warnings (Off, Remainder);
begin
pragma Assert (Right /= Uint_0);
--
1.5.3.4