]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
s-conca5.adb, [...]: Remove unneeded pragma Warnings
authorRobert Dewar <dewar@adacore.com>
Fri, 17 Apr 2009 13:15:47 +0000 (13:15 +0000)
committerArnaud Charlet <charlet@gcc.gnu.org>
Fri, 17 Apr 2009 13:15:47 +0000 (15:15 +0200)
2009-04-17  Robert Dewar  <dewar@adacore.com>

* s-conca5.adb, g-sercom.adb, s-conca5.ads, s-conca7.adb, exp_imgv.adb,
s-conca7.ads, s-crc32.adb, s-crc32.ads, s-conca9.adb, s-conca9.ads,
s-addope.adb, i-cstrin.ads, s-addope.ads, s-carun8.adb, s-carun8.ads,
g-htable.ads, g-hesora.adb, g-hesora.ads, s-htable.adb, s-htable.ads,
s-conca2.adb, s-conca2.ads, a-except.adb, s-conca4.adb, a-except.ads,
s-conca4.ads, s-except.adb, s-except.ads, s-conca6.adb, s-conca6.ads,
g-spchge.adb, g-spchge.ads, g-u3spch.adb, g-u3spch.ads, s-conca8.adb,
s-conca8.ads, g-byorma.adb, g-byorma.ads, s-memory.adb, s-memory.ads,
g-speche.adb, g-speche.ads, g-stsifd-sockets.adb, exp_dist.adb,
s-imgenu.adb, s-imgenu.ads, s-mastop.adb, s-mastop.ads, s-exctab.adb,
s-exctab.ads, s-imenne.adb, s-imenne.ads, s-casuti.adb, osint.adb,
s-assert.adb, s-casuti.ads, s-assert.ads, s-os_lib.adb, s-conca3.adb,
s-conca3.ads: Remove unneeded pragma Warnings

From-SVN: r146263

61 files changed:
gcc/ada/ChangeLog
gcc/ada/a-except.adb
gcc/ada/a-except.ads
gcc/ada/exp_dist.adb
gcc/ada/exp_imgv.adb
gcc/ada/g-byorma.adb
gcc/ada/g-byorma.ads
gcc/ada/g-hesora.adb
gcc/ada/g-hesora.ads
gcc/ada/g-htable.ads
gcc/ada/g-sercom.adb
gcc/ada/g-spchge.adb
gcc/ada/g-spchge.ads
gcc/ada/g-speche.adb
gcc/ada/g-speche.ads
gcc/ada/g-stsifd-sockets.adb
gcc/ada/g-u3spch.adb
gcc/ada/g-u3spch.ads
gcc/ada/i-cstrin.ads
gcc/ada/osint.adb
gcc/ada/s-addope.adb
gcc/ada/s-addope.ads
gcc/ada/s-assert.adb
gcc/ada/s-assert.ads
gcc/ada/s-carun8.adb
gcc/ada/s-carun8.ads
gcc/ada/s-casuti.adb
gcc/ada/s-casuti.ads
gcc/ada/s-conca2.adb
gcc/ada/s-conca2.ads
gcc/ada/s-conca3.adb
gcc/ada/s-conca3.ads
gcc/ada/s-conca4.adb
gcc/ada/s-conca4.ads
gcc/ada/s-conca5.adb
gcc/ada/s-conca5.ads
gcc/ada/s-conca6.adb
gcc/ada/s-conca6.ads
gcc/ada/s-conca7.adb
gcc/ada/s-conca7.ads
gcc/ada/s-conca8.adb
gcc/ada/s-conca8.ads
gcc/ada/s-conca9.adb
gcc/ada/s-conca9.ads
gcc/ada/s-crc32.adb
gcc/ada/s-crc32.ads
gcc/ada/s-except.adb
gcc/ada/s-except.ads
gcc/ada/s-exctab.adb
gcc/ada/s-exctab.ads
gcc/ada/s-htable.adb
gcc/ada/s-htable.ads
gcc/ada/s-imenne.adb
gcc/ada/s-imenne.ads
gcc/ada/s-imgenu.adb
gcc/ada/s-imgenu.ads
gcc/ada/s-mastop.adb
gcc/ada/s-mastop.ads
gcc/ada/s-memory.adb
gcc/ada/s-memory.ads
gcc/ada/s-os_lib.adb

index 6fee481ee697554fb0aa070def189dd95d43268d..732023b09c242c332bfe4c5eee76ac802836a557 100644 (file)
@@ -1,3 +1,19 @@
+2009-04-17  Robert Dewar  <dewar@adacore.com>
+
+       * s-conca5.adb, g-sercom.adb, s-conca5.ads, s-conca7.adb, exp_imgv.adb,
+       s-conca7.ads, s-crc32.adb, s-crc32.ads, s-conca9.adb, s-conca9.ads,
+       s-addope.adb, i-cstrin.ads, s-addope.ads, s-carun8.adb, s-carun8.ads,
+       g-htable.ads, g-hesora.adb, g-hesora.ads, s-htable.adb, s-htable.ads,
+       s-conca2.adb, s-conca2.ads, a-except.adb, s-conca4.adb, a-except.ads,
+       s-conca4.ads, s-except.adb, s-except.ads, s-conca6.adb, s-conca6.ads,
+       g-spchge.adb, g-spchge.ads, g-u3spch.adb, g-u3spch.ads, s-conca8.adb,
+       s-conca8.ads, g-byorma.adb, g-byorma.ads, s-memory.adb, s-memory.ads,
+       g-speche.adb, g-speche.ads, g-stsifd-sockets.adb, exp_dist.adb,
+       s-imgenu.adb, s-imgenu.ads, s-mastop.adb, s-mastop.ads, s-exctab.adb,
+       s-exctab.ads, s-imenne.adb, s-imenne.ads, s-casuti.adb, osint.adb,
+       s-assert.adb, s-casuti.ads, s-assert.ads, s-os_lib.adb, s-conca3.adb,
+       s-conca3.ads: Remove unneeded pragma Warnings
+
 2009-04-17  Robert Dewar  <dewar@adacore.com>
 
        * g-moreex.adb: Add comments.
index 229645ac8f9099ed21d21cf22a589cbb4e313911..cf04fd46f3e18e414c694dfbf9b8dd0fb218f061 100644 (file)
@@ -40,9 +40,7 @@
 --  2005 functionality is required. In particular, it is used for building
 --  run times on all targets.
 
-pragma Warnings (Off);
 pragma Compiler_Unit;
-pragma Warnings (On);
 
 pragma Style_Checks (All_Checks);
 --  No subprogram ordering check, due to logical grouping
index 725bcb8bcb5d55b1755447c35e579aa2eebab769..14aea1dd32605ccee981ec101386b4cc8f9f59b4 100644 (file)
 --  2005 functionality is required. In particular, it is used for building
 --  run times on all targets.
 
+pragma Compiler_Unit;
+
 pragma Polling (Off);
 --  We must turn polling off for this unit, because otherwise we get
 --  elaboration circularities with ourself.
 
-pragma Warnings (Off);
-pragma Compiler_Unit;
-pragma Warnings (On);
-
 with System;
 with System.Parameters;
 with System.Standard_Library;
index f1ddc009f5a0d0db7b9f406c29bf749856497ec0..04a2187c8ce939246d152962c581a7e37fe6626c 100644 (file)
@@ -3645,9 +3645,7 @@ package body Exp_Dist is
         (Vis_Decl : Node_Id;
          RAS_Type : Entity_Id)
       is
-         pragma Warnings (Off);
          pragma Unreferenced (RAS_Type);
-         pragma Warnings (On);
       begin
          Add_RAS_Access_TSS (Vis_Decl);
       end Add_RAST_Features;
@@ -4111,10 +4109,8 @@ package body Exp_Dist is
          --  List of statements for extra formal parameters. It will appear
          --  after the regular statements for writing out parameters.
 
-         pragma Warnings (Off);
          pragma Unreferenced (RACW_Type);
          --  Used only for the PolyORB case
-         pragma Warnings (On);
 
       begin
          --  The general form of a calling stub for a given subprogram is:
@@ -5601,9 +5597,7 @@ package body Exp_Dist is
          RPC_Receiver_Decl : Node_Id;
          Body_Decls        : List_Id)
       is
-         pragma Warnings (Off);
          pragma Unreferenced (RPC_Receiver_Decl);
-         pragma Warnings (On);
 
       begin
          Add_RACW_From_Any
@@ -5730,9 +5724,8 @@ package body Exp_Dist is
          Stub_Type_Access : Entity_Id;
          Body_Decls       : List_Id)
       is
-         pragma Warnings (Off);
          pragma Unreferenced (Stub_Type, Stub_Type_Access);
-         pragma Warnings (On);
+
          Loc : constant Source_Ptr := Sloc (RACW_Type);
 
          Proc_Decl : Node_Id;
@@ -6047,9 +6040,7 @@ package body Exp_Dist is
          Stub_Type_Access : Entity_Id;
          Body_Decls       : List_Id)
       is
-         pragma Warnings (Off);
          pragma Unreferenced (Stub_Type, Stub_Type_Access);
-         pragma Warnings (On);
 
          Loc : constant Source_Ptr := Sloc (RACW_Type);
 
@@ -7629,9 +7620,8 @@ package body Exp_Dist is
          RPC_Receiver_Decl : out Node_Id)
       is
          Loc : constant Source_Ptr := Sloc (Stub_Type);
-         pragma Warnings (Off);
+
          pragma Unreferenced (RACW_Type);
-         pragma Warnings (On);
 
       begin
          Stub_Type_Decl :=
@@ -9894,9 +9884,7 @@ package body Exp_Dist is
                      Counter : Entity_Id;
                      Datum   : Node_Id)
                   is
-                     pragma Warnings (Off);
                      pragma Unreferenced (Counter);
-                     pragma Warnings (On);
 
                      Element_Any : Node_Id;
 
@@ -10387,9 +10375,7 @@ package body Exp_Dist is
                Rec     : Entity_Id;
                Field   : Node_Id)
             is
-               pragma Warnings (Off);
                pragma Unreferenced (Any, Counter, Rec);
-               pragma Warnings (On);
 
             begin
                if Nkind (Field) = N_Defining_Identifier then
index ed53ca0c1111d2b4b996c0f85d9a65f1bbc8be34..cf4a9c02a808a9fbf7518e57403e757e43cf92fe 100644 (file)
@@ -1158,9 +1158,8 @@ package body Exp_Imgv is
             --  as is done with other ZFP violations.
 
             declare
-               pragma Warnings (Off); -- since Discard is unreferenced
                Discard : constant Entity_Id := RTE (RE_Null);
-               pragma Warnings (On);
+               pragma Unreferenced (Discard);
             begin
                return;
             end;
index 7e355b041b58b3cd94962c228a81732745a56508..27138b463f404335232ff8a6115a41165f7cc9b7 100755 (executable)
@@ -31,6 +31,8 @@
 --                                                                          --
 ------------------------------------------------------------------------------
 
+pragma Compiler_Unit;
+
 package body GNAT.Byte_Order_Mark is
 
    --------------
index 6016f755bcc3b53d69825925caf8f9bc1cd5b8b4..d01404e6eb02f96a887651071db989c36f413934 100755 (executable)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 S p e c                                  --
 --                                                                          --
---                     Copyright (C) 2006-2007, AdaCore                     --
+--                     Copyright (C) 2006-2008, 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- --
@@ -63,9 +63,7 @@
 --     cases depend on the first character of the XML file being < so that the
 --     encoding of this character can be recognized.
 
-pragma Warnings (Off);
 pragma Compiler_Unit;
-pragma Warnings (On);
 
 package GNAT.Byte_Order_Mark is
 
index cb54558a6c715ba12463a22330f97d19a31ce0c2..60f307bba8abcf33b514f3a1309bde3886c39a03 100644 (file)
@@ -31,9 +31,7 @@
 --                                                                          --
 ------------------------------------------------------------------------------
 
-pragma Warnings (Off);
 pragma Compiler_Unit;
-pragma Warnings (On);
 
 package body GNAT.Heap_Sort_A is
 
index bf60cafd9ef3269c0ae3cd1c8e8198f8c542a221..11b896919684e3cba394591b5edc1792f6753250 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 S p e c                                  --
 --                                                                          --
---                     Copyright (C) 1995-2007, AdaCore                     --
+--                     Copyright (C) 1995-2008, 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- --
@@ -42,9 +42,7 @@
 --  worst case and is in place with no additional storage required. See
 --  the body for exact details of the algorithm used.
 
-pragma Warnings (Off);
 pragma Compiler_Unit;
-pragma Warnings (On);
 
 package GNAT.Heap_Sort_A is
    pragma Preelaborate;
index 5f7a27ccb7528a57dff0015a69eb156455848286..a158d09f618e1e5a2fc89e09ad9aaa3f1f1be322 100644 (file)
@@ -43,9 +43,7 @@
 --  this facility is accessed from run time routines, but clients should
 --  always access the version supplied via GNAT.HTable.
 
-pragma Warnings (Off);
 pragma Compiler_Unit;
-pragma Warnings (On);
 
 with System.HTable;
 
index c1b4b8e481b8137e5506dd327c2064e400ed68ef..a39d4dbbca4b5882fe360a7727c32a63f3918093 100644 (file)
@@ -67,7 +67,8 @@ package body GNAT.Serial_Communications is
 
    procedure Open
      (Port : out Serial_Port;
-      Name : Port_Name) is
+      Name : Port_Name)
+   is
    begin
       Unimplemented;
    end Open;
@@ -83,7 +84,8 @@ package body GNAT.Serial_Communications is
       Stop_Bits : Stop_Bits_Number := One;
       Parity    : Parity_Check     := None;
       Block     : Boolean          := True;
-      Timeout   : Duration         := 10.0) is
+      Timeout   : Duration         := 10.0)
+   is
    begin
       Unimplemented;
    end Set;
@@ -95,7 +97,8 @@ package body GNAT.Serial_Communications is
    overriding procedure Read
      (Port   : in out Serial_Port;
       Buffer : out Stream_Element_Array;
-      Last   : out Stream_Element_Offset) is
+      Last   : out Stream_Element_Offset)
+   is
    begin
       Unimplemented;
    end Read;
@@ -106,7 +109,8 @@ package body GNAT.Serial_Communications is
 
    overriding procedure Write
      (Port   : in out Serial_Port;
-      Buffer : Stream_Element_Array) is
+      Buffer : Stream_Element_Array)
+   is
    begin
       Unimplemented;
    end Write;
index 2e4c7c786fbecdd3ef7e65a13142b463a0065d9a..b1278a6481172e30c38f0a7114ba342cb5debcd7 100755 (executable)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 B o d y                                  --
 --                                                                          --
---                     Copyright (C) 1998-2007, AdaCore                     --
+--                     Copyright (C) 1998-2008, 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- --
@@ -31,9 +31,7 @@
 --                                                                          --
 ------------------------------------------------------------------------------
 
-pragma Warnings (Off);
 pragma Compiler_Unit;
-pragma Warnings (On);
 
 package body GNAT.Spelling_Checker_Generic is
 
index 0a29c589a214d12ec32af7c5b879d4bcdb189d39..786213bf1ff9fd98f5f9c327783b7e1d84bff5ae 100755 (executable)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 S p e c                                  --
 --                                                                          --
---                     Copyright (C) 1998-2007, AdaCore                     --
+--                     Copyright (C) 1998-2008, 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- --
@@ -39,9 +39,7 @@
 --  codes for ASCII characters in the range 16#20#..16#7F# have their normal
 --  expected encoding values (e.g. the Pos value 16#31# must be digit 1).
 
-pragma Warnings (Off);
 pragma Compiler_Unit;
-pragma Warnings (On);
 
 package GNAT.Spelling_Checker_Generic is
    pragma Pure;
index 841eef8ddfe25ec5c6dcb63c0cfa0a91c069a314..cd66efee788257e73290651bcd98f6932004d283 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 B o d y                                  --
 --                                                                          --
---                     Copyright (C) 1998-2007, AdaCore                     --
+--                     Copyright (C) 1998-2008, 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- --
@@ -31,9 +31,7 @@
 --                                                                          --
 ------------------------------------------------------------------------------
 
-pragma Warnings (Off);
 pragma Compiler_Unit;
-pragma Warnings (On);
 
 with GNAT.Spelling_Checker_Generic;
 
index b0eba286a027cea0ed5b775592fa35448c8f55cb..0f9b39a6242c2e5afb86b76c8e266eb975122702 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 S p e c                                  --
 --                                                                          --
---                     Copyright (C) 1998-2007, AdaCore                     --
+--                     Copyright (C) 1998-2008, 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- --
@@ -36,9 +36,7 @@
 --  This package provides a utility routine for checking for bad spellings
 --  for the case of String arguments.
 
-pragma Warnings (Off);
 pragma Compiler_Unit;
-pragma Warnings (On);
 
 package GNAT.Spelling_Checker is
    pragma Pure;
index 5fe43af465468962183744edd00ad6121bbce4f6..cb03192fce23b3ee17241e9c64302684fdf249cc 100644 (file)
@@ -67,7 +67,8 @@ package body Signalling_Fds is
       --  Address of listening socket
 
       Res : C.int;
-      --  Return status of system calls
+      pragma Warnings (Off, Res);
+      --  Return status of system calls (usually ignored, hence warnings off)
 
    begin
       Fds.all := (Read_End | Write_End => Failure);
@@ -153,9 +154,7 @@ package body Signalling_Fds is
          pragma Assert (Res = Failure
                           and then
                         Socket_Errno = SOSC.EADDRINUSE);
-         pragma Warnings (Off); -- useless assignment to "Res"
          Res := C_Close (W_Sock);
-         pragma Warnings (On);
          W_Sock := Failure;
          Res := C_Close (R_Sock);
          R_Sock := Failure;
index 3e7ede843f259e4b7c51f093e83dc822fd10689d..febe0b435895c4d32aef4214d79cd93288c64209 100755 (executable)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 B o d y                                  --
 --                                                                          --
---                     Copyright (C) 1998-2007, AdaCore                     --
+--                     Copyright (C) 1998-2008, 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- --
@@ -31,9 +31,7 @@
 --                                                                          --
 ------------------------------------------------------------------------------
 
-pragma Warnings (Off);
 pragma Compiler_Unit;
-pragma Warnings (On);
 
 with GNAT.Spelling_Checker_Generic;
 
index 90ab66d978f7a9936ed2d477f2ae2515ead925ee..773a253b06459870fec0b2f1c13b1bb1cc1b85d4 100755 (executable)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 S p e c                                  --
 --                                                                          --
---                     Copyright (C) 1998-2007, AdaCore                     --
+--                     Copyright (C) 1998-2008, 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- --
@@ -36,9 +36,7 @@
 --  This package provides a utility routine for checking for bad spellings
 --  for the case of System.WCh_Cnv.UTF_32_String arguments.
 
-pragma Warnings (Off);
 pragma Compiler_Unit;
-pragma Warnings (On);
 
 with System.WCh_Cnv;
 
index 1d956a6059a65107e062ae045812bac9956d9a03..7bfee8f2c6d251b7dd56af1531a367ebb2ddace8 100644 (file)
@@ -38,14 +38,10 @@ package Interfaces.C.Strings is
 
    type char_array_access is access all char_array;
 
-   pragma Warnings (Off);
    pragma No_Strict_Aliasing (char_array_access);
-   pragma Warnings (On);
    --  Since this type is used for external interfacing, with the pointer
    --  coming from who knows where, it seems a good idea to turn off any
-   --  strict aliasing assumptions for this type. We turn off warnings for
-   --  this pragma to deal with being compiled with an earlier GNAT version
-   --  that does not recognize this pragma.
+   --  strict aliasing assumptions for this type.
 
    type chars_ptr is private;
 
index 0363f5e27eb1bd445b8b8faa4839154fbc5a6381..c847f5e57246969d55b68ac262d88ebf3dff81cd 100644 (file)
@@ -300,7 +300,7 @@ package body Osint is
 
          Status : Boolean;
          pragma Warnings (Off, Status);
-         --  For the call to Close
+         --  For the call to Close where status is ignored
 
       begin
          File_FD := Open_Read (Buffer'Address, Binary);
index 715e2b2e1db1d946ac04b3e619c7df8f2ca55713..2c957584da4c320f38b61ff2f6fe5c6d38f86198 100644 (file)
@@ -29,9 +29,7 @@
 --                                                                          --
 ------------------------------------------------------------------------------
 
-pragma Warnings (Off);
 pragma Compiler_Unit;
-pragma Warnings (On);
 
 with Ada.Unchecked_Conversion;
 
index 1b53feae08ee3a07e49ba3ec9ae03afd8931ac76..2d3f58946814e0061a1ea4e20722c5f3e0d38d82 100644 (file)
@@ -40,9 +40,7 @@
 --  inappropriate use by applications programs). In addition, the logical
 --  operations may not be available if type Address is a signed integer.
 
-pragma Warnings (Off);
 pragma Compiler_Unit;
-pragma Warnings (On);
 
 package System.Address_Operations is
    pragma Pure;
index 178166cdf1f0065100d61f2dc1733b2a05a908b5..030ec17192e7195a632fdd7c943993fa98cc5dd6 100644 (file)
@@ -29,9 +29,7 @@
 --                                                                          --
 ------------------------------------------------------------------------------
 
-pragma Warnings (Off);
 pragma Compiler_Unit;
-pragma Warnings (On);
 
 with Ada.Exceptions;
 with System.Exceptions;
index 525fdad49e1134108a8feaaf9aab0b6788db818d..433e276c600d4c15df7425e909377db3e98e7bcc 100644 (file)
@@ -34,9 +34,7 @@
 --  This unit may be used directly from an application program by providing
 --  an appropriate WITH, and the interface can be expected to remain stable.
 
-pragma Warnings (Off);
 pragma Compiler_Unit;
-pragma Warnings (On);
 
 package System.Assertions is
 
index b4733c2aa092f19f4fc52051a026d02b5e144507..450e0476504f8e561a98233d1f1eebc95efe38b4 100644 (file)
@@ -29,9 +29,7 @@
 --                                                                          --
 ------------------------------------------------------------------------------
 
-pragma Warnings (Off);
 pragma Compiler_Unit;
-pragma Warnings (On);
 
 with System.Address_Operations; use System.Address_Operations;
 
index 7866126db84cc85edd603e3201930598080b6fba..aa0d4e0f74054410e97ad207f1779363744f2123 100644 (file)
@@ -32,9 +32,7 @@
 --  This package contains functions for runtime comparisons on arrays whose
 --  elements are 8-bit discrete type values to be treated as unsigned.
 
-pragma Warnings (Off);
 pragma Compiler_Unit;
-pragma Warnings (On);
 
 package System.Compare_Array_Unsigned_8 is
 
index 807024e76314b40eeb3b6b4d7d3fde3f03c829d6..8517db7c092b21a7cfe944921fd8ec246405ce7c 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 B o d y                                  --
 --                                                                          --
---                     Copyright (C) 1995-2007, AdaCore                     --
+--                     Copyright (C) 1995-2008, 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- --
@@ -31,9 +31,7 @@
 --                                                                          --
 ------------------------------------------------------------------------------
 
-pragma Warnings (Off);
 pragma Compiler_Unit;
-pragma Warnings (On);
 
 package body System.Case_Util is
 
index 1a091628c2ee911416b3b3760688ea63a27fc3dd..84b92f6e6bc90d5321a07910411f7f6e20db6afc 100644 (file)
@@ -37,9 +37,7 @@
 --  Note that all the routines in this package are available to the user
 --  via GNAT.Case_Util, which imports all the entities from this package.
 
-pragma Warnings (Off);
 pragma Compiler_Unit;
-pragma Warnings (On);
 
 package System.Case_Util is
    pragma Pure;
index c1e811561faaf89867310945a6c1ca3517e9c2e0..1764575737c4b152ddb1a83805a250ff0edaf24f 100644 (file)
@@ -29,9 +29,7 @@
 --                                                                          --
 ------------------------------------------------------------------------------
 
-pragma Warnings (Off);
 pragma Compiler_Unit;
-pragma Warnings (On);
 
 package body System.Concat_2 is
 
index 2ea839772f44d2634b81999ac352cbdcf66d5664..b0fa85956af4023419436cc35f27aa4ac6369533 100644 (file)
@@ -32,9 +32,7 @@
 --  This package contains a procedure for runtime concatenation of two string
 --  operands. It is used when we want to save space in the generated code.
 
-pragma Warnings (Off);
 pragma Compiler_Unit;
-pragma Warnings (On);
 
 package System.Concat_2 is
 
index eee12fca519e695f1cb670bb68d1f53a69bf4e80..daa4ec7c9f8924d06938de1eb2e64c5b65aff73b 100644 (file)
@@ -29,9 +29,7 @@
 --                                                                          --
 ------------------------------------------------------------------------------
 
-pragma Warnings (Off);
 pragma Compiler_Unit;
-pragma Warnings (On);
 
 package body System.Concat_3 is
 
index 66005a2a5c0f0ad5a31dd25051b13a5af66f66a1..41c7d978ecb0a7fce6f142adf42be0a68b57064f 100644 (file)
@@ -32,9 +32,7 @@
 --  This package contains a procedure for runtime concatenation of three string
 --  operands. It is used when we want to save space in the generated code.
 
-pragma Warnings (Off);
 pragma Compiler_Unit;
-pragma Warnings (On);
 
 package System.Concat_3 is
 
index 0a9d2c5158aed326253b1a02ded354fde468b762..455c5be3e7693ab463f6d124829510432b33c1a5 100644 (file)
@@ -29,9 +29,7 @@
 --                                                                          --
 ------------------------------------------------------------------------------
 
-pragma Warnings (Off);
 pragma Compiler_Unit;
-pragma Warnings (On);
 
 package body System.Concat_4 is
 
index c49f5077a51edbdff81f5a504e6525a9b7ad56e8..a6d530c81e64b39778d182fd9ce58e79fb89c7fd 100644 (file)
@@ -32,9 +32,7 @@
 --  This package contains a procedure for runtime concatenation of four string
 --  operands. It is used when we want to save space in the generated code.
 
-pragma Warnings (Off);
 pragma Compiler_Unit;
-pragma Warnings (On);
 
 package System.Concat_4 is
 
index 3aa9e0aa64e4f14fc5f8a29f9d0b3360b7b6d59f..e463255a5bb43a979777451b65ea813f4d8766f2 100644 (file)
@@ -29,9 +29,7 @@
 --                                                                          --
 ------------------------------------------------------------------------------
 
-pragma Warnings (Off);
 pragma Compiler_Unit;
-pragma Warnings (On);
 
 package body System.Concat_5 is
 
index 227b700738b94c0a215dda6cda638bbc3bedc676..445b213786650c6d6d1578da4282b04a0ace2f8d 100644 (file)
@@ -32,9 +32,7 @@
 --  This package contains a procedure for runtime concatenation of five string
 --  operands. It is used when we want to save space in the generated code.
 
-pragma Warnings (Off);
 pragma Compiler_Unit;
-pragma Warnings (On);
 
 package System.Concat_5 is
 
index 0caeb09ee8d345cb8d1af8c20ad8249d68b69d18..a0bd3838fe15975d6b8d7b75dc3fa6d036478f9b 100644 (file)
@@ -29,9 +29,7 @@
 --                                                                          --
 ------------------------------------------------------------------------------
 
-pragma Warnings (Off);
 pragma Compiler_Unit;
-pragma Warnings (On);
 
 package body System.Concat_6 is
 
index 6376e677a7aa7a000143be61d3b6e5b2ace4b4e7..f78f932f1f00eaeac81b5654b65645a02f16f1ee 100644 (file)
@@ -32,9 +32,7 @@
 --  This package contains a procedure for runtime concatenation of six string
 --  operands. It is used when we want to save space in the generated code.
 
-pragma Warnings (Off);
 pragma Compiler_Unit;
-pragma Warnings (On);
 
 package System.Concat_6 is
 
index 38741d51943ca61c1f5ecd80dcb828adc490d57c..c014a47a9ebdb52fa96dd6b939a0eadb5e3e4055 100644 (file)
@@ -29,9 +29,7 @@
 --                                                                          --
 ------------------------------------------------------------------------------
 
-pragma Warnings (Off);
 pragma Compiler_Unit;
-pragma Warnings (On);
 
 package body System.Concat_7 is
 
index e5927604203b46ac6066689b023ed2ae857245d2..31d5da1888bcb5c35903d4f51dd79d8ff7bb962a 100644 (file)
@@ -32,9 +32,7 @@
 --  This package contains a procedure for runtime concatenation of seven string
 --  operands. It is used when we want to save space in the generated code.
 
-pragma Warnings (Off);
 pragma Compiler_Unit;
-pragma Warnings (On);
 
 package System.Concat_7 is
 
index 764fd986f042c94b8f936763ccc79dd7930b92e3..3814f5721ab36328189c73853fb52bdb348f8dc1 100644 (file)
@@ -29,9 +29,7 @@
 --                                                                          --
 ------------------------------------------------------------------------------
 
-pragma Warnings (Off);
 pragma Compiler_Unit;
-pragma Warnings (On);
 
 package body System.Concat_8 is
 
index 173edbf4fd706905af840f590fe4dd260ae529c1..0d93b2430102f197d2604dc88e4e8bb12af3c93f 100644 (file)
@@ -32,9 +32,7 @@
 --  This package contains a procedure for runtime concatenation of eight string
 --  operands. It is used when we want to save space in the generated code.
 
-pragma Warnings (Off);
 pragma Compiler_Unit;
-pragma Warnings (On);
 
 package System.Concat_8 is
 
index 34fcd9dd67f81349749a9905526fbaf3d4db8c08..a575801271c2259f51c0248aba4921cb2323b007 100644 (file)
@@ -29,9 +29,7 @@
 --                                                                          --
 ------------------------------------------------------------------------------
 
-pragma Warnings (Off);
 pragma Compiler_Unit;
-pragma Warnings (On);
 
 package body System.Concat_9 is
 
index 23172ec5309e08f7a575b189cf0addcc02d747f4..31b1263df8167d046c2d62fec5f3af1e7778dcd9 100644 (file)
@@ -32,9 +32,7 @@
 --  This package contains a procedure for runtime concatenation of eight string
 --  operands. It is used when we want to save space in the generated code.
 
-pragma Warnings (Off);
 pragma Compiler_Unit;
-pragma Warnings (On);
 
 package System.Concat_9 is
 
index 4061268cf678227fafaf0bc5c7d51375c81c9e49..1687adc50c16b723ba9ce58fcb2b09ad8dc6686c 100644 (file)
@@ -29,9 +29,7 @@
 --                                                                          --
 ------------------------------------------------------------------------------
 
-pragma Warnings (Off);
 pragma Compiler_Unit;
-pragma Warnings (On);
 
 package body System.CRC32 is
 
index ec410c35f5a1fb5ec7afbb9e7a23cef2d38b7c73..b450c8cd3872cd0b0f83a51fbe0924d3f0306a06 100644 (file)
@@ -54,9 +54,7 @@
 --  "Computation of Cyclic Redundancy Checks via Table Look-Up", Communications
 --  of the ACM, Vol. 31 No. 8, pp.1008-1013 Aug. 1988. Sarwate, D.V.
 
-pragma Warnings (Off);
 pragma Compiler_Unit;
-pragma Warnings (On);
 
 with Interfaces;
 
index 67cf1426ea025f4361fcff7b41e2232050849389..3d04b4b1494961516913f2eed6b2bc5b6d060e0c 100755 (executable)
@@ -29,9 +29,7 @@
 --                                                                          --
 ------------------------------------------------------------------------------
 
-pragma Warnings (Off);
 pragma Compiler_Unit;
-pragma Warnings (On);
 
 package body System.Exceptions is
 
index 2bec61a6910d23dcc643b676b02b4bb92dcb4dbb..10232978260ece0decd429f461876a49902fbbba 100644 (file)
 --  It should be compiled without optimization to let debuggers inspect
 --  parameter values reliably from breakpoints on the routines.
 
-pragma Warnings (Off);
 pragma Compiler_Unit;
-pragma Warnings (On);
 
 with System.Standard_Library;
 
 package System.Exceptions is
 
-   pragma Warnings (Off);
    pragma Preelaborate_05;
-   pragma Warnings (On);
    --  To let Ada.Exceptions "with" us and let us "with" Standard_Library
 
    package SSL renames System.Standard_Library;
index ddf1dfa65d174a47cf4a87e6ba6f4b41c253aef9..5f2228ceb1ac9c4a5cf0f56656c9d2871868be50 100644 (file)
@@ -29,9 +29,7 @@
 --                                                                          --
 ------------------------------------------------------------------------------
 
-pragma Warnings (Off);
 pragma Compiler_Unit;
-pragma Warnings (On);
 
 with System.HTable;
 with System.Soft_Links;   use System.Soft_Links;
index ab530f9c2a0eb7a566c954f412de03b0d3ca151d..c9fe6980b10baa6d6dc2150f6899b1356d82b576 100644 (file)
@@ -33,9 +33,7 @@
 --  registered exception names, for the implementation of the mapping
 --  of names to exceptions (used for exception streams and attributes)
 
-pragma Warnings (Off);
 pragma Compiler_Unit;
-pragma Warnings (On);
 
 with System.Standard_Library;
 
index 9dbb7f98420178a08e28ca5566ed8671acf6ea0d..7eea674617a8876841f7b5b4b0e850b20c78a832 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 B o d y                                  --
 --                                                                          --
---                    Copyright (C) 1995-2007, AdaCore                      --
+--                    Copyright (C) 1995-2008, 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- --
@@ -31,9 +31,7 @@
 --                                                                          --
 ------------------------------------------------------------------------------
 
-pragma Warnings (Off);
 pragma Compiler_Unit;
-pragma Warnings (On);
 
 with Ada.Unchecked_Deallocation;
 
index e036288bc4b05e41cc2685b07a10bb0960e1592f..bc416abd730ee85c38b36a1599cb1861315ecd96 100644 (file)
@@ -39,9 +39,7 @@
 --  The Static_HTable package provides a more complex interface that allows
 --  complete control over allocation.
 
-pragma Warnings (Off);
 pragma Compiler_Unit;
-pragma Warnings (On);
 
 package System.HTable is
    pragma Preelaborate;
index c5ee51946c5625409c8e07a11fd06088d1c8957c..37ef4a7e65d583ef93dcfe804c41625723aaa36a 100644 (file)
@@ -29,9 +29,7 @@
 --                                                                          --
 ------------------------------------------------------------------------------
 
-pragma Warnings (Off);
 pragma Compiler_Unit;
-pragma Warnings (On);
 
 with Ada.Unchecked_Conversion;
 
index 7cc432b2328b634139be5a96ebc8840e147e9dba..a76883d6f4d302c127495d9b3777b6c7501b96b2 100644 (file)
@@ -40,9 +40,7 @@
 --  for bootstrapping with older versions of the compiler which expect to find
 --  functions in this package.
 
-pragma Warnings (Off);
 pragma Compiler_Unit;
-pragma Warnings (On);
 
 package System.Img_Enum_New is
    pragma Pure;
index 6019a0d0692b6e1774fad4c42f7e62f8164efd47..99c6acfa97e1f9b192801555e4ca1bb3ce5bf152 100644 (file)
@@ -29,9 +29,7 @@
 --                                                                          --
 ------------------------------------------------------------------------------
 
-pragma Warnings (Off);
 pragma Compiler_Unit;
-pragma Warnings (On);
 
 with Ada.Unchecked_Conversion;
 
index 7d9261c926e884312376ee66e2ef54fa0e204ec9..24afb3a3ad28491e9058439fcc69cb22bb01eb1d 100644 (file)
@@ -41,9 +41,7 @@
 --  these functions. The new compiler will search for procedures in the new
 --  version of the unit.
 
-pragma Warnings (Off);
 pragma Compiler_Unit;
-pragma Warnings (On);
 
 package System.Img_Enum is
    pragma Pure;
index 8347ca432e58a0631dd1169c13f0cd6ea26a2247..fba5bb133cf0fb658042e54d3e5c9da0463b4ec0 100644 (file)
@@ -33,9 +33,7 @@
 --  This dummy version of System.Machine_State_Operations is used
 --  on targets for which zero cost exception handling is not implemented.
 
-pragma Warnings (Off);
 pragma Compiler_Unit;
-pragma Warnings (On);
 
 package body System.Machine_State_Operations is
 
index 4ba5fd1581c0719f97a0e28ddc1519779359fa15..74ff217c693723dcac506b3ad48e63cf5fb75a65 100644 (file)
@@ -29,9 +29,7 @@
 --                                                                          --
 ------------------------------------------------------------------------------
 
-pragma Warnings (Off);
 pragma Compiler_Unit;
-pragma Warnings (On);
 
 pragma Polling (Off);
 --  We must turn polling off for this unit, because otherwise we get
index 3c199a3f89332bf6dfabe681e1d6ee7441f302d8..3fb1cda9bcb95ce02eb5fcf8b8434a764bf18d8d 100644 (file)
@@ -41,9 +41,7 @@
 --  you can remove the calls to Abort_Defer.all and Abort_Undefer.all from
 --  this unit.
 
-pragma Warnings (Off);
 pragma Compiler_Unit;
-pragma Warnings (On);
 
 with Ada.Exceptions;
 with System.Soft_Links;
index aa510093100fa683f2ceb021909e330252b5ebf0..4af600205ad44a03a636cdb8e51bb749da856eea 100644 (file)
@@ -40,9 +40,7 @@
 --  This unit may be used directly from an application program by providing
 --  an appropriate WITH, and the interface can be expected to remain stable.
 
-pragma Warnings (Off);
 pragma Compiler_Unit;
-pragma Warnings (On);
 
 package System.Memory is
    pragma Elaborate_Body;
index d1f1d7b8218014958ea20516fd4c9086ac8c6379..163cfbf92307af4b782c5b27a764334972415769 100755 (executable)
@@ -31,9 +31,7 @@
 --                                                                          --
 ------------------------------------------------------------------------------
 
-pragma Warnings (Off);
 pragma Compiler_Unit;
-pragma Warnings (On);
 
 with System.Case_Util;
 with System.CRTL;