Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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

Closed
RussKeldorph opened this issue Jun 14, 2016 · 12 comments
Closed

Disallow build warnings #6144

RussKeldorph opened this issue Jun 14, 2016 · 12 comments
Labels
area-Infrastructure-coreclr backlog-cleanup-candidate An inactive issue that has been marked for automated closure. enhancement Product code improvement that does NOT require public API changes/additions help wanted [up-for-grabs] Good issue for external contributors no-recent-activity

Comments

@RussKeldorph
Copy link
Contributor

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.

@janvorli
Copy link
Member

@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.

@RussKeldorph
Copy link
Contributor Author

@janvorli It's everywhere. If warnings are already errors on Unix, great! One less thing to fix. :)

@janvorli
Copy link
Member

@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.
And in fact, from building mscorlib / System.Private.Corelib.dll, I am not getting any warnings either (except of two nuget warnings).
So is it just the tests?

@RussKeldorph
Copy link
Contributor Author

@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.

@choikwa
Copy link
Contributor

choikwa commented Jun 14, 2016

I thought tests had to be built on Windows, meaning Linux build doesn't build test

@danmoseley
Copy link
Member

@wtgodbe are you planning to do this for 2.0?

@wtgodbe
Copy link
Member

wtgodbe commented Apr 8, 2017

@danmosemsft yes, this is one of the first bugs I'll work on post-4/21

@RussKeldorph
Copy link
Contributor Author

Need to revisit this once we get the Unix test build sorted.

@ViktorHofer
Copy link
Member

@jkoritzinsky @trylek do you know if this issue is still valid?

@jkoritzinsky
Copy link
Member

Yes this is still valid. We still issue a few warnings on Win x86 so we don’t have warn-as-error turned on.

Copy link
Contributor

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.

@dotnet-policy-service dotnet-policy-service bot added backlog-cleanup-candidate An inactive issue that has been marked for automated closure. no-recent-activity labels Apr 15, 2025
Copy link
Contributor

This issue will now be closed since it had been marked no-recent-activity but received no further activity in the past 14 days. It is still possible to reopen or comment on the issue, but please note that the issue will be locked if it remains inactive for another 30 days.

@dotnet-policy-service dotnet-policy-service bot removed this from the Future milestone Apr 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-Infrastructure-coreclr backlog-cleanup-candidate An inactive issue that has been marked for automated closure. enhancement Product code improvement that does NOT require public API changes/additions help wanted [up-for-grabs] Good issue for external contributors no-recent-activity
Projects
Status: Done
Development

No branches or pull requests

8 participants