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
fix compiler warnings #668
Comments
Original Redmine Comment I pushed the initialization patch. I don't understand the class patch - what is the exact warning? According to the C++ standard, 'struct' is just a public class. |
Original Redmine Comment Hi Wilson I agree that the class and struct are equivalent except their default accessibility. The warning is emmitted from mismatch between actual 'definition' and 'forward declaration' generated by verilator. Please see the attached logfile. Regards, Update: As far as I have searched, declare as a class and define as a struct is a well-formed C++. But I think enabling compiler checks (like -Wall) is useful, it actually helped me to find a potential problem (initialize patch). And fixing trivial warnings makes it easier to find non-trivial warnings. Here is a minimal example to reproduce. (with clang-3.3)
Thanks |
Original Redmine Comment Fixed other patch and some more towards 3.851. |
Original Redmine Comment In 3.851. |
…uhdm-tests/serv/serv-09e49f7 Bump uhdm-tests/serv/serv from `e59fe53` to `09e49f7`
Author Name: Yutetsu TAKATSUKASA (@yTakatsukasa)
Original Redmine Issue: 668 from https://www.veripool.org
Original Date: 2013-07-29
Hi verilator developers,
I appreciate you developing and maintaining the tool.
I use verilator-3.850 with clang-3.3 and found 2 types of warning.
I made a patch for the latest version(git repository).
Please find the attached tiny patch.
Regards,
Yutetsu.
The text was updated successfully, but these errors were encountered: