Build Information
Failed to build SwiftCurses with Swift 6.0 for Linux.
Build Command
bash -c docker run --rm -v "checkouts-4609320-1":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Jomy10/SwiftCurses.git
Reference: master
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
From https://github.com/Jomy10/SwiftCurses
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at e60acf3 added missing brackets
Cloned https://github.com/Jomy10/SwiftCurses.git
Revision (git rev-parse @):
e60acf30770fd3d5fef49c5f353c8bfb13981eff
SPI manifest file found: $workDir/.spi.yml
SUCCESS checkout https://github.com/Jomy10/SwiftCurses.git at master
========================================
Build
========================================
Selected platform: linux
Swift version: 6.0
Building package at path: $workDir
https://github.com/Jomy10/SwiftCurses.git
Running build ...
bash -c docker run --rm -v "checkouts-4609320-1":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
Building for debugging...
[0/7] Write sources
[2/7] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/23] Emitting module SwiftCurses
/host/spi-builder-workspace/Sources/SwiftCurses/Window+attributes.swift:72:24: error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
70 | @inlinable
71 | public func attrOn(_ attrs: [Attribute]) {
72 | ncurses.wattron(self.window, attrs.combine())
| `- error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
73 | }
74 |
/host/spi-builder-workspace/Sources/SwiftCurses/Window+attributes.swift:77:25: error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
75 | @inlinable
76 | public func attrSet(_ attrs: Attribute...) {
77 | ncurses.wattrset(self.window, attrs.combine())
| `- error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
78 | }
79 |
/host/spi-builder-workspace/Sources/SwiftCurses/Window+attributes.swift:87:25: error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
85 | @inlinable
86 | public func attrOff(_ attrs: [Attribute]) {
87 | ncurses.wattroff(self.window, attrs.combine())
| `- error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
88 | }
89 |
/host/spi-builder-workspace/Sources/SwiftCurses/Window+attributes.swift:101:26: error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
99 | @inlinable
100 | public func standEnd() {
101 | ncurses.wstandend(self.window)
| `- error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
102 | }
103 |
/host/spi-builder-workspace/Sources/SwiftCurses/Window+attributes.swift:112:23: error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
110 | @inlinable
111 | func chgat(_ n: Int32, _ attrs: [Attribute], color pair: Int16, opts: UnsafeRawPointer? = nil) {
112 | ncurses.wchgat(self.window, n, attr_t(attrs.combine()), pair, opts)
| `- error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
113 | }
114 |
/host/spi-builder-workspace/Sources/SwiftCurses/Window+border.swift:14:20: error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
12 | public func box(_ vertCh: Character = "\u{0}", _ horCh: Character = "\u{0}") {
13 | // X/Open does not define any error conditions. This implementation returns an error if the window pointer is null.
14 | ncurses.box(self.window, UInt32(vertCh.asciiValue!), UInt32(horCh.asciiValue!))
| `- error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
15 | }
16 |
/host/spi-builder-workspace/Sources/SwiftCurses/Window+border.swift:20:20: error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
18 | public func box(_ vertCh: UInt32, _ horCh: UInt32) {
19 | // X/Open does not define any error conditions. This implementation returns an error if the window pointer is null.
20 | ncurses.box(self.window, vertCh, horCh)
| `- error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
21 | }
22 |
/host/spi-builder-workspace/Sources/SwiftCurses/Window+clear.swift:18:23: error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
16 | @inlinable
17 | public func erase() {
18 | ncurses.werase(self.window)
| `- error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
19 | }
20 |
/host/spi-builder-workspace/Sources/SwiftCurses/Window+clear.swift:23:23: error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
21 | @inlinable
22 | public func clear() {
23 | ncurses.wclear(self.window)
| `- error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
24 | }
25 |
/host/spi-builder-workspace/Sources/SwiftCurses/Window+clear.swift:32:31: error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
30 | switch until {
31 | case .endOfLine:
32 | if ncurses.wclrtoeol(self.window) == ERR {
| `- error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
33 | throw CursesError(.cursorAboutToWrap)
34 | }
/host/spi-builder-workspace/Sources/SwiftCurses/Window+clear.swift:36:28: error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
34 | }
35 | case .endOfScreen:
36 | ncurses.wclrtobot(self.window)
| `- error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
37 | }
38 | }
/host/spi-builder-workspace/Sources/SwiftCurses/Window+controls.swift:14:25: error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
12 | @inlinable
13 | public func move(row: Int32, col: Int32) throws {
14 | if ncurses.wmove(self.window, row, col) == ERR {
| `- error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
15 | throw CursesError(.moveOutsideOfWindow)
16 | }
/host/spi-builder-workspace/Sources/SwiftCurses/Window+controls.swift:42:25: error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
40 | public func refresh() {
41 | // X/Open does not define any error conditions.
42 | ncurses.wrefresh(self.window)
| `- error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
43 | }
44 | }
/host/spi-builder-workspace/Sources/SwiftCurses/Window+dump.swift:15:26: error: cannot convert value of type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>') to expected argument type 'OpaquePointer'
13 | throw CursesError(.couldNotOpenFile)
14 | }
15 | return WinType(ncurses.getwin(filePtr))
| `- error: cannot convert value of type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>') to expected argument type 'OpaquePointer'
16 | }
17 |
/host/spi-builder-workspace/Sources/SwiftCurses/Window+dump.swift:23:26: error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
21 | throw CursesError(.couldNotOpenFile)
22 | }
23 | if ncurses.putwin(self.window, filePtr) == ERR {
| `- error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
24 | throw CursesError(.couldNotOpenFile)
25 | }
/host/spi-builder-workspace/Sources/SwiftCurses/Window+input.swift:7:5: warning: let 'string32Encoding' is not concurrency-safe because non-'Sendable' type 'String.Encoding' may have shared mutable state; this is an error in the Swift 6 language mode
5 |
6 | // Detect system encoding -> used for wide characters
7 | let string32Encoding: String.Encoding = (1.littleEndian == 1) ? .utf32LittleEndian : .utf32BigEndian
| `- warning: let 'string32Encoding' is not concurrency-safe because non-'Sendable' type 'String.Encoding' may have shared mutable state; this is an error in the Swift 6 language mode
8 |
9 | public enum WideChar {
Foundation.String:2:19: note: struct 'Encoding' does not conform to the 'Sendable' protocol
1 | extension String {
2 | public struct Encoding : RawRepresentable {
| `- note: struct 'Encoding' does not conform to the 'Sendable' protocol
3 | public var rawValue: UInt
4 | public init(rawValue: UInt)
/host/spi-builder-workspace/Sources/SwiftCurses/Window+input.swift:3:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
1 | import ncurses
2 | #if canImport(Foundation)
3 | import Foundation
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
4 | #endif
5 |
6 | // Detect system encoding -> used for wide characters
7 | let string32Encoding: String.Encoding = (1.littleEndian == 1) ? .utf32LittleEndian : .utf32BigEndian
| |- note: annotate 'string32Encoding' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
8 |
9 | public enum WideChar {
/host/spi-builder-workspace/Sources/SwiftCurses/Window+mouse.swift:30:36: error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafePointer<WINDOW>?' (aka 'Optional<UnsafePointer<_win_st>>')
28 | @inlinable
29 | public func mouseTrafo(y: inout Int32, x: inout Int32, kind: TrafoKind) -> Bool {
30 | return ncurses.wmouse_trafo(self.window, &y, &x, kind.rawValue)
| `- error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafePointer<WINDOW>?' (aka 'Optional<UnsafePointer<_win_st>>')
31 | }
32 |
/host/spi-builder-workspace/Sources/SwiftCurses/Window+output.swift:35:33: error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
33 | @inlinable
34 | public func addStr(_ str: String) throws {
35 | if ncurses.waddstr(self.window, str) == ERR {
| `- error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
36 | throw CursesError(.error, help: "https://invisible-island.net/ncurses/man/curs_addstr.3x.html#h2-RETURN-VALUE")
37 | }
/host/spi-builder-workspace/Sources/SwiftCurses/settings.swift:46:23: warning: static property 'defaultSettings' is not concurrency-safe because non-'Sendable' type '[WindowSetting]' may have shared mutable state; this is an error in the Swift 6 language mode
26 |
27 | /// https://invisible-island.net/ncurses/man/curs_inopts.3x.html
28 | public enum WindowSetting {
| `- note: consider making enum 'WindowSetting' conform to the 'Sendable' protocol
29 | /// If this option is enabled and an interrupt key is passed on the keyboard (interrupt, break, quit),
30 | /// all output in the tty driver queue will be flushed, giving the effect of faster response to the interrupt,
:
44 |
45 | extension WindowSetting {
46 | public static let defaultSettings: [WindowSetting] = [.keypad(true)]
| |- warning: static property 'defaultSettings' is not concurrency-safe because non-'Sendable' type '[WindowSetting]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultSettings' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
47 | }
48 |
/host/spi-builder-workspace/Sources/SwiftCurses/Window.swift:96:33: error: cannot convert value of type 'UnsafeMutablePointer<WINDOW>' (aka 'UnsafeMutablePointer<_win_st>') to expected argument type 'OpaquePointer'
94 | }
95 |
96 | settings.forEach { $0.apply(win) }
| `- error: cannot convert value of type 'UnsafeMutablePointer<WINDOW>' (aka 'UnsafeMutablePointer<_win_st>') to expected argument type 'OpaquePointer'
97 |
98 | return win
/host/spi-builder-workspace/Sources/SwiftCurses/Window.swift:98:12: error: cannot convert return expression of type 'UnsafeMutablePointer<WINDOW>' (aka 'UnsafeMutablePointer<_win_st>') to return type 'OpaquePointer'
96 | settings.forEach { $0.apply(win) }
97 |
98 | return win
| `- error: cannot convert return expression of type 'UnsafeMutablePointer<WINDOW>' (aka 'UnsafeMutablePointer<_win_st>') to return type 'OpaquePointer'
99 | }
100 |
/host/spi-builder-workspace/Sources/SwiftCurses/color.swift:32:32: warning: reference to var 'COLORS' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
30 | public static let canChangeColor: Bool = can_change_color()
31 |
32 | public static let maxColors = COLORS
| `- warning: reference to var 'COLORS' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
33 |
34 | public static func forceXTerm256Color() {
ncurses.COLORS:1:12: note: var declared here
1 | public var COLORS: Int32
| `- note: var declared here
/host/spi-builder-workspace/Sources/SwiftCurses/color.swift:83:31: warning: reference to var 'COLOR_PAIRS' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
81 |
82 | public struct ColorPair {
83 | public static let maxPairs = COLOR_PAIRS
| `- warning: reference to var 'COLOR_PAIRS' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
84 |
85 | /// changes the definition of a color-pair
ncurses.COLOR_PAIRS:1:12: note: var declared here
1 | public var COLOR_PAIRS: Int32
| `- note: var declared here
/host/spi-builder-workspace/Sources/SwiftCurses/error.swift:48:13: warning: stored property 'kind' of 'Sendable'-conforming struct 'CursesError' has non-sendable type 'ErrorKind'; this is an error in the Swift 6 language mode
1 | public enum ErrorKind {
| `- note: consider making enum 'ErrorKind' conform to the 'Sendable' protocol
2 | case halfdelayParameterOutsideOfRange
3 | /// Window pointer is NULL
:
46 |
47 | public struct CursesError: Error & CustomDebugStringConvertible {
48 | public let kind: ErrorKind
| `- warning: stored property 'kind' of 'Sendable'-conforming struct 'CursesError' has non-sendable type 'ErrorKind'; this is an error in the Swift 6 language mode
49 | public let help: String?
50 |
/host/spi-builder-workspace/Sources/SwiftCurses/settings.swift:42:23: warning: static property 'defaultSettings' is not concurrency-safe because non-'Sendable' type '[TermSetting]' may have shared mutable state; this is an error in the Swift 6 language mode
3 | // TODO: documentation > https://tldp.org/HOWTO/NCURSES-Programming-HOWTO/init.html
4 | /// https://invisible-island.net/ncurses/man/curs_inopts.3x.html
5 | public enum TermSetting {
| `- note: consider making enum 'TermSetting' conform to the 'Sendable' protocol
6 | case cbreak
7 | case noCbreak
:
40 |
41 | extension TermSetting {
42 | public static let defaultSettings: [TermSetting] = [.cbreak, .noEcho, .colors]
| |- warning: static property 'defaultSettings' is not concurrency-safe because non-'Sendable' type '[TermSetting]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultSettings' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
43 | }
44 |
[5/25] Compiling SwiftCurses mouseEvent.swift
/host/spi-builder-workspace/Sources/SwiftCurses/settings.swift:42:23: warning: static property 'defaultSettings' is not concurrency-safe because non-'Sendable' type '[TermSetting]' may have shared mutable state; this is an error in the Swift 6 language mode
3 | // TODO: documentation > https://tldp.org/HOWTO/NCURSES-Programming-HOWTO/init.html
4 | /// https://invisible-island.net/ncurses/man/curs_inopts.3x.html
5 | public enum TermSetting {
| `- note: consider making enum 'TermSetting' conform to the 'Sendable' protocol
6 | case cbreak
7 | case noCbreak
:
40 |
41 | extension TermSetting {
42 | public static let defaultSettings: [TermSetting] = [.cbreak, .noEcho, .colors]
| |- warning: static property 'defaultSettings' is not concurrency-safe because non-'Sendable' type '[TermSetting]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultSettings' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
43 | }
44 |
/host/spi-builder-workspace/Sources/SwiftCurses/settings.swift:46:23: warning: static property 'defaultSettings' is not concurrency-safe because non-'Sendable' type '[WindowSetting]' may have shared mutable state; this is an error in the Swift 6 language mode
26 |
27 | /// https://invisible-island.net/ncurses/man/curs_inopts.3x.html
28 | public enum WindowSetting {
| `- note: consider making enum 'WindowSetting' conform to the 'Sendable' protocol
29 | /// If this option is enabled and an interrupt key is passed on the keyboard (interrupt, break, quit),
30 | /// all output in the tty driver queue will be flushed, giving the effect of faster response to the interrupt,
:
44 |
45 | extension WindowSetting {
46 | public static let defaultSettings: [WindowSetting] = [.keypad(true)]
| |- warning: static property 'defaultSettings' is not concurrency-safe because non-'Sendable' type '[WindowSetting]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultSettings' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
47 | }
48 |
/host/spi-builder-workspace/Sources/SwiftCurses/settings.swift:82:56: error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
80 | func apply(_ win: OpaquePointer) {
81 | switch self {
82 | case .intrflush(let bf): ncurses.intrflush(win, bf)
| `- error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
83 | case .keypad(let bf): ncurses.keypad(win, bf)
84 | case .meta(let bf): ncurses.meta(win, bf)
/host/spi-builder-workspace/Sources/SwiftCurses/settings.swift:83:50: error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
81 | switch self {
82 | case .intrflush(let bf): ncurses.intrflush(win, bf)
83 | case .keypad(let bf): ncurses.keypad(win, bf)
| `- error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
84 | case .meta(let bf): ncurses.meta(win, bf)
85 | case .nodelay(let bf): ncurses.nodelay(win, bf)
/host/spi-builder-workspace/Sources/SwiftCurses/settings.swift:84:46: error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
82 | case .intrflush(let bf): ncurses.intrflush(win, bf)
83 | case .keypad(let bf): ncurses.keypad(win, bf)
84 | case .meta(let bf): ncurses.meta(win, bf)
| `- error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
85 | case .nodelay(let bf): ncurses.nodelay(win, bf)
86 | case .notimeout(let bf): ncurses.notimeout(win, bf)
/host/spi-builder-workspace/Sources/SwiftCurses/settings.swift:85:52: error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
83 | case .keypad(let bf): ncurses.keypad(win, bf)
84 | case .meta(let bf): ncurses.meta(win, bf)
85 | case .nodelay(let bf): ncurses.nodelay(win, bf)
| `- error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
86 | case .notimeout(let bf): ncurses.notimeout(win, bf)
87 | case .timeout(let delay): ncurses.wtimeout(win, delay)
/host/spi-builder-workspace/Sources/SwiftCurses/settings.swift:86:56: error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
84 | case .meta(let bf): ncurses.meta(win, bf)
85 | case .nodelay(let bf): ncurses.nodelay(win, bf)
86 | case .notimeout(let bf): ncurses.notimeout(win, bf)
| `- error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
87 | case .timeout(let delay): ncurses.wtimeout(win, delay)
88 | }
/host/spi-builder-workspace/Sources/SwiftCurses/settings.swift:87:56: error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
85 | case .nodelay(let bf): ncurses.nodelay(win, bf)
86 | case .notimeout(let bf): ncurses.notimeout(win, bf)
87 | case .timeout(let delay): ncurses.wtimeout(win, delay)
| `- error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
88 | }
89 | }
[6/25] Compiling SwiftCurses settings.swift
/host/spi-builder-workspace/Sources/SwiftCurses/settings.swift:42:23: warning: static property 'defaultSettings' is not concurrency-safe because non-'Sendable' type '[TermSetting]' may have shared mutable state; this is an error in the Swift 6 language mode
3 | // TODO: documentation > https://tldp.org/HOWTO/NCURSES-Programming-HOWTO/init.html
4 | /// https://invisible-island.net/ncurses/man/curs_inopts.3x.html
5 | public enum TermSetting {
| `- note: consider making enum 'TermSetting' conform to the 'Sendable' protocol
6 | case cbreak
7 | case noCbreak
:
40 |
41 | extension TermSetting {
42 | public static let defaultSettings: [TermSetting] = [.cbreak, .noEcho, .colors]
| |- warning: static property 'defaultSettings' is not concurrency-safe because non-'Sendable' type '[TermSetting]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultSettings' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
43 | }
44 |
/host/spi-builder-workspace/Sources/SwiftCurses/settings.swift:46:23: warning: static property 'defaultSettings' is not concurrency-safe because non-'Sendable' type '[WindowSetting]' may have shared mutable state; this is an error in the Swift 6 language mode
26 |
27 | /// https://invisible-island.net/ncurses/man/curs_inopts.3x.html
28 | public enum WindowSetting {
| `- note: consider making enum 'WindowSetting' conform to the 'Sendable' protocol
29 | /// If this option is enabled and an interrupt key is passed on the keyboard (interrupt, break, quit),
30 | /// all output in the tty driver queue will be flushed, giving the effect of faster response to the interrupt,
:
44 |
45 | extension WindowSetting {
46 | public static let defaultSettings: [WindowSetting] = [.keypad(true)]
| |- warning: static property 'defaultSettings' is not concurrency-safe because non-'Sendable' type '[WindowSetting]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultSettings' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
47 | }
48 |
/host/spi-builder-workspace/Sources/SwiftCurses/settings.swift:82:56: error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
80 | func apply(_ win: OpaquePointer) {
81 | switch self {
82 | case .intrflush(let bf): ncurses.intrflush(win, bf)
| `- error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
83 | case .keypad(let bf): ncurses.keypad(win, bf)
84 | case .meta(let bf): ncurses.meta(win, bf)
/host/spi-builder-workspace/Sources/SwiftCurses/settings.swift:83:50: error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
81 | switch self {
82 | case .intrflush(let bf): ncurses.intrflush(win, bf)
83 | case .keypad(let bf): ncurses.keypad(win, bf)
| `- error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
84 | case .meta(let bf): ncurses.meta(win, bf)
85 | case .nodelay(let bf): ncurses.nodelay(win, bf)
/host/spi-builder-workspace/Sources/SwiftCurses/settings.swift:84:46: error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
82 | case .intrflush(let bf): ncurses.intrflush(win, bf)
83 | case .keypad(let bf): ncurses.keypad(win, bf)
84 | case .meta(let bf): ncurses.meta(win, bf)
| `- error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
85 | case .nodelay(let bf): ncurses.nodelay(win, bf)
86 | case .notimeout(let bf): ncurses.notimeout(win, bf)
/host/spi-builder-workspace/Sources/SwiftCurses/settings.swift:85:52: error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
83 | case .keypad(let bf): ncurses.keypad(win, bf)
84 | case .meta(let bf): ncurses.meta(win, bf)
85 | case .nodelay(let bf): ncurses.nodelay(win, bf)
| `- error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
86 | case .notimeout(let bf): ncurses.notimeout(win, bf)
87 | case .timeout(let delay): ncurses.wtimeout(win, delay)
/host/spi-builder-workspace/Sources/SwiftCurses/settings.swift:86:56: error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
84 | case .meta(let bf): ncurses.meta(win, bf)
85 | case .nodelay(let bf): ncurses.nodelay(win, bf)
86 | case .notimeout(let bf): ncurses.notimeout(win, bf)
| `- error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
87 | case .timeout(let delay): ncurses.wtimeout(win, delay)
88 | }
/host/spi-builder-workspace/Sources/SwiftCurses/settings.swift:87:56: error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
85 | case .nodelay(let bf): ncurses.nodelay(win, bf)
86 | case .notimeout(let bf): ncurses.notimeout(win, bf)
87 | case .timeout(let delay): ncurses.wtimeout(win, delay)
| `- error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
88 | }
89 | }
[7/25] Compiling SwiftCurses kernel.swift
[8/25] Compiling SwiftCurses keycode.swift
[9/25] Compiling SwiftCurses Window+output.swift
/host/spi-builder-workspace/Sources/SwiftCurses/Window+output.swift:35:33: error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
33 | @inlinable
34 | public func addStr(_ str: String) throws {
35 | if ncurses.waddstr(self.window, str) == ERR {
| `- error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
36 | throw CursesError(.error, help: "https://invisible-island.net/ncurses/man/curs_addstr.3x.html#h2-RETURN-VALUE")
37 | }
/host/spi-builder-workspace/Sources/SwiftCurses/Window+output.swift:58:18: error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
56 | let u32 = ch.unicodeScalars.map { wchar_t(bitPattern: $0.value) } + [0] // null-terminated UTF-8 character
57 | if ncurses.swift_waddwstr(
58 | self.window,
| `- error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
59 | u32.withUnsafeBufferPointer { $0.baseAddress! }
60 | ) == ERR {
/host/spi-builder-workspace/Sources/SwiftCurses/Window+output.swift:61:42: error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafePointer<WINDOW>?' (aka 'Optional<UnsafePointer<_win_st>>')
59 | u32.withUnsafeBufferPointer { $0.baseAddress! }
60 | ) == ERR {
61 | if !ncurses.is_scrollok(self.window) {
| `- error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafePointer<WINDOW>?' (aka 'Optional<UnsafePointer<_win_st>>')
62 | throw CursesError(.unableToAddCompleteCharToScreen, help: "This may be due to adding a character to the bottom right corner: https://invisible-island.net/ncurses/man/curs_add_wch.3x.html#h2-RETURN-VALUE")
63 | } else {
/host/spi-builder-workspace/Sources/SwiftCurses/Window+util.swift:15:38: error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
13 | /// Beginning coordinates
14 | public var begYX: Coordinate {
15 | return ncurses.swift_getbegyx(self.window)
| `- error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
16 | }
17 |
/host/spi-builder-workspace/Sources/SwiftCurses/Window+util.swift:20:38: error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
18 | /// Size of the window
19 | public var maxYX: Coordinate {
20 | return ncurses.swift_getmaxyx(self.window)
| `- error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
21 | }
22 |
/host/spi-builder-workspace/Sources/SwiftCurses/Window+util.swift:25:35: error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
23 | /// Current cursor position
24 | public var yx: Coordinate {
25 | return ncurses.swift_getyx(self.window)
| `- error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
26 | }
27 |
/host/spi-builder-workspace/Sources/SwiftCurses/Window+util.swift:31:58: error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
29 | /// If the window is not a subwindow, nil is returned
30 | public var parentYX: Coordinate? {
31 | let yx: ncurses.swift_YX = ncurses.swift_getparyx(self.window)
| `- error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
32 | return yx.y == -1 ? nil : yx
33 | }
[10/25] Compiling SwiftCurses Window+util.swift
/host/spi-builder-workspace/Sources/SwiftCurses/Window+output.swift:35:33: error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
33 | @inlinable
34 | public func addStr(_ str: String) throws {
35 | if ncurses.waddstr(self.window, str) == ERR {
| `- error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
36 | throw CursesError(.error, help: "https://invisible-island.net/ncurses/man/curs_addstr.3x.html#h2-RETURN-VALUE")
37 | }
/host/spi-builder-workspace/Sources/SwiftCurses/Window+output.swift:58:18: error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
56 | let u32 = ch.unicodeScalars.map { wchar_t(bitPattern: $0.value) } + [0] // null-terminated UTF-8 character
57 | if ncurses.swift_waddwstr(
58 | self.window,
| `- error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
59 | u32.withUnsafeBufferPointer { $0.baseAddress! }
60 | ) == ERR {
/host/spi-builder-workspace/Sources/SwiftCurses/Window+output.swift:61:42: error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafePointer<WINDOW>?' (aka 'Optional<UnsafePointer<_win_st>>')
59 | u32.withUnsafeBufferPointer { $0.baseAddress! }
60 | ) == ERR {
61 | if !ncurses.is_scrollok(self.window) {
| `- error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafePointer<WINDOW>?' (aka 'Optional<UnsafePointer<_win_st>>')
62 | throw CursesError(.unableToAddCompleteCharToScreen, help: "This may be due to adding a character to the bottom right corner: https://invisible-island.net/ncurses/man/curs_add_wch.3x.html#h2-RETURN-VALUE")
63 | } else {
/host/spi-builder-workspace/Sources/SwiftCurses/Window+util.swift:15:38: error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
13 | /// Beginning coordinates
14 | public var begYX: Coordinate {
15 | return ncurses.swift_getbegyx(self.window)
| `- error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
16 | }
17 |
/host/spi-builder-workspace/Sources/SwiftCurses/Window+util.swift:20:38: error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
18 | /// Size of the window
19 | public var maxYX: Coordinate {
20 | return ncurses.swift_getmaxyx(self.window)
| `- error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
21 | }
22 |
/host/spi-builder-workspace/Sources/SwiftCurses/Window+util.swift:25:35: error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
23 | /// Current cursor position
24 | public var yx: Coordinate {
25 | return ncurses.swift_getyx(self.window)
| `- error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
26 | }
27 |
/host/spi-builder-workspace/Sources/SwiftCurses/Window+util.swift:31:58: error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
29 | /// If the window is not a subwindow, nil is returned
30 | public var parentYX: Coordinate? {
31 | let yx: ncurses.swift_YX = ncurses.swift_getparyx(self.window)
| `- error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
32 | return yx.y == -1 ? nil : yx
33 | }
[11/25] Compiling SwiftCurses Window+attributes.swift
/host/spi-builder-workspace/Sources/SwiftCurses/Window+attributes.swift:72:24: error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
70 | @inlinable
71 | public func attrOn(_ attrs: [Attribute]) {
72 | ncurses.wattron(self.window, attrs.combine())
| `- error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
73 | }
74 |
/host/spi-builder-workspace/Sources/SwiftCurses/Window+attributes.swift:77:25: error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
75 | @inlinable
76 | public func attrSet(_ attrs: Attribute...) {
77 | ncurses.wattrset(self.window, attrs.combine())
| `- error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
78 | }
79 |
/host/spi-builder-workspace/Sources/SwiftCurses/Window+attributes.swift:87:25: error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
85 | @inlinable
86 | public func attrOff(_ attrs: [Attribute]) {
87 | ncurses.wattroff(self.window, attrs.combine())
| `- error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
88 | }
89 |
/host/spi-builder-workspace/Sources/SwiftCurses/Window+attributes.swift:101:26: error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
99 | @inlinable
100 | public func standEnd() {
101 | ncurses.wstandend(self.window)
| `- error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
102 | }
103 |
/host/spi-builder-workspace/Sources/SwiftCurses/Window+attributes.swift:112:23: error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
110 | @inlinable
111 | func chgat(_ n: Int32, _ attrs: [Attribute], color pair: Int16, opts: UnsafeRawPointer? = nil) {
112 | ncurses.wchgat(self.window, n, attr_t(attrs.combine()), pair, opts)
| `- error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
113 | }
114 |
/host/spi-builder-workspace/Sources/SwiftCurses/Window+border.swift:14:20: error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
12 | public func box(_ vertCh: Character = "\u{0}", _ horCh: Character = "\u{0}") {
13 | // X/Open does not define any error conditions. This implementation returns an error if the window pointer is null.
14 | ncurses.box(self.window, UInt32(vertCh.asciiValue!), UInt32(horCh.asciiValue!))
| `- error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
15 | }
16 |
/host/spi-builder-workspace/Sources/SwiftCurses/Window+border.swift:20:20: error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
18 | public func box(_ vertCh: UInt32, _ horCh: UInt32) {
19 | // X/Open does not define any error conditions. This implementation returns an error if the window pointer is null.
20 | ncurses.box(self.window, vertCh, horCh)
| `- error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
21 | }
22 |
/host/spi-builder-workspace/Sources/SwiftCurses/Window+border.swift:64:24: error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
62 | bottomRight br: UInt32
63 | ) {
64 | ncurses.wborder(self.window, ls, rs, ts, bs, tl, tr, bl, br)
| `- error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
65 | }
66 |
/host/spi-builder-workspace/Sources/SwiftCurses/Window+border.swift:91:23: error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
89 |
90 | public func horLine(_ ch: UInt32, _ n: Int32) {
91 | ncurses.whline(self.window, ch, n)
| `- error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
92 | }
93 |
/host/spi-builder-workspace/Sources/SwiftCurses/Window+border.swift:111:23: error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
109 |
110 | public func vertLine(_ ch: UInt32, _ n: Int32) {
111 | ncurses.wvline(self.window, ch, n)
| `- error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
112 | }
113 |
/host/spi-builder-workspace/Sources/SwiftCurses/Window+clear.swift:18:23: error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
16 | @inlinable
17 | public func erase() {
18 | ncurses.werase(self.window)
| `- error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
19 | }
20 |
/host/spi-builder-workspace/Sources/SwiftCurses/Window+clear.swift:23:23: error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
21 | @inlinable
22 | public func clear() {
23 | ncurses.wclear(self.window)
| `- error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
24 | }
25 |
/host/spi-builder-workspace/Sources/SwiftCurses/Window+clear.swift:32:31: error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
30 | switch until {
31 | case .endOfLine:
32 | if ncurses.wclrtoeol(self.window) == ERR {
| `- error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
33 | throw CursesError(.cursorAboutToWrap)
34 | }
/host/spi-builder-workspace/Sources/SwiftCurses/Window+clear.swift:36:28: error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
34 | }
35 | case .endOfScreen:
36 | ncurses.wclrtobot(self.window)
| `- error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
37 | }
38 | }
[12/25] Compiling SwiftCurses Window+border.swift
/host/spi-builder-workspace/Sources/SwiftCurses/Window+attributes.swift:72:24: error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
70 | @inlinable
71 | public func attrOn(_ attrs: [Attribute]) {
72 | ncurses.wattron(self.window, attrs.combine())
| `- error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
73 | }
74 |
/host/spi-builder-workspace/Sources/SwiftCurses/Window+attributes.swift:77:25: error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
75 | @inlinable
76 | public func attrSet(_ attrs: Attribute...) {
77 | ncurses.wattrset(self.window, attrs.combine())
| `- error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
78 | }
79 |
/host/spi-builder-workspace/Sources/SwiftCurses/Window+attributes.swift:87:25: error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
85 | @inlinable
86 | public func attrOff(_ attrs: [Attribute]) {
87 | ncurses.wattroff(self.window, attrs.combine())
| `- error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
88 | }
89 |
/host/spi-builder-workspace/Sources/SwiftCurses/Window+attributes.swift:101:26: error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
99 | @inlinable
100 | public func standEnd() {
101 | ncurses.wstandend(self.window)
| `- error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
102 | }
103 |
/host/spi-builder-workspace/Sources/SwiftCurses/Window+attributes.swift:112:23: error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
110 | @inlinable
111 | func chgat(_ n: Int32, _ attrs: [Attribute], color pair: Int16, opts: UnsafeRawPointer? = nil) {
112 | ncurses.wchgat(self.window, n, attr_t(attrs.combine()), pair, opts)
| `- error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
113 | }
114 |
/host/spi-builder-workspace/Sources/SwiftCurses/Window+border.swift:14:20: error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
12 | public func box(_ vertCh: Character = "\u{0}", _ horCh: Character = "\u{0}") {
13 | // X/Open does not define any error conditions. This implementation returns an error if the window pointer is null.
14 | ncurses.box(self.window, UInt32(vertCh.asciiValue!), UInt32(horCh.asciiValue!))
| `- error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
15 | }
16 |
/host/spi-builder-workspace/Sources/SwiftCurses/Window+border.swift:20:20: error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
18 | public func box(_ vertCh: UInt32, _ horCh: UInt32) {
19 | // X/Open does not define any error conditions. This implementation returns an error if the window pointer is null.
20 | ncurses.box(self.window, vertCh, horCh)
| `- error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
21 | }
22 |
/host/spi-builder-workspace/Sources/SwiftCurses/Window+border.swift:64:24: error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
62 | bottomRight br: UInt32
63 | ) {
64 | ncurses.wborder(self.window, ls, rs, ts, bs, tl, tr, bl, br)
| `- error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
65 | }
66 |
/host/spi-builder-workspace/Sources/SwiftCurses/Window+border.swift:91:23: error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
89 |
90 | public func horLine(_ ch: UInt32, _ n: Int32) {
91 | ncurses.whline(self.window, ch, n)
| `- error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
92 | }
93 |
/host/spi-builder-workspace/Sources/SwiftCurses/Window+border.swift:111:23: error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
109 |
110 | public func vertLine(_ ch: UInt32, _ n: Int32) {
111 | ncurses.wvline(self.window, ch, n)
| `- error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
112 | }
113 |
/host/spi-builder-workspace/Sources/SwiftCurses/Window+clear.swift:18:23: error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
16 | @inlinable
17 | public func erase() {
18 | ncurses.werase(self.window)
| `- error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
19 | }
20 |
/host/spi-builder-workspace/Sources/SwiftCurses/Window+clear.swift:23:23: error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
21 | @inlinable
22 | public func clear() {
23 | ncurses.wclear(self.window)
| `- error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
24 | }
25 |
/host/spi-builder-workspace/Sources/SwiftCurses/Window+clear.swift:32:31: error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
30 | switch until {
31 | case .endOfLine:
32 | if ncurses.wclrtoeol(self.window) == ERR {
| `- error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
33 | throw CursesError(.cursorAboutToWrap)
34 | }
/host/spi-builder-workspace/Sources/SwiftCurses/Window+clear.swift:36:28: error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
34 | }
35 | case .endOfScreen:
36 | ncurses.wclrtobot(self.window)
| `- error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
37 | }
38 | }
[13/25] Compiling SwiftCurses Window+clear.swift
/host/spi-builder-workspace/Sources/SwiftCurses/Window+attributes.swift:72:24: error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
70 | @inlinable
71 | public func attrOn(_ attrs: [Attribute]) {
72 | ncurses.wattron(self.window, attrs.combine())
| `- error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
73 | }
74 |
/host/spi-builder-workspace/Sources/SwiftCurses/Window+attributes.swift:77:25: error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
75 | @inlinable
76 | public func attrSet(_ attrs: Attribute...) {
77 | ncurses.wattrset(self.window, attrs.combine())
| `- error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
78 | }
79 |
/host/spi-builder-workspace/Sources/SwiftCurses/Window+attributes.swift:87:25: error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
85 | @inlinable
86 | public func attrOff(_ attrs: [Attribute]) {
87 | ncurses.wattroff(self.window, attrs.combine())
| `- error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
88 | }
89 |
/host/spi-builder-workspace/Sources/SwiftCurses/Window+attributes.swift:101:26: error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
99 | @inlinable
100 | public func standEnd() {
101 | ncurses.wstandend(self.window)
| `- error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
102 | }
103 |
/host/spi-builder-workspace/Sources/SwiftCurses/Window+attributes.swift:112:23: error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
110 | @inlinable
111 | func chgat(_ n: Int32, _ attrs: [Attribute], color pair: Int16, opts: UnsafeRawPointer? = nil) {
112 | ncurses.wchgat(self.window, n, attr_t(attrs.combine()), pair, opts)
| `- error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
113 | }
114 |
/host/spi-builder-workspace/Sources/SwiftCurses/Window+border.swift:14:20: error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
12 | public func box(_ vertCh: Character = "\u{0}", _ horCh: Character = "\u{0}") {
13 | // X/Open does not define any error conditions. This implementation returns an error if the window pointer is null.
14 | ncurses.box(self.window, UInt32(vertCh.asciiValue!), UInt32(horCh.asciiValue!))
| `- error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
15 | }
16 |
/host/spi-builder-workspace/Sources/SwiftCurses/Window+border.swift:20:20: error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
18 | public func box(_ vertCh: UInt32, _ horCh: UInt32) {
19 | // X/Open does not define any error conditions. This implementation returns an error if the window pointer is null.
20 | ncurses.box(self.window, vertCh, horCh)
| `- error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
21 | }
22 |
/host/spi-builder-workspace/Sources/SwiftCurses/Window+border.swift:64:24: error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
62 | bottomRight br: UInt32
63 | ) {
64 | ncurses.wborder(self.window, ls, rs, ts, bs, tl, tr, bl, br)
| `- error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
65 | }
66 |
/host/spi-builder-workspace/Sources/SwiftCurses/Window+border.swift:91:23: error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
89 |
90 | public func horLine(_ ch: UInt32, _ n: Int32) {
91 | ncurses.whline(self.window, ch, n)
| `- error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
92 | }
93 |
/host/spi-builder-workspace/Sources/SwiftCurses/Window+border.swift:111:23: error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
109 |
110 | public func vertLine(_ ch: UInt32, _ n: Int32) {
111 | ncurses.wvline(self.window, ch, n)
| `- error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
112 | }
113 |
/host/spi-builder-workspace/Sources/SwiftCurses/Window+clear.swift:18:23: error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
16 | @inlinable
17 | public func erase() {
18 | ncurses.werase(self.window)
| `- error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
19 | }
20 |
/host/spi-builder-workspace/Sources/SwiftCurses/Window+clear.swift:23:23: error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
21 | @inlinable
22 | public func clear() {
23 | ncurses.wclear(self.window)
| `- error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
24 | }
25 |
/host/spi-builder-workspace/Sources/SwiftCurses/Window+clear.swift:32:31: error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
30 | switch until {
31 | case .endOfLine:
32 | if ncurses.wclrtoeol(self.window) == ERR {
| `- error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
33 | throw CursesError(.cursorAboutToWrap)
34 | }
/host/spi-builder-workspace/Sources/SwiftCurses/Window+clear.swift:36:28: error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
34 | }
35 | case .endOfScreen:
36 | ncurses.wclrtobot(self.window)
| `- error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
37 | }
38 | }
[14/25] Compiling SwiftCurses Window.swift
/host/spi-builder-workspace/Sources/SwiftCurses/settings.swift:46:23: warning: static property 'defaultSettings' is not concurrency-safe because non-'Sendable' type '[WindowSetting]' may have shared mutable state; this is an error in the Swift 6 language mode
26 |
27 | /// https://invisible-island.net/ncurses/man/curs_inopts.3x.html
28 | public enum WindowSetting {
| `- note: consider making enum 'WindowSetting' conform to the 'Sendable' protocol
29 | /// If this option is enabled and an interrupt key is passed on the keyboard (interrupt, break, quit),
30 | /// all output in the tty driver queue will be flushed, giving the effect of faster response to the interrupt,
:
44 |
45 | extension WindowSetting {
46 | public static let defaultSettings: [WindowSetting] = [.keypad(true)]
| |- warning: static property 'defaultSettings' is not concurrency-safe because non-'Sendable' type '[WindowSetting]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultSettings' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
47 | }
48 |
/host/spi-builder-workspace/Sources/SwiftCurses/Window.swift:70:29: error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
68 | self.refresh()
69 |
70 | ncurses.delwin(self.window)
| `- error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
71 |
72 | self.destroyed = true
/host/spi-builder-workspace/Sources/SwiftCurses/Window.swift:96:33: error: cannot convert value of type 'UnsafeMutablePointer<WINDOW>' (aka 'UnsafeMutablePointer<_win_st>') to expected argument type 'OpaquePointer'
94 | }
95 |
96 | settings.forEach { $0.apply(win) }
| `- error: cannot convert value of type 'UnsafeMutablePointer<WINDOW>' (aka 'UnsafeMutablePointer<_win_st>') to expected argument type 'OpaquePointer'
97 |
98 | return win
/host/spi-builder-workspace/Sources/SwiftCurses/Window.swift:98:12: error: cannot convert return expression of type 'UnsafeMutablePointer<WINDOW>' (aka 'UnsafeMutablePointer<_win_st>') to return type 'OpaquePointer'
96 | settings.forEach { $0.apply(win) }
97 |
98 | return win
| `- error: cannot convert return expression of type 'UnsafeMutablePointer<WINDOW>' (aka 'UnsafeMutablePointer<_win_st>') to return type 'OpaquePointer'
99 | }
100 |
/host/spi-builder-workspace/Sources/SwiftCurses/Window.swift:112:12: error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
110 | var window = Window(win)
111 | body(&window)
112 | delwin(win)
| `- error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
113 | }
114 |
/host/spi-builder-workspace/Sources/SwiftCurses/color.swift:32:32: warning: reference to var 'COLORS' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
30 | public static let canChangeColor: Bool = can_change_color()
31 |
32 | public static let maxColors = COLORS
| `- warning: reference to var 'COLORS' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
33 |
34 | public static func forceXTerm256Color() {
ncurses.COLORS:1:12: note: var declared here
1 | public var COLORS: Int32
| `- note: var declared here
/host/spi-builder-workspace/Sources/SwiftCurses/color.swift:83:31: warning: reference to var 'COLOR_PAIRS' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
81 |
82 | public struct ColorPair {
83 | public static let maxPairs = COLOR_PAIRS
| `- warning: reference to var 'COLOR_PAIRS' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
84 |
85 | /// changes the definition of a color-pair
ncurses.COLOR_PAIRS:1:12: note: var declared here
1 | public var COLOR_PAIRS: Int32
| `- note: var declared here
[15/25] Compiling SwiftCurses color.swift
/host/spi-builder-workspace/Sources/SwiftCurses/settings.swift:46:23: warning: static property 'defaultSettings' is not concurrency-safe because non-'Sendable' type '[WindowSetting]' may have shared mutable state; this is an error in the Swift 6 language mode
26 |
27 | /// https://invisible-island.net/ncurses/man/curs_inopts.3x.html
28 | public enum WindowSetting {
| `- note: consider making enum 'WindowSetting' conform to the 'Sendable' protocol
29 | /// If this option is enabled and an interrupt key is passed on the keyboard (interrupt, break, quit),
30 | /// all output in the tty driver queue will be flushed, giving the effect of faster response to the interrupt,
:
44 |
45 | extension WindowSetting {
46 | public static let defaultSettings: [WindowSetting] = [.keypad(true)]
| |- warning: static property 'defaultSettings' is not concurrency-safe because non-'Sendable' type '[WindowSetting]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultSettings' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
47 | }
48 |
/host/spi-builder-workspace/Sources/SwiftCurses/Window.swift:70:29: error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
68 | self.refresh()
69 |
70 | ncurses.delwin(self.window)
| `- error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
71 |
72 | self.destroyed = true
/host/spi-builder-workspace/Sources/SwiftCurses/Window.swift:96:33: error: cannot convert value of type 'UnsafeMutablePointer<WINDOW>' (aka 'UnsafeMutablePointer<_win_st>') to expected argument type 'OpaquePointer'
94 | }
95 |
96 | settings.forEach { $0.apply(win) }
| `- error: cannot convert value of type 'UnsafeMutablePointer<WINDOW>' (aka 'UnsafeMutablePointer<_win_st>') to expected argument type 'OpaquePointer'
97 |
98 | return win
/host/spi-builder-workspace/Sources/SwiftCurses/Window.swift:98:12: error: cannot convert return expression of type 'UnsafeMutablePointer<WINDOW>' (aka 'UnsafeMutablePointer<_win_st>') to return type 'OpaquePointer'
96 | settings.forEach { $0.apply(win) }
97 |
98 | return win
| `- error: cannot convert return expression of type 'UnsafeMutablePointer<WINDOW>' (aka 'UnsafeMutablePointer<_win_st>') to return type 'OpaquePointer'
99 | }
100 |
/host/spi-builder-workspace/Sources/SwiftCurses/Window.swift:112:12: error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
110 | var window = Window(win)
111 | body(&window)
112 | delwin(win)
| `- error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
113 | }
114 |
/host/spi-builder-workspace/Sources/SwiftCurses/color.swift:32:32: warning: reference to var 'COLORS' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
30 | public static let canChangeColor: Bool = can_change_color()
31 |
32 | public static let maxColors = COLORS
| `- warning: reference to var 'COLORS' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
33 |
34 | public static func forceXTerm256Color() {
ncurses.COLORS:1:12: note: var declared here
1 | public var COLORS: Int32
| `- note: var declared here
/host/spi-builder-workspace/Sources/SwiftCurses/color.swift:83:31: warning: reference to var 'COLOR_PAIRS' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
81 |
82 | public struct ColorPair {
83 | public static let maxPairs = COLOR_PAIRS
| `- warning: reference to var 'COLOR_PAIRS' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
84 |
85 | /// changes the definition of a color-pair
ncurses.COLOR_PAIRS:1:12: note: var declared here
1 | public var COLOR_PAIRS: Int32
| `- note: var declared here
[16/25] Compiling SwiftCurses error.swift
/host/spi-builder-workspace/Sources/SwiftCurses/error.swift:48:13: warning: stored property 'kind' of 'Sendable'-conforming struct 'CursesError' has non-sendable type 'ErrorKind'; this is an error in the Swift 6 language mode
1 | public enum ErrorKind {
| `- note: consider making enum 'ErrorKind' conform to the 'Sendable' protocol
2 | case halfdelayParameterOutsideOfRange
3 | /// Window pointer is NULL
:
46 |
47 | public struct CursesError: Error & CustomDebugStringConvertible {
48 | public let kind: ErrorKind
| `- warning: stored property 'kind' of 'Sendable'-conforming struct 'CursesError' has non-sendable type 'ErrorKind'; this is an error in the Swift 6 language mode
49 | public let help: String?
50 |
/host/spi-builder-workspace/Sources/SwiftCurses/settings.swift:42:23: warning: static property 'defaultSettings' is not concurrency-safe because non-'Sendable' type '[TermSetting]' may have shared mutable state; this is an error in the Swift 6 language mode
3 | // TODO: documentation > https://tldp.org/HOWTO/NCURSES-Programming-HOWTO/init.html
4 | /// https://invisible-island.net/ncurses/man/curs_inopts.3x.html
5 | public enum TermSetting {
| `- note: consider making enum 'TermSetting' conform to the 'Sendable' protocol
6 | case cbreak
7 | case noCbreak
:
40 |
41 | extension TermSetting {
42 | public static let defaultSettings: [TermSetting] = [.cbreak, .noEcho, .colors]
| |- warning: static property 'defaultSettings' is not concurrency-safe because non-'Sendable' type '[TermSetting]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultSettings' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
43 | }
44 |
/host/spi-builder-workspace/Sources/SwiftCurses/settings.swift:46:23: warning: static property 'defaultSettings' is not concurrency-safe because non-'Sendable' type '[WindowSetting]' may have shared mutable state; this is an error in the Swift 6 language mode
26 |
27 | /// https://invisible-island.net/ncurses/man/curs_inopts.3x.html
28 | public enum WindowSetting {
| `- note: consider making enum 'WindowSetting' conform to the 'Sendable' protocol
29 | /// If this option is enabled and an interrupt key is passed on the keyboard (interrupt, break, quit),
30 | /// all output in the tty driver queue will be flushed, giving the effect of faster response to the interrupt,
:
44 |
45 | extension WindowSetting {
46 | public static let defaultSettings: [WindowSetting] = [.keypad(true)]
| |- warning: static property 'defaultSettings' is not concurrency-safe because non-'Sendable' type '[WindowSetting]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultSettings' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
47 | }
48 |
/host/spi-builder-workspace/Sources/SwiftCurses/initScreen.swift:13:23: error: cannot find 'LC_ALL' in scope
11 | _ body: (inout Window) throws -> ()
12 | ) throws {
13 | ncurses.setlocale(LC_ALL, "") // support for wide chars
| `- error: cannot find 'LC_ALL' in scope
14 |
15 | guard let _scr = initscr() else { // start curses mode
/host/spi-builder-workspace/Sources/SwiftCurses/initScreen.swift:13:5: error: module 'ncurses' has no member named 'setlocale'
11 | _ body: (inout Window) throws -> ()
12 | ) throws {
13 | ncurses.setlocale(LC_ALL, "") // support for wide chars
| `- error: module 'ncurses' has no member named 'setlocale'
14 |
15 | guard let _scr = initscr() else { // start curses mode
/host/spi-builder-workspace/Sources/SwiftCurses/initScreen.swift:23:39: error: cannot convert value of type 'UnsafeMutablePointer<WINDOW>' (aka 'UnsafeMutablePointer<_win_st>') to expected argument type 'OpaquePointer'
21 |
22 | try settings.forEach { try $0.apply() }
23 | windowSettings.forEach { $0.apply(_scr) }
| `- error: cannot convert value of type 'UnsafeMutablePointer<WINDOW>' (aka 'UnsafeMutablePointer<_win_st>') to expected argument type 'OpaquePointer'
24 |
25 | var scr = Window(_scr)
/host/spi-builder-workspace/Sources/SwiftCurses/initScreen.swift:25:22: error: cannot convert value of type 'UnsafeMutablePointer<WINDOW>' (aka 'UnsafeMutablePointer<_win_st>') to expected argument type 'OpaquePointer'
23 | windowSettings.forEach { $0.apply(_scr) }
24 |
25 | var scr = Window(_scr)
| `- error: cannot convert value of type 'UnsafeMutablePointer<WINDOW>' (aka 'UnsafeMutablePointer<_win_st>') to expected argument type 'OpaquePointer'
26 | try body(&scr)
27 | }
/host/spi-builder-workspace/Sources/SwiftCurses/initScreen.swift:42:23: error: cannot find 'LC_ALL' in scope
40 | _ body: (inout Window) async throws -> ()
41 | ) async throws {
42 | ncurses.setlocale(LC_ALL, "") // support for wide chars
| `- error: cannot find 'LC_ALL' in scope
43 |
44 | guard let _scr = initscr() else { // start curses mode
/host/spi-builder-workspace/Sources/SwiftCurses/initScreen.swift:42:5: error: module 'ncurses' has no member named 'setlocale'
40 | _ body: (inout Window) async throws -> ()
41 | ) async throws {
42 | ncurses.setlocale(LC_ALL, "") // support for wide chars
| `- error: module 'ncurses' has no member named 'setlocale'
43 |
44 | guard let _scr = initscr() else { // start curses mode
/host/spi-builder-workspace/Sources/SwiftCurses/initScreen.swift:52:39: error: cannot convert value of type 'UnsafeMutablePointer<WINDOW>' (aka 'UnsafeMutablePointer<_win_st>') to expected argument type 'OpaquePointer'
50 |
51 | try settings.forEach { try $0.apply() }
52 | windowSettings.forEach { $0.apply(_scr) }
| `- error: cannot convert value of type 'UnsafeMutablePointer<WINDOW>' (aka 'UnsafeMutablePointer<_win_st>') to expected argument type 'OpaquePointer'
53 |
54 | var scr = Window(_scr)
/host/spi-builder-workspace/Sources/SwiftCurses/initScreen.swift:54:22: error: cannot convert value of type 'UnsafeMutablePointer<WINDOW>' (aka 'UnsafeMutablePointer<_win_st>') to expected argument type 'OpaquePointer'
52 | windowSettings.forEach { $0.apply(_scr) }
53 |
54 | var scr = Window(_scr)
| `- error: cannot convert value of type 'UnsafeMutablePointer<WINDOW>' (aka 'UnsafeMutablePointer<_win_st>') to expected argument type 'OpaquePointer'
55 | try await body(&scr)
56 | }
[17/25] Compiling SwiftCurses initScreen.swift
/host/spi-builder-workspace/Sources/SwiftCurses/error.swift:48:13: warning: stored property 'kind' of 'Sendable'-conforming struct 'CursesError' has non-sendable type 'ErrorKind'; this is an error in the Swift 6 language mode
1 | public enum ErrorKind {
| `- note: consider making enum 'ErrorKind' conform to the 'Sendable' protocol
2 | case halfdelayParameterOutsideOfRange
3 | /// Window pointer is NULL
:
46 |
47 | public struct CursesError: Error & CustomDebugStringConvertible {
48 | public let kind: ErrorKind
| `- warning: stored property 'kind' of 'Sendable'-conforming struct 'CursesError' has non-sendable type 'ErrorKind'; this is an error in the Swift 6 language mode
49 | public let help: String?
50 |
/host/spi-builder-workspace/Sources/SwiftCurses/settings.swift:42:23: warning: static property 'defaultSettings' is not concurrency-safe because non-'Sendable' type '[TermSetting]' may have shared mutable state; this is an error in the Swift 6 language mode
3 | // TODO: documentation > https://tldp.org/HOWTO/NCURSES-Programming-HOWTO/init.html
4 | /// https://invisible-island.net/ncurses/man/curs_inopts.3x.html
5 | public enum TermSetting {
| `- note: consider making enum 'TermSetting' conform to the 'Sendable' protocol
6 | case cbreak
7 | case noCbreak
:
40 |
41 | extension TermSetting {
42 | public static let defaultSettings: [TermSetting] = [.cbreak, .noEcho, .colors]
| |- warning: static property 'defaultSettings' is not concurrency-safe because non-'Sendable' type '[TermSetting]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultSettings' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
43 | }
44 |
/host/spi-builder-workspace/Sources/SwiftCurses/settings.swift:46:23: warning: static property 'defaultSettings' is not concurrency-safe because non-'Sendable' type '[WindowSetting]' may have shared mutable state; this is an error in the Swift 6 language mode
26 |
27 | /// https://invisible-island.net/ncurses/man/curs_inopts.3x.html
28 | public enum WindowSetting {
| `- note: consider making enum 'WindowSetting' conform to the 'Sendable' protocol
29 | /// If this option is enabled and an interrupt key is passed on the keyboard (interrupt, break, quit),
30 | /// all output in the tty driver queue will be flushed, giving the effect of faster response to the interrupt,
:
44 |
45 | extension WindowSetting {
46 | public static let defaultSettings: [WindowSetting] = [.keypad(true)]
| |- warning: static property 'defaultSettings' is not concurrency-safe because non-'Sendable' type '[WindowSetting]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultSettings' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
47 | }
48 |
/host/spi-builder-workspace/Sources/SwiftCurses/initScreen.swift:13:23: error: cannot find 'LC_ALL' in scope
11 | _ body: (inout Window) throws -> ()
12 | ) throws {
13 | ncurses.setlocale(LC_ALL, "") // support for wide chars
| `- error: cannot find 'LC_ALL' in scope
14 |
15 | guard let _scr = initscr() else { // start curses mode
/host/spi-builder-workspace/Sources/SwiftCurses/initScreen.swift:13:5: error: module 'ncurses' has no member named 'setlocale'
11 | _ body: (inout Window) throws -> ()
12 | ) throws {
13 | ncurses.setlocale(LC_ALL, "") // support for wide chars
| `- error: module 'ncurses' has no member named 'setlocale'
14 |
15 | guard let _scr = initscr() else { // start curses mode
/host/spi-builder-workspace/Sources/SwiftCurses/initScreen.swift:23:39: error: cannot convert value of type 'UnsafeMutablePointer<WINDOW>' (aka 'UnsafeMutablePointer<_win_st>') to expected argument type 'OpaquePointer'
21 |
22 | try settings.forEach { try $0.apply() }
23 | windowSettings.forEach { $0.apply(_scr) }
| `- error: cannot convert value of type 'UnsafeMutablePointer<WINDOW>' (aka 'UnsafeMutablePointer<_win_st>') to expected argument type 'OpaquePointer'
24 |
25 | var scr = Window(_scr)
/host/spi-builder-workspace/Sources/SwiftCurses/initScreen.swift:25:22: error: cannot convert value of type 'UnsafeMutablePointer<WINDOW>' (aka 'UnsafeMutablePointer<_win_st>') to expected argument type 'OpaquePointer'
23 | windowSettings.forEach { $0.apply(_scr) }
24 |
25 | var scr = Window(_scr)
| `- error: cannot convert value of type 'UnsafeMutablePointer<WINDOW>' (aka 'UnsafeMutablePointer<_win_st>') to expected argument type 'OpaquePointer'
26 | try body(&scr)
27 | }
/host/spi-builder-workspace/Sources/SwiftCurses/initScreen.swift:42:23: error: cannot find 'LC_ALL' in scope
40 | _ body: (inout Window) async throws -> ()
41 | ) async throws {
42 | ncurses.setlocale(LC_ALL, "") // support for wide chars
| `- error: cannot find 'LC_ALL' in scope
43 |
44 | guard let _scr = initscr() else { // start curses mode
/host/spi-builder-workspace/Sources/SwiftCurses/initScreen.swift:42:5: error: module 'ncurses' has no member named 'setlocale'
40 | _ body: (inout Window) async throws -> ()
41 | ) async throws {
42 | ncurses.setlocale(LC_ALL, "") // support for wide chars
| `- error: module 'ncurses' has no member named 'setlocale'
43 |
44 | guard let _scr = initscr() else { // start curses mode
/host/spi-builder-workspace/Sources/SwiftCurses/initScreen.swift:52:39: error: cannot convert value of type 'UnsafeMutablePointer<WINDOW>' (aka 'UnsafeMutablePointer<_win_st>') to expected argument type 'OpaquePointer'
50 |
51 | try settings.forEach { try $0.apply() }
52 | windowSettings.forEach { $0.apply(_scr) }
| `- error: cannot convert value of type 'UnsafeMutablePointer<WINDOW>' (aka 'UnsafeMutablePointer<_win_st>') to expected argument type 'OpaquePointer'
53 |
54 | var scr = Window(_scr)
/host/spi-builder-workspace/Sources/SwiftCurses/initScreen.swift:54:22: error: cannot convert value of type 'UnsafeMutablePointer<WINDOW>' (aka 'UnsafeMutablePointer<_win_st>') to expected argument type 'OpaquePointer'
52 | windowSettings.forEach { $0.apply(_scr) }
53 |
54 | var scr = Window(_scr)
| `- error: cannot convert value of type 'UnsafeMutablePointer<WINDOW>' (aka 'UnsafeMutablePointer<_win_st>') to expected argument type 'OpaquePointer'
55 | try await body(&scr)
56 | }
[18/25] Compiling SwiftCurses Window+input.swift
/host/spi-builder-workspace/Sources/SwiftCurses/Window+input.swift:7:5: warning: let 'string32Encoding' is not concurrency-safe because non-'Sendable' type 'String.Encoding' may have shared mutable state; this is an error in the Swift 6 language mode
5 |
6 | // Detect system encoding -> used for wide characters
7 | let string32Encoding: String.Encoding = (1.littleEndian == 1) ? .utf32LittleEndian : .utf32BigEndian
| `- warning: let 'string32Encoding' is not concurrency-safe because non-'Sendable' type 'String.Encoding' may have shared mutable state; this is an error in the Swift 6 language mode
8 |
9 | public enum WideChar {
Foundation.String:2:19: note: struct 'Encoding' does not conform to the 'Sendable' protocol
1 | extension String {
2 | public struct Encoding : RawRepresentable {
| `- note: struct 'Encoding' does not conform to the 'Sendable' protocol
3 | public var rawValue: UInt
4 | public init(rawValue: UInt)
/host/spi-builder-workspace/Sources/SwiftCurses/Window+input.swift:3:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
1 | import ncurses
2 | #if canImport(Foundation)
3 | import Foundation
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
4 | #endif
5 |
6 | // Detect system encoding -> used for wide characters
7 | let string32Encoding: String.Encoding = (1.littleEndian == 1) ? .utf32LittleEndian : .utf32BigEndian
| |- note: annotate 'string32Encoding' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
8 |
9 | public enum WideChar {
/host/spi-builder-workspace/Sources/SwiftCurses/Window+input.swift:44:58: error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
42 | var c: wchar_t = wchar_t.init()
43 | return try withUnsafeMutablePointer(to: &c) { (ptr: UnsafeMutablePointer<wchar_t>) in
44 | let returnCode = ncurses.swift_wget_wch(self.window, ptr)
| `- error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
45 | switch (returnCode) {
46 | case ERR:
/host/spi-builder-workspace/Sources/SwiftCurses/Window+input.swift:59:37: error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
57 | @discardableResult
58 | public func getCharCode() throws -> Int32 {
59 | let c = ncurses.wgetch(self.window)
| `- error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
60 | if c != OK {
61 | if c == ERR {
/host/spi-builder-workspace/Sources/SwiftCurses/Window+input.swift:81:45: error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
79 | return withUnsafePointer(to: cString[0]) { formatPtr in
80 | let mutFormatPtr = UnsafeMutablePointer(mutating: formatPtr)
81 | return ncurses.vwscanw(self.window, mutFormatPtr, valist)
| `- error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
82 | }
83 | }) == ERR {
/host/spi-builder-workspace/Sources/SwiftCurses/Window+input.swift:98:42: error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
96 | public func getStrPtr() throws -> UnsafePointer<CChar> {
97 | let c: UnsafeMutablePointer<CChar> = UnsafeMutablePointer<CChar>.allocate(capacity: Int(self.maxYX.x) + 1)
98 | let errno = ncurses.wgetstr(self.window, c)
| `- error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
99 | if errno != OK {
100 | if errno == ERR {
/host/spi-builder-workspace/Sources/SwiftCurses/Window+mouse.swift:30:36: error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafePointer<WINDOW>?' (aka 'Optional<UnsafePointer<_win_st>>')
28 | @inlinable
29 | public func mouseTrafo(y: inout Int32, x: inout Int32, kind: TrafoKind) -> Bool {
30 | return ncurses.wmouse_trafo(self.window, &y, &x, kind.rawValue)
| `- error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafePointer<WINDOW>?' (aka 'Optional<UnsafePointer<_win_st>>')
31 | }
32 |
/host/spi-builder-workspace/Sources/SwiftCurses/Window+mouse.swift:44:37: error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafePointer<WINDOW>?' (aka 'Optional<UnsafePointer<_win_st>>')
42 | public func mouseTrafo(y: Int32, x: Int32, kind: TrafoKind) -> (Bool, y: Int32, x: Int32) {
43 | var (lx, ly) = (x, y)
44 | let b = ncurses.wmouse_trafo(self.window, &ly, &lx, kind.rawValue)
| `- error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafePointer<WINDOW>?' (aka 'Optional<UnsafePointer<_win_st>>')
45 | return (b, ly, lx)
46 | }
/host/spi-builder-workspace/Sources/SwiftCurses/Window+mouse.swift:50:25: error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafePointer<WINDOW>?' (aka 'Optional<UnsafePointer<_win_st>>')
48 | /// `wenclose`
49 | public func encloses(y: Int32, x: Int32) -> Bool {
50 | ncurses.wenclose(self.window, y, x)
| `- error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafePointer<WINDOW>?' (aka 'Optional<UnsafePointer<_win_st>>')
51 | }
52 | }
[19/25] Compiling SwiftCurses Window+mouse.swift
/host/spi-builder-workspace/Sources/SwiftCurses/Window+input.swift:7:5: warning: let 'string32Encoding' is not concurrency-safe because non-'Sendable' type 'String.Encoding' may have shared mutable state; this is an error in the Swift 6 language mode
5 |
6 | // Detect system encoding -> used for wide characters
7 | let string32Encoding: String.Encoding = (1.littleEndian == 1) ? .utf32LittleEndian : .utf32BigEndian
| `- warning: let 'string32Encoding' is not concurrency-safe because non-'Sendable' type 'String.Encoding' may have shared mutable state; this is an error in the Swift 6 language mode
8 |
9 | public enum WideChar {
Foundation.String:2:19: note: struct 'Encoding' does not conform to the 'Sendable' protocol
1 | extension String {
2 | public struct Encoding : RawRepresentable {
| `- note: struct 'Encoding' does not conform to the 'Sendable' protocol
3 | public var rawValue: UInt
4 | public init(rawValue: UInt)
/host/spi-builder-workspace/Sources/SwiftCurses/Window+input.swift:3:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
1 | import ncurses
2 | #if canImport(Foundation)
3 | import Foundation
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
4 | #endif
5 |
6 | // Detect system encoding -> used for wide characters
7 | let string32Encoding: String.Encoding = (1.littleEndian == 1) ? .utf32LittleEndian : .utf32BigEndian
| |- note: annotate 'string32Encoding' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
8 |
9 | public enum WideChar {
/host/spi-builder-workspace/Sources/SwiftCurses/Window+input.swift:44:58: error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
42 | var c: wchar_t = wchar_t.init()
43 | return try withUnsafeMutablePointer(to: &c) { (ptr: UnsafeMutablePointer<wchar_t>) in
44 | let returnCode = ncurses.swift_wget_wch(self.window, ptr)
| `- error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
45 | switch (returnCode) {
46 | case ERR:
/host/spi-builder-workspace/Sources/SwiftCurses/Window+input.swift:59:37: error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
57 | @discardableResult
58 | public func getCharCode() throws -> Int32 {
59 | let c = ncurses.wgetch(self.window)
| `- error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
60 | if c != OK {
61 | if c == ERR {
/host/spi-builder-workspace/Sources/SwiftCurses/Window+input.swift:81:45: error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
79 | return withUnsafePointer(to: cString[0]) { formatPtr in
80 | let mutFormatPtr = UnsafeMutablePointer(mutating: formatPtr)
81 | return ncurses.vwscanw(self.window, mutFormatPtr, valist)
| `- error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
82 | }
83 | }) == ERR {
/host/spi-builder-workspace/Sources/SwiftCurses/Window+input.swift:98:42: error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
96 | public func getStrPtr() throws -> UnsafePointer<CChar> {
97 | let c: UnsafeMutablePointer<CChar> = UnsafeMutablePointer<CChar>.allocate(capacity: Int(self.maxYX.x) + 1)
98 | let errno = ncurses.wgetstr(self.window, c)
| `- error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
99 | if errno != OK {
100 | if errno == ERR {
/host/spi-builder-workspace/Sources/SwiftCurses/Window+mouse.swift:30:36: error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafePointer<WINDOW>?' (aka 'Optional<UnsafePointer<_win_st>>')
28 | @inlinable
29 | public func mouseTrafo(y: inout Int32, x: inout Int32, kind: TrafoKind) -> Bool {
30 | return ncurses.wmouse_trafo(self.window, &y, &x, kind.rawValue)
| `- error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafePointer<WINDOW>?' (aka 'Optional<UnsafePointer<_win_st>>')
31 | }
32 |
/host/spi-builder-workspace/Sources/SwiftCurses/Window+mouse.swift:44:37: error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafePointer<WINDOW>?' (aka 'Optional<UnsafePointer<_win_st>>')
42 | public func mouseTrafo(y: Int32, x: Int32, kind: TrafoKind) -> (Bool, y: Int32, x: Int32) {
43 | var (lx, ly) = (x, y)
44 | let b = ncurses.wmouse_trafo(self.window, &ly, &lx, kind.rawValue)
| `- error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafePointer<WINDOW>?' (aka 'Optional<UnsafePointer<_win_st>>')
45 | return (b, ly, lx)
46 | }
/host/spi-builder-workspace/Sources/SwiftCurses/Window+mouse.swift:50:25: error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafePointer<WINDOW>?' (aka 'Optional<UnsafePointer<_win_st>>')
48 | /// `wenclose`
49 | public func encloses(y: Int32, x: Int32) -> Bool {
50 | ncurses.wenclose(self.window, y, x)
| `- error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafePointer<WINDOW>?' (aka 'Optional<UnsafePointer<_win_st>>')
51 | }
52 | }
[20/25] Compiling SwiftCurses Window+controls.swift
/host/spi-builder-workspace/Sources/SwiftCurses/Window+controls.swift:14:25: error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
12 | @inlinable
13 | public func move(row: Int32, col: Int32) throws {
14 | if ncurses.wmove(self.window, row, col) == ERR {
| `- error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
15 | throw CursesError(.moveOutsideOfWindow)
16 | }
/host/spi-builder-workspace/Sources/SwiftCurses/Window+controls.swift:42:25: error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
40 | public func refresh() {
41 | // X/Open does not define any error conditions.
42 | ncurses.wrefresh(self.window)
| `- error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
43 | }
44 | }
/host/spi-builder-workspace/Sources/SwiftCurses/Window+dump.swift:15:26: error: cannot convert value of type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>') to expected argument type 'OpaquePointer'
13 | throw CursesError(.couldNotOpenFile)
14 | }
15 | return WinType(ncurses.getwin(filePtr))
| `- error: cannot convert value of type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>') to expected argument type 'OpaquePointer'
16 | }
17 |
/host/spi-builder-workspace/Sources/SwiftCurses/Window+dump.swift:23:26: error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
21 | throw CursesError(.couldNotOpenFile)
22 | }
23 | if ncurses.putwin(self.window, filePtr) == ERR {
| `- error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
24 | throw CursesError(.couldNotOpenFile)
25 | }
[21/25] Compiling SwiftCurses Window+dump.swift
/host/spi-builder-workspace/Sources/SwiftCurses/Window+controls.swift:14:25: error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
12 | @inlinable
13 | public func move(row: Int32, col: Int32) throws {
14 | if ncurses.wmove(self.window, row, col) == ERR {
| `- error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
15 | throw CursesError(.moveOutsideOfWindow)
16 | }
/host/spi-builder-workspace/Sources/SwiftCurses/Window+controls.swift:42:25: error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
40 | public func refresh() {
41 | // X/Open does not define any error conditions.
42 | ncurses.wrefresh(self.window)
| `- error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
43 | }
44 | }
/host/spi-builder-workspace/Sources/SwiftCurses/Window+dump.swift:15:26: error: cannot convert value of type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>') to expected argument type 'OpaquePointer'
13 | throw CursesError(.couldNotOpenFile)
14 | }
15 | return WinType(ncurses.getwin(filePtr))
| `- error: cannot convert value of type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>') to expected argument type 'OpaquePointer'
16 | }
17 |
/host/spi-builder-workspace/Sources/SwiftCurses/Window+dump.swift:23:26: error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
21 | throw CursesError(.couldNotOpenFile)
22 | }
23 | if ncurses.putwin(self.window, filePtr) == ERR {
| `- error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutablePointer<WINDOW>?' (aka 'Optional<UnsafeMutablePointer<_win_st>>')
24 | throw CursesError(.couldNotOpenFile)
25 | }
BUILD FAILURE 6.0 linux