nvc
nvc copied to clipboard
Feature request: Warning suppression and escalation to error command-line flags
trafficstars
I'm missing common command-line option that:
- Escalate warnings into errors (so that the program returns non-zero error code)
- Completely suppress specific warnings
Can you give some examples of the warnings you want suppress and/or those you want to escalate?
Warning suppression example of shared variables that model TrueDPR:
** Warning: shared variable RAM must have protected type
> TrueDPR\hdl\TrueDPR.vhd:28
|
28 | shared variable ram : t_vecX1_std_logic_vector(0 to 2 ** ADDR_WIDTH - 1)(DATA_WIDTH - 1 downto 0);
| ^^^
Escalation is a companion to suppression. I strive for zero warnings builds/simulations. So all warnings are either considered errors that must be fixed or alternatively suppressed and completely ignored. In a sense, a warning is just a temporary "unhandled" issue that needs to be explicitly fixed or ignored.
Related to: https://github.com/nickg/nvc/discussions/784