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

Bubble up Warnings as Errors #1041

Merged
merged 2 commits into from
Feb 14, 2024
Merged

Conversation

strainmike
Copy link
Contributor

@strainmike strainmike commented Feb 9, 2024

What does this Pull Request accomplish?

Sets warnings as errors for all source code the project directly owns. Does not affect compiles of codegen'd code or thirdparty code (although pulled in headers can still be problematic). For test code we are additionally ignoring the deprecation of functions like strncpy. This change does not enable any additional warnings, but that can come later.

The vast majority of the code changes are casting size types to uint32_t's. There are better fixes for that sort of thing if wanted, I'm open to suggestions.

Why should this Pull Request be merged?

azdo:2507449

I put -Wall -Werror -Wextra on all my projects. Compilers finding bugs for you is great.

What testing has been done?

Built on Windows (with Visual Studio 2022 though) and Linux. I'll see how the PR build goes.

@strainmike strainmike changed the title Bubble up Warnings as Errors on Bubble up Warnings as Errors Feb 9, 2024
@christag-ni
Copy link
Contributor

@strainmike Don't have to complete the merge right now, but is there a reason this PR hasn't been completed? Just checking if there's a way I can help.

@strainmike
Copy link
Contributor Author

@strainmike Don't have to complete the merge right now, but is there a reason this PR hasn't been completed? Just checking if there's a way I can help.

I had been waiting for the PR build to complete. It looks like it finally did so I'll complete it.

@strainmike strainmike merged commit 46040c2 into main Feb 14, 2024
11 checks passed
@strainmike strainmike deleted the users/mstrain/warnings-as-errors branch February 14, 2024 18:29
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

4 participants