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

Warnings when building with latest swift toolchain. swift-DEVELOPMENT-SNAPSHOT-2024-09-25 #562

Open
jordo opened this issue Oct 3, 2024 · 0 comments

Comments

@jordo
Copy link

jordo commented Oct 3, 2024

Build warnings, when building for target macos, when using latest development swift toolchain:

SwiftGodot/.build/plugins/outputs/swiftgodot/SwiftGodot/destination/CodeGeneratorPlugin/GeneratedSources/generated-builtin/PackedFloat32Array.swift:3:22: warning: using '@_implementationOnly' without enabling library evolution for 'SwiftGodot' may lead to instability during execution
  1 | // This file is autogenerated, do not edit
  2 | 
  3 | @_implementationOnly import GDExtension
    |                      `- warning: using '@_implementationOnly' without enabling library evolution for 'SwiftGodot' may lead to instability during execution
  4 | 
  5 | // This file is autogenerated, do not edit

Lots of the above warning (on all the generated files), and a couple more below:

/Users/jordanschidlowsky/WINTERPIXEL/PROJECTS/ballz/game/swift/SwiftGodot/Sources/SwiftGodot/Core/NIOLock.swift:175:35: warning: conformance of 'LockStorage<Value>' to protocol 'Sendable' is already unavailable
119 | // See also: https://github.com/apple/swift/pull/40000
120 | @usableFromInline
121 | final class LockStorage<Value>: ManagedBuffer<Value, LockPrimitive> {
    |             `- note: 'LockStorage<Value>' inherits conformance to protocol 'Sendable' from superclass here
122 |     
123 |     @inlinable
    :
173 | }
174 | 
175 | extension LockStorage: @unchecked Sendable { }
    |                                   `- warning: conformance of 'LockStorage<Value>' to protocol 'Sendable' is already unavailable
176 | 
177 | /// A threading lock based on `libpthread` instead of `libdispatch`.

/Users/jordanschidlowsky/WINTERPIXEL/PROJECTS/ballz/game/swift/SwiftGodot/Sources/SwiftGodot/Core/NIOLock.swift:187:18: warning: stored property '_storage' of 'Sendable'-conforming struct 'NIOLock' has non-sendable type 'LockStorage<Void>'; this is an error in the Swift 6 language mode
119 | // See also: https://github.com/apple/swift/pull/40000
120 | @usableFromInline
121 | final class LockStorage<Value>: ManagedBuffer<Value, LockPrimitive> {
    |             `- note: generic class 'LockStorage' does not conform to the 'Sendable' protocol
122 |     
123 |     @inlinable
    :
185 | public struct NIOLock {
186 |     @usableFromInline
187 |     internal let _storage: LockStorage<Void>
    |                  `- warning: stored property '_storage' of 'Sendable'-conforming struct 'NIOLock' has non-sendable type 'LockStorage<Void>'; this is an error in the Swift 6 language mode
188 |     
189 |     /// Create a new lock.
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

No branches or pull requests

1 participant