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

chore: Fix compiler warnings #809

Merged
merged 2 commits into from
Sep 5, 2024
Merged

chore: Fix compiler warnings #809

merged 2 commits into from
Sep 5, 2024

Conversation

jbelkins
Copy link
Contributor

@jbelkins jbelkins commented Sep 5, 2024

Issue #

awslabs/aws-sdk-swift#1713

Description of changes

Fixes compiler warnings for unmodified var and for Sendable blocks not explicitly marked.

Scope

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@jbelkins jbelkins marked this pull request as ready for review September 5, 2024 19:45
@@ -28,7 +28,7 @@ final class DefaultRetryStrategyTests: XCTestCase {

override func setUp() {
backoffStrategy = .init()
backoffStrategy.random = { 1.0 }
backoffStrategy.random = { @Sendable () -> Double in 1.0 }
Copy link
Contributor Author

Choose a reason for hiding this comment

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

IDK why I have to explicitly mark these blocks as Sendable, this is a pretty easy case so the compiler must not do any auto-checking.

@jbelkins jbelkins merged commit dacdcee into main Sep 5, 2024
27 checks passed
@jbelkins jbelkins deleted the jbe/20240905_fix_warnings branch September 5, 2024 21:07
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.

3 participants