diff options
Diffstat (limited to 'gcc/ada/g-expect.adb')
-rw-r--r-- | gcc/ada/g-expect.adb | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/gcc/ada/g-expect.adb b/gcc/ada/g-expect.adb index c4902b51d0e..9517905d410 100644 --- a/gcc/ada/g-expect.adb +++ b/gcc/ada/g-expect.adb @@ -6,7 +6,7 @@ -- -- -- B o d y -- -- -- --- Copyright (C) 2000-2005, AdaCore -- +-- Copyright (C) 2000-2006, AdaCore -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- @@ -1110,8 +1110,8 @@ package body GNAT.Expect is Result : Expect_Match; Descriptors : Array_Of_Pd := (1 => Descriptor'Unrestricted_Access); - Dummy : Natural; - pragma Unreferenced (Dummy); + Discard : Natural; + pragma Warnings (Off, Discard); begin if Empty_Buffer then @@ -1135,7 +1135,7 @@ package body GNAT.Expect is Call_Filters (Descriptor, Full_Str (Full_Str'First .. Last), Input); - Dummy := + Discard := Write (Descriptor.Input_Fd, Full_Str'Address, Last - Full_Str'First + 1); @@ -1275,7 +1275,6 @@ package body GNAT.Expect is Pipe3 : in out Pipe_Type) is pragma Warnings (Off, Pid); - begin Close (Pipe1.Input); Close (Pipe2.Output); |