Skip to content

Preparation for Swift 6 #63

@kkebo

Description

@kkebo

Currently, warnings are shown when compiling swift-image. It means that swift-image cannot be compiled in Swift 6. Moreover, it seems that Swift 6 will be released in the not-too-distant future.

$ swift build
Building for debugging...
...
/path/to/swift-image/Sources/SwiftImage/AnyImage.swift:63:31: warning: generic parameter 'Pixel' shadows generic parameter from outer scope with the same name; this is an error in Swift 6
    private class AnyImageBox<Pixel> {
                              ^
/path/to/swift-image/Sources/SwiftImage/AnyImage.swift:3:24: note: 'Pixel' previously declared here
public struct AnyImage<Pixel> : ImageProtocol {
                       ^
...

(Xcode 15.2, Swift 5.9.2, macOS 14.3.1 arm64)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions