aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2023-03-22 04:35:13 +0100
committerTristan Gingold <tgingold@free.fr>2023-03-22 07:02:33 +0100
commit89a4f10e21459614c0b52829d8bc3156c7280f8c (patch)
tree215d7f0992627a58acbb59df48c7305118ad41ce
parent41152d8e06cafa83250cd834ab16a21641020028 (diff)
downloadghdl-89a4f10e21459614c0b52829d8bc3156c7280f8c.tar.gz
ghdl-89a4f10e21459614c0b52829d8bc3156c7280f8c.tar.bz2
ghdl-89a4f10e21459614c0b52829d8bc3156c7280f8c.zip
vhdl-sem_scopes: avoid duplicate hidden warning
-rw-r--r--src/vhdl/vhdl-sem_scopes.adb5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/vhdl/vhdl-sem_scopes.adb b/src/vhdl/vhdl-sem_scopes.adb
index 4a4f65f64..1a5b1b5b2 100644
--- a/src/vhdl/vhdl-sem_scopes.adb
+++ b/src/vhdl/vhdl-sem_scopes.adb
@@ -1333,8 +1333,11 @@ package body Vhdl.Sem_Scopes is
procedure Add_Package_Declarations
(Decl: Iir_Package_Declaration; Potentially : Boolean)
is
+ Prev_Hide : constant Boolean := Is_Warning_Enabled (Warnid_Hide);
Header : constant Iir := Get_Package_Header (Decl);
begin
+ Enable_Warning (Warnid_Hide, False);
+
-- LRM08 12.1 Declarative region
-- d) A package declaration together with the corresponding body
--
@@ -1347,6 +1350,8 @@ package body Vhdl.Sem_Scopes is
end if;
Add_Declarations (Get_Declaration_Chain (Decl), Potentially);
+
+ Enable_Warning (Warnid_Hide, Prev_Hide);
end Add_Package_Declarations;
procedure Add_Package_Instantiation_Declarations