summaryrefslogtreecommitdiff
path: root/translate/grt/grt-images.adb
diff options
context:
space:
mode:
authorgingold2008-08-30 13:30:19 +0000
committergingold2008-08-30 13:30:19 +0000
commitcd9300765e7e3fd43e450777e98a778146f700c2 (patch)
treef013fea17ae4eee9c1649e63b99b9bfe377fafb4 /translate/grt/grt-images.adb
parent4b6571671497ecc1f846bfa49678254e14511fc9 (diff)
downloadghdl-cd9300765e7e3fd43e450777e98a778146f700c2.tar.gz
ghdl-cd9300765e7e3fd43e450777e98a778146f700c2.tar.bz2
ghdl-cd9300765e7e3fd43e450777e98a778146f700c2.zip
Switch to gcc 4.3
Don't use tagged types in grt (not supported by recent versions of GNAT) Fix warnings
Diffstat (limited to 'translate/grt/grt-images.adb')
-rw-r--r--translate/grt/grt-images.adb5
1 files changed, 3 insertions, 2 deletions
diff --git a/translate/grt/grt-images.adb b/translate/grt/grt-images.adb
index 5f8a081..d6efba0 100644
--- a/translate/grt/grt-images.adb
+++ b/translate/grt/grt-images.adb
@@ -17,6 +17,7 @@
-- 02111-1307, USA.
with System; use System;
with System.Storage_Elements; -- Work around GNAT bug.
+pragma Unreferenced (System.Storage_Elements);
with Ada.Unchecked_Conversion;
with Grt.Processes; use Grt.Processes;
with Grt.Vstrings; use Grt.Vstrings;
@@ -98,7 +99,7 @@ package body Grt.Images is
Unit := To_Ghdl_Rtin_Unit_Acc (Phys.Units (0)).Name;
Unit_Len := strlen (Unit);
declare
- L : Natural := Str'Last + 1 - First;
+ L : constant Natural := Str'Last + 1 - First;
Str2 : String (1 .. L + 1 + Unit_Len);
begin
Str2 (1 .. L) := Str (First .. Str'Last);
@@ -122,7 +123,7 @@ package body Grt.Images is
Unit := To_Ghdl_Rtin_Unit_Acc (Phys.Units (0)).Name;
Unit_Len := strlen (Unit);
declare
- L : Natural := Str'Last + 1 - First;
+ L : constant Natural := Str'Last + 1 - First;
Str2 : String (1 .. L + 1 + Unit_Len);
begin
Str2 (1 .. L) := Str (First .. Str'Last);