Skip to content

configure: set -Wextra-semi-stmt for clang with --enable-debug#6378

Closed
bagder wants to merge 2 commits into
masterfrom
bagder/clang-extra-semi-stmt
Closed

configure: set -Wextra-semi-stmt for clang with --enable-debug#6378
bagder wants to merge 2 commits into
masterfrom
bagder/clang-extra-semi-stmt

Conversation

@bagder
Copy link
Copy Markdown
Member

@bagder bagder commented Dec 26, 2020

To have it properly complain on empty statements with no effect.

Ref: #6376

@bagder bagder added the build label Dec 26, 2020
bagder added a commit that referenced this pull request Dec 26, 2020
To have it properly complain on empty statements with no effect.

Ref: #6376
Closes #6378
@bagder bagder force-pushed the bagder/clang-extra-semi-stmt branch from 899b4fa to 0f863aa Compare December 26, 2020 22:45
To have it properly complain on empty statements with no effect.

Ref: #6376
Closes #6378
... by making macros use "do {} while(0)"
@bagder bagder force-pushed the bagder/clang-extra-semi-stmt branch from 0f863aa to b12cf55 Compare December 29, 2020 16:22
@bagder bagder closed this in 26e4661 Dec 29, 2020
@olafhering
Copy link
Copy Markdown
Contributor

This causes CI errors in MR, not sure if these errors are regressions.

@bagder bagder deleted the bagder/clang-extra-semi-stmt branch December 30, 2020 15:40
@bagder
Copy link
Copy Markdown
Member Author

bagder commented Dec 30, 2020

MR? You mean pull request? If so which? If you rebase on master there should be no such warnings, surely?

@olafhering
Copy link
Copy Markdown
Contributor

There are a few failures in #6392
Some of them indicate "issues with semicolon", but I did not investigate them.

@bagder
Copy link
Copy Markdown
Member Author

bagder commented Dec 30, 2020

Thanks, I noticed! I don't know how I missed them before but I think I've fixed then now...

@olafhering
Copy link
Copy Markdown
Contributor

I rebased to a6d20b8, lets see how it goes.

@olafhering
Copy link
Copy Markdown
Contributor

Thanks, appears to work. There are apparently some unrelated runtime errors left.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

2 participants