nvc icon indicating copy to clipboard operation
nvc copied to clipboard

Feature request: Warning suppression and escalation to error command-line flags

Open soronpo opened this issue 1 year ago • 3 comments
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

soronpo avatar Sep 30 '24 04:09 soronpo

Can you give some examples of the warnings you want suppress and/or those you want to escalate?

nickg avatar Sep 30 '24 20:09 nickg

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.

soronpo avatar Oct 01 '24 03:10 soronpo

Related to: https://github.com/nickg/nvc/discussions/784

Blebowski avatar Oct 05 '24 18:10 Blebowski