[PATCH] ada: Suppress warning on possibly unused out parameters in uintp.adb
Samuel Tardieu
sam@rfc1149.net
Sat Oct 27 14:22:00 GMT 2007
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
More information about the Gcc-patches
mailing list