aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2022-05-12 18:16:38 +0200
committerTristan Gingold <tgingold@free.fr>2022-05-12 18:16:38 +0200
commitf8b87697e8b893b6293ebbfc34670c32bfb49397 (patch)
treedd96a7100c243e40d44fa31751c0c4845ebc5640 /src
parentff2f6b719229a43db915297ba4abc3ec5ff5a5fc (diff)
downloadghdl-f8b87697e8b893b6293ebbfc34670c32bfb49397.tar.gz
ghdl-f8b87697e8b893b6293ebbfc34670c32bfb49397.tar.bz2
ghdl-f8b87697e8b893b6293ebbfc34670c32bfb49397.zip
ghdllocal.adb: move pragma suppress. Fix #2056
Diffstat (limited to 'src')
-rw-r--r--src/ghdldrv/ghdllocal.adb2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ghdldrv/ghdllocal.adb b/src/ghdldrv/ghdllocal.adb
index 4ed71a590..756589602 100644
--- a/src/ghdldrv/ghdllocal.adb
+++ b/src/ghdldrv/ghdllocal.adb
@@ -1259,11 +1259,11 @@ package body Ghdllocal is
Src : String_Access;
Dst : String_Access;
Success : Boolean;
- pragma Unreferenced (Success);
begin
Src := new String'(Image (Dir) & Basename & Get_Object_Suffix.all);
Dst := new String'(Basename & Get_Object_Suffix.all);
Copy_File (Src.all, Dst.all, Success, Overwrite, Full);
+ pragma Unreferenced (Success);
-- Be silent in case of error.
Free (Src);
Free (Dst);