diff options
author | charlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-08-05 13:23:44 +0000 |
---|---|---|
committer | charlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-08-05 13:23:44 +0000 |
commit | 0755576020820c2af328ac53037f37cfe5fcd249 (patch) | |
tree | aad647caea33529ca623460990d215b590f5908e | |
parent | 6329937033083e325bd80e0ffe243a8dbe04054b (diff) | |
download | gcc-0755576020820c2af328ac53037f37cfe5fcd249.tar.gz |
2008-08-05 Pascal Obry <obry@adacore.com>
* a-coinve.adb: Reorder the code to avoid uninitialized warning.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@138701 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/ada/a-coinve.adb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gcc/ada/a-coinve.adb b/gcc/ada/a-coinve.adb index c97f4eb2406..0f107be4356 100644 --- a/gcc/ada/a-coinve.adb +++ b/gcc/ada/a-coinve.adb @@ -6,7 +6,7 @@ -- -- -- B o d y -- -- -- --- Copyright (C) 2004-2007, Free Software Foundation, Inc. -- +-- Copyright (C) 2004-2008, Free Software Foundation, Inc. -- -- -- -- 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- -- @@ -1124,13 +1124,12 @@ package body Ada.Containers.Indefinite_Vectors is Index : constant Index_Type := Index_Type (Index_As_Int); - J : Index_Type'Base; + J : Index_Type'Base := Before; begin E (Index .. New_Last) := E (Before .. Container.Last); Container.Last := New_Last; - J := Before; while J < Index loop E (J) := new Element_Type'(New_Item); J := J + 1; |