-
Notifications
You must be signed in to change notification settings - Fork 119
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
Add flag to upgrade warnings to errors #812
Comments
I'm not sure, I think that -Werror is often misused. The problem from my perspective is if people start doing things like using |
Hmm what about if you have to specify a target version to enable errors for? I.e. It's a little bit like how Android target versions, or CMake policies or Rust editions work. Would you have made some warnings errors by in the first place if backwards compatibility wasn't a concern? E.g. missing |
That would be good, but it would require a lot of work to categorise all the warnings we have.
Yes, often the idea is to make something a warning first then transition it to an error later. |
Would you be ok with a
--warnings-as-errors
flag, like-Werror
in C? I can implement it if so...The text was updated successfully, but these errors were encountered: