Skip to content
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

Fix some warnings, and ensure CI catches them in the future #1134

Merged
merged 3 commits into from
Apr 15, 2024

Conversation

nicholasbishop
Copy link
Contributor

Set RUSTFLAGS="-D warnings" for all jobs so that errors are treated as warnings for build/test.

Checklist

  • Sensible git history (for example, squash "typo" or "fix" commits). See the Rewriting History guide for help.
  • Update the changelog (if necessary)

If neither the logger nor global_allocator features is enabled, the unsafe block
here would generated a warning because there was no code in it. Split into two
blocks and gate the blocks behind cfgs to solve this.
@phip1611 phip1611 added this pull request to the merge queue Apr 15, 2024
Merged via the queue into rust-osdev:main with commit d2776c6 Apr 15, 2024
12 checks passed
@nicholasbishop nicholasbishop deleted the bishop-warnings-fixins-2 branch April 15, 2024 14:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants