OSDN Git Service

* config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
[pf3gnuchains/gcc-fork.git] / gcc / ada / g-diopit.adb
index d57ca38..ccab560 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 B o d y                                  --
 --                                                                          --
---                     Copyright (C) 2001-2005, AdaCore                     --
+--                     Copyright (C) 2001-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- --
@@ -78,10 +78,12 @@ package body GNAT.Directory_Operations.Iteration is
       --------------------
 
       procedure Read_Directory (Directory : Dir_Name_Str) is
-         Dir    : Dir_Type;
          Buffer : String (1 .. 2_048);
          Last   : Natural;
 
+         Dir : Dir_Type;
+         pragma Warnings (Off, Dir);
+
       begin
          Open (Dir, Directory);
 
@@ -319,7 +321,10 @@ package body GNAT.Directory_Operations.Iteration is
       is
          File_Regexp : constant Regexp.Regexp :=
                          Regexp.Compile (File_Pattern, Glob => True);
-         Dir    : Dir_Type;
+
+         Dir : Dir_Type;
+         pragma Warnings (Off, Dir);
+
          Buffer : String (1 .. 2_048);
          Last   : Natural;
 
@@ -371,7 +376,7 @@ package body GNAT.Directory_Operations.Iteration is
                end;
 
                --  Exit if Quit set by call to Action, either at this level
-               --  or at at some lower recursive call to Next_Level.
+               --  or at some lower recursive call to Next_Level.
 
                exit Dir_Iterator when Quit;
             end loop Dir_Iterator;