diff options
author | Tristan Gingold <tgingold@free.fr> | 2016-07-31 17:17:00 +0200 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2016-08-02 08:01:36 +0200 |
commit | cdb323b1dbfccbcff5c63804ff73e6e86e4d05e8 (patch) | |
tree | 5886de13f70a7235dd8b114806d27614972c8bd0 /src/vhdl/sem_names.adb | |
parent | 55da78e95df865ba2e2048e6546e4fffcfe020da (diff) | |
download | ghdl-cdb323b1dbfccbcff5c63804ff73e6e86e4d05e8.tar.gz ghdl-cdb323b1dbfccbcff5c63804ff73e6e86e4d05e8.tar.bz2 ghdl-cdb323b1dbfccbcff5c63804ff73e6e86e4d05e8.zip |
Rewrite scan error messages: use formatting.
Diffstat (limited to 'src/vhdl/sem_names.adb')
-rw-r--r-- | src/vhdl/sem_names.adb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/vhdl/sem_names.adb b/src/vhdl/sem_names.adb index 098268daa..b723782c1 100644 --- a/src/vhdl/sem_names.adb +++ b/src/vhdl/sem_names.adb @@ -734,9 +734,9 @@ package body Sem_Names is then if False and then Flags.Vhdl_Std = Vhdl_87 then -- emit a warning for a null slice. - Warning_Msg_Sem - ("direction mismatch results in a null slice", - Name, Warnid_Runtime_Error); + Warning_Msg_Sem (Warnid_Runtime_Error, +Name, + "direction mismatch results in a null slice"); + end if; Error_Msg_Sem ("direction of the range mismatch", Name); end if; @@ -1310,8 +1310,8 @@ package body Sem_Names is is begin Error_Msg_Sem_Relaxed - ("reference to " & Disp_Node (Obj) & " violate pure rule for " - & Disp_Node (Subprg), Loc); + (Loc, "reference to " & Disp_Node (Obj) & " violate pure rule for " + & Disp_Node (Subprg)); end Error_Pure; Subprg : constant Iir := Sem_Stmts.Get_Current_Subprogram; |