Skip to content

test: avoid -Wunused-variable on NoAsserts build #288

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

Merged
merged 1 commit into from
Jul 31, 2017

Conversation

compnerd
Copy link
Member

Ensure that the variable is referenced to avoid an unused variable
warning from GCC/clang when building the tests in a Release+NoAsserts
configuration. This is done as part of the swift build on Linux for
SourceKit.

Ensure that the variable is referenced to avoid an unused variable
warning from GCC/clang when building the tests in a Release+NoAsserts
configuration.  This is done as part of the swift build on Linux for
SourceKit.
@compnerd
Copy link
Member Author

CC: @das @dgrove-oss

@MadCoder
Copy link
Contributor

why is it needed? dispatch makes sure to reference anything that is used in assertions even when assertions are off

@MadCoder
Copy link
Contributor

wait I should have read the patch first...

@MadCoder MadCoder merged commit 890e017 into swiftlang:master Jul 31, 2017
@compnerd compnerd deleted the test-noasserts branch July 31, 2017 15:36
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.

2 participants