-
Notifications
You must be signed in to change notification settings - Fork 19
Use -Werror (with exceptions) on Windows builds
#484
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
Conversation
Last time I looked at a Windows build log there were still loads of warnings, but that was long time ago probably. If now they're all gone I think it should be safe to enable |
|
I think we still have a few warnings unfortunately, such as: |
|
On second thought... we should be able to get away with Several of those seem straightforward to resolve, but it'd be nice to get the Do you know how to provide a string with spaces to the |
No |
c891063 to
3dfc824
Compare
|
I think I found an incantation that works (ShellCheck is not in love with it, but I can find no simple alternative that works and the wiki does specifically allow exceptions in https://www.shellcheck.net/wiki/SC2207) Looks like this needs treehash signing |
-Werror=implicit-function-declaration on Windows builds-Werror (with some exceptions) on Windows builds
-Werror (with some exceptions) on Windows builds-Werror (with exceptions) on Windows builds
7f4c67f to
0fbcf93
Compare
Should fix: - `[-Wstrict-prototypes]` - `[-Wattributes]` - `[-Wc++-compat]` - `[-Wunused-but-set-variable]` - `[-Wdiscarded-qualifiers]` - `[-Wundef]` This leaves: - `[-Warray-bounds]` - `[-Winfinite-recursion]` see JuliaCI/julia-buildkite#484
We're not ready to enable `-Werror` comprehensively on Windows, but this will include most warnings and prevent us from accidentally adding new failures.
580cce0 to
95cd240
Compare
|
We can't build v1.12.0-rc3 binaries for Windows because of this: On x86-64 (log): On i686 (log): The commit that fixed the warning on x86-64 (JuliaLang/julia#59634) isn't on the release branch. That commit wouldn't fix the warning on i686 though. I think we need to revert this in order to build the release binaries for Windows, then reapply (some version of?) it, and in the meantime backport the aforementioned commit to all relevant branches so that the next release won't hit the same situation. cc @KristofferC |
|
Don't the various minor versionz have separate pipelines? |
Yes, but by default each pipeline uses |
|
It's easy to point a pipeline to a different branch. E.g. we could create a But by default, it defaults to |
|
Let's proceed with the revert for now, just to unblock Alex. This weekend, I'll set up some release branches in this repo. And then we can re-land this PR once I have the release branches set up. |
|
Looks like we have a few release branches on this repo, but the most recent is for 1.9. |
I'll make release branches for 1.10, 1.11, and 1.12 then. |
Reverts #484 per #484 (comment). We can't build 1.12.0-rc3 binaries for Windows due to `-Werror`.
Should fix: - `[-Wstrict-prototypes]` - `[-Wattributes]` - `[-Wc++-compat]` - `[-Wunused-but-set-variable]` - `[-Wdiscarded-qualifiers]` - `[-Wundef]` This leaves: - `[-Warray-bounds]` - `[-Winfinite-recursion]` see JuliaCI/julia-buildkite#484
The release branches exist now. |
Re-land #484 (as requested in #487 (comment)) This will need the treehashes to be signed again. --------- Co-authored-by: Ian Butterworth <[email protected]>
See JuliaLang/julia#54836 (comment)
I'm not sure we're ready to enable
-Werrorcomprehensively on Windows (esp. retroactively), but this warning is a common one that is almost aways a bug to encounter.