aboutsummaryrefslogtreecommitdiffstats
path: root/src/libraries.adb
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2016-07-31 17:17:00 +0200
committerTristan Gingold <tgingold@free.fr>2016-08-02 08:01:36 +0200
commitcdb323b1dbfccbcff5c63804ff73e6e86e4d05e8 (patch)
tree5886de13f70a7235dd8b114806d27614972c8bd0 /src/libraries.adb
parent55da78e95df865ba2e2048e6546e4fffcfe020da (diff)
downloadghdl-cdb323b1dbfccbcff5c63804ff73e6e86e4d05e8.tar.gz
ghdl-cdb323b1dbfccbcff5c63804ff73e6e86e4d05e8.tar.bz2
ghdl-cdb323b1dbfccbcff5c63804ff73e6e86e4d05e8.zip
Rewrite scan error messages: use formatting.
Diffstat (limited to 'src/libraries.adb')
-rw-r--r--src/libraries.adb12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/libraries.adb b/src/libraries.adb
index 71ae71e46..0a91dbc8c 100644
--- a/src/libraries.adb
+++ b/src/libraries.adb
@@ -1007,12 +1007,14 @@ package body Libraries is
-- Warns only if we are not re-analyzing the file.
if Is_Warning_Enabled (Warnid_Library) then
Warning_Msg_Sem
- ("redefinition of a library unit in "
- & "same design file:", Unit, Warnid_Library);
+ (Warnid_Library, +Unit,
+ "redefinition of a library unit in "
+ & "same design file:");
Warning_Msg_Sem
- (Disp_Node (Library_Unit) & " defined at "
- & Disp_Location (Library_Unit) & " is now "
- & Disp_Node (New_Library_Unit), Unit, Warnid_Library);
+ (Warnid_Library, +Unit,
+ Disp_Node (Library_Unit) & " defined at "
+ & Disp_Location (Library_Unit) & " is now "
+ & Disp_Node (New_Library_Unit));
end if;
else
-- Free the stub.