aboutsummaryrefslogtreecommitdiffstats
path: root/src/vhdl/errorout.ads
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2018-09-17 06:38:52 +0200
committerTristan Gingold <tgingold@free.fr>2018-09-17 06:38:52 +0200
commit8f89cb2f9fa48b70ac29f38dadc82e6527755700 (patch)
tree320869237ae3859f2ea28edcb3c5d4a895b36f3e /src/vhdl/errorout.ads
parentcd8247bb0241fe057b90e8c2daca358b2e59b154 (diff)
downloadghdl-8f89cb2f9fa48b70ac29f38dadc82e6527755700.tar.gz
ghdl-8f89cb2f9fa48b70ac29f38dadc82e6527755700.tar.bz2
ghdl-8f89cb2f9fa48b70ac29f38dadc82e6527755700.zip
Add --warn-hide when a declaration hides a previous one.
For #652
Diffstat (limited to 'src/vhdl/errorout.ads')
-rw-r--r--src/vhdl/errorout.ads3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/vhdl/errorout.ads b/src/vhdl/errorout.ads
index 224f18cb9..ff7c54ada 100644
--- a/src/vhdl/errorout.ads
+++ b/src/vhdl/errorout.ads
@@ -103,6 +103,9 @@ package Errorout is
-- Declaration of a shared variable with a non-protected type.
Warnid_Shared,
+ -- A declaration hides a previous one.
+ Warnid_Hide,
+
-- Emit a warning when a declaration is never used.
-- FIXME: currently only subprograms are handled.
Warnid_Unused,