Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
soronpo opened this issue Sep 30, 2024 · 3 comments
Labels

Comments

@soronpo
Copy link

soronpo commented Sep 30, 2024

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
@nickg
Copy link
Owner

nickg commented Sep 30, 2024

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

@soronpo
Copy link
Author

soronpo commented Oct 1, 2024

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.

@nickg nickg added the wishlist label Oct 1, 2024
@Blebowski
Copy link
Contributor

Related to: #784

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants