Skip to content

Commit c26cbc9

Browse files
committed
Disable the shorten-64-to-32 warning in Package.swift
Without this flag, we get about 40 warnings when building `swift-lmdb` in Xcode. I don’t think there is an immediate plan to address them in upstream lmdb, so let’s disable them.
1 parent 35f2434 commit c26cbc9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Package.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ let package = Package(
2626
// Windows does not use POSIX mutex
2727
.when(platforms: [.linux, .macOS])),
2828
.define("MDB_USE_ROBUST", to: "0"),
29+
.unsafeFlags(["-Wno-shorten-64-to-32"])
2930
]),
3031
]
3132
)

0 commit comments

Comments
 (0)