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

Enable a couple of boring warnings. #4018

Merged
merged 1 commit into from
Jun 3, 2024

Conversation

chandlerc
Copy link
Contributor

@chandlerc chandlerc commented Jun 2, 2024

Just spotted these while looking at warnings that seem to fire on our
code are probably are things we'd fix if we saw them. None of these seem
important FWIW.

Also removes a redundant flag that is part of -Wall.

I have a follow-up for the high-value warning I spotted that motivated
me to look at all of this. But it's noisy so kept it as a separate PR.

@github-actions github-actions bot requested review from zygoloid and josh11b June 2, 2024 04:32
@github-actions github-actions bot added explorer Action items related to Carbon explorer code toolchain labels Jun 2, 2024
@@ -141,10 +141,23 @@ def _impl(ctx):
"-Wself-assign",
"-Wimplicit-fallthrough",
"-Wctad-maybe-unsupported",
"-Wdelete-non-virtual-dtor",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(For posterity: this is included in -Wall so had no effect.)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, noted in the PR description.

Just spotted these while looking at warnings that seem to fire on our
code are probably are things we'd fix if we saw them. None of these seem
important FWIW.

I have a follow-up for the high-value warning I spotted that motivated
me to look at all of this. But it's noisy so kept it as a separate PR.

Depends on carbon-language#4017 -- only the last commit should be reviewed here.
@chandlerc chandlerc added this pull request to the merge queue Jun 3, 2024
Merged via the queue into carbon-language:trunk with commit dd08906 Jun 3, 2024
7 checks passed
@chandlerc chandlerc deleted the enable-warnings branch June 3, 2024 07:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
explorer Action items related to Carbon explorer code toolchain
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants