I don’t why my replit will assume unused variable as an error? What can I do to turn this error messaage off?
Replit Profile: https://replit.com/@PaulLi9
I don’t why my replit will assume unused variable as an error? What can I do to turn this error messaage off?
Replit Profile: https://replit.com/@PaulLi9
because, often, it is an error/mistake. If you intend for a variable to be unused, best is to use e.g.:
[[maybe_unused]]
int foo;
alternatively, open a new tab to edit the hidden Makefile
file so you can configure the warning flags.
I’d recommend creating a .ccls
file containing
clang
-Wmost
so the warnings in the editor are consistent with the Run button.