Skip to content

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