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

Suppress compiler warnings in release mode. #179

Merged
merged 2 commits into from
Mar 16, 2018

Conversation

Lukasa
Copy link
Contributor

@Lukasa Lukasa commented Mar 16, 2018

Motivation:

There's no reason for us to emit compiler warnings.

Modifications:

Remove use of _isDebugAssertConfiguration to guard code, instead
use a hand-rolled hacky solution on top of assert.

Result:

Fewer warnings, more sadness.

Resolves #178.

Motivation:

There's no reason for us to emit compiler warnings.

Modifications:

Remove use of _isDebugAssertConfiguration to guard code, instead
use a hand-rolled hacky solution on top of assert.

Result:

Fewer warnings, more sadness.
@Lukasa Lukasa added the 🔨 semver/patch No public API change. label Mar 16, 2018
@Lukasa Lukasa added this to the 1.3.0 milestone Mar 16, 2018
@Lukasa Lukasa requested review from normanmaurer and weissi March 16, 2018 13:21
@Lukasa
Copy link
Contributor Author

Lukasa commented Mar 16, 2018

Confirmed this is optimised away in release mode.

@alblue
Copy link
Contributor

alblue commented Mar 16, 2018

Ugly, but works

@Lukasa Lukasa merged commit ab4032c into apple:master Mar 16, 2018
@Lukasa Lukasa deleted the cb-avoid-release-warnings branch March 16, 2018 14:53
tiagomartinho pushed a commit to tiagomartinho/swift-nio that referenced this pull request Mar 17, 2018
Motivation:

There's no reason for us to emit compiler warnings.

Modifications:

Remove use of _isDebugAssertConfiguration to guard code, instead
use a hand-rolled hacky solution on top of assert.

Result:

Fewer warnings, more sadness.
weissi added a commit to weissi/swift-nio that referenced this pull request Jun 13, 2020
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
🔨 semver/patch No public API change.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants