Skip to content

Conversation

@cebtenzzre
Copy link
Member

I noticed the doubled semicolon issue in #3034, and decided to split it out into this PR.

I figured -Wextra-semi was worth enabling if we are going to care about this kind of thing, even though it warns about a slightly different situation (one or more semicolons where there should not be any).

And if we're going to add -Wextra-semi to the build, we may as well also add -Wall.

And that if we're going to add -Wall, we should also add some other useful warning flags that don't cause any warnings to be printed for the current code.

And we may as well fix the singular warnings about each of -Wunused-lambda-capture, -Wunused-private-field, and -Wmissing-braces so we can enable those too.

This will make it easier to see compiler warnings in output, should they
occur.

Signed-off-by: Jared Van Bortel <[email protected]>
This is an example of a commit that introduces a new warning flag to the
build, and fixes any existing problems that the new warning detects.

Signed-off-by: Jared Van Bortel <[email protected]>
Signed-off-by: Jared Van Bortel <[email protected]>
@cebtenzzre cebtenzzre requested a review from manyoso October 7, 2024 23:23
@manyoso manyoso merged commit 8e3108f into main Oct 9, 2024
4 of 8 checks passed
@cebtenzzre cebtenzzre deleted the jared/style-fixes branch February 10, 2025 16:40
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.

3 participants