diff options
author | Tristan Gingold <tgingold@free.fr> | 2022-06-07 04:03:56 +0200 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2022-06-07 04:03:56 +0200 |
commit | 177546b2cbb41f4a835025631187fb4dcf0c896e (patch) | |
tree | 39c937f65d5156c4d9ee7ba542a4ba108548f81c /src/errorout.ads | |
parent | 65544a635f3588dfdeed8d0ffc4a7ea4d65511cd (diff) | |
download | ghdl-177546b2cbb41f4a835025631187fb4dcf0c896e.tar.gz ghdl-177546b2cbb41f4a835025631187fb4dcf0c896e.tar.bz2 ghdl-177546b2cbb41f4a835025631187fb4dcf0c896e.zip |
errorout: add nowrite warning. Fix #2081
During synthesis, emit a specific warning if a net is not assigned
Diffstat (limited to 'src/errorout.ads')
-rw-r--r-- | src/errorout.ads | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/errorout.ads b/src/errorout.ads index 8cda8e69d..16515d8af 100644 --- a/src/errorout.ads +++ b/src/errorout.ads @@ -106,6 +106,10 @@ package Errorout is -- FIXME: currently only subprograms are handled. Warnid_Unused, + -- A variable or signal is never written. + -- (only for synthesis) + Warnid_Nowrite, + -- Others choice is not needed, all values are already covered. Warnid_Others, @@ -320,6 +324,7 @@ private | Warnid_Runtime_Error | Warnid_Pure | Warnid_Specs | Warnid_Hide | Warnid_Pragma | Warnid_Analyze_Assert | Warnid_Attribute | Warnid_Deprecated_Option | Warnid_Unexpected_Option + | Warnid_Nowrite | Warnid_No_Wait | Warnid_Useless | Msgid_Warning => (Enabled => True, Error => False), Warnid_Delta_Cycle | Warnid_Body | Warnid_Static | Warnid_Nested_Comment |