-
Notifications
You must be signed in to change notification settings - Fork 56
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
Missing return statement in ScoreboardGenericPkg #55
Comments
Just noticing this now? It has been there since support for tagged scoreboards were added. Which I think from an OSVVM perspective, happened prior to being released as part of OSVVM. In the current version, Riviera-PRO is reporting two: Line 1316 is inside the function: In both, they are doing an iterative descent of the list looking for a matching tag.
Provided the list is not infinite or circular (both of which would be a bug), I could program around this FALSE positive "warning", but should I? I will be honest, I have been working hard to work around tool bugs This one is kind of like the warnings reported for NULL arrays. Maybe we need a forum in OSVVM.org or here that has a list of normal |
We needed to do a deep analysis of compile logs, so I went through everything. While doing so, I found this. If I remember I never saw such a warning poping up before, that's why I reported. But if you say it exists since a while and a solution would be to much of an investment, it's OK for me. Maybe a list of expected tool warnings (justification report) would be good and could support user in safety critical environments when using OSVVM. |
It is easy to address. Do we fix code for a tool that produces a FALSE positive on a check? OTOH, if there are safety critical coding styles, and this code violates it, then I would New coding style would be:
This code is not any safer than the other code. In fact, the irony is that the compiler could |
@Paebbels Should I make the proposed change above? |
When compiling Scoreboard with Riviera-PRO, I get this warning:
The text was updated successfully, but these errors were encountered: