This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] ada: Suppress warning on possibly unused out parameters in uintp.adb


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]