Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Establish basic compiler warnings, and fix a few style issues #3039

Merged
merged 7 commits into from
Oct 9, 2024

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.

Signed-off-by: Jared Van Bortel <jared@nomic.ai>
This will make it easier to see compiler warnings in output, should they
occur.

Signed-off-by: Jared Van Bortel <jared@nomic.ai>
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 <jared@nomic.ai>
Signed-off-by: Jared Van Bortel <jared@nomic.ai>
Signed-off-by: Jared Van Bortel <jared@nomic.ai>
Signed-off-by: Jared Van Bortel <jared@nomic.ai>
Signed-off-by: Jared Van Bortel <jared@nomic.ai>
@cebtenzzre cebtenzzre requested a review from manyoso October 7, 2024 23:23
@manyoso manyoso merged commit 8e3108f into main Oct 9, 2024
9 of 21 checks passed
@cebtenzzre cebtenzzre deleted the jared/style-fixes branch February 10, 2025 16:40
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants