-
Notifications
You must be signed in to change notification settings - Fork 414
Fix warning in FASM #2412
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
Comments
In general, not only using string references, but also using more (And for fast fasm parsing, I'd like to plug this thing I did a while back https://github.com/hzeller/simple-fasm - feel free to just copy into the project). |
@hzeller: if that new fasm works better I'm happy to see it integrated, but I think you'd have to drive it since I don't have any fasm experts on my team. |
This warning has been resolved in PR #2535 @vaughnbetz should we close this issue? |
Thanks! |
Recent CI shows this warning in fasm:
/home/runner/work/vtr-verilog-to-routing/vtr-verilog-to-routing/utils/fasm/src/fasm.cpp:572:24: warning: loop variable ‘param’ creates a copy from type ‘const std::__cxx11::basic_string’ [-Wrange-loop-construct]
572 | for(const auto param : vtr::split(fasm_params_str, "\n")) {
| ^~~~~
/home/runner/work/vtr-verilog-to-routing/vtr-verilog-to-routing/utils/fasm/src/fasm.cpp:572:24: note: use reference type to prevent copying
572 | for(const auto param : vtr::split(fasm_params_str, "\n")) {
| ^~~~~
| &
@duck2 : can you fix this? I think it just needs a ref (&).
The text was updated successfully, but these errors were encountered: