-
Notifications
You must be signed in to change notification settings - Fork 5k
Disallow build warnings #6144
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
@RussKeldorph this is Windows only right? Since there are no warnings on Unix - I have taken care of them a long time ago. Few of them had to be disabled (like comparing "this" to NULL at some places), but whatever was feasible was fixed and the warnings are treated as errors. |
@janvorli It's everywhere. If warnings are already errors on Unix, great! One less thing to fix. :) |
@RussKeldorph I guess I got confused - I have thought you meant native code build, but I think you must have meant managed build, since I don't get any warnings from Windows native code build either. |
@janvorli I acknowledge my description implies that there are warnings outside the test build on Windows, but I only intended to make a statement about the scope of the impact (all of coreclr on any platform), and not about the scope of work required to get there. I didn't verify where particular warnings originate prior to creating the issue. It comes as a pleasant surprise that some or all warnings are already disallowed in some contexts. I merely proposed to expand those contexts with when addressing this issue, by whatever means are required. |
I thought tests had to be built on Windows, meaning Linux build doesn't build test |
@wtgodbe are you planning to do this for 2.0? |
@danmosemsft yes, this is one of the first bugs I'll work on post-4/21 |
Need to revisit this once we get the Unix test build sorted. |
@jkoritzinsky @trylek do you know if this issue is still valid? |
Yes this is still valid. We still issue a few warnings on Win x86 so we don’t have warn-as-error turned on. |
Due to lack of recent activity, this issue has been marked as a candidate for backlog cleanup. It will be closed if no further activity occurs within 14 more days. Any new comment (by anyone, not necessarily the author) will undo this process. This process is part of our issue cleanup automation. |
This issue will now be closed since it had been marked |
The coreclr build currently generates a ridiculous number of warnings, especially on Windows where the tests are built.
Warnings should be fixed and warnings converted to build breaks to prevent them from being re-introduced. The honor system obviously isn't cutting it.
The text was updated successfully, but these errors were encountered: