Skip to content

Commit

Permalink
silence compiler warnings (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
mman committed Aug 5, 2022
1 parent 88fc6e1 commit cec97c2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Sources/Cryptor/StreamCryptor.swift
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ public class StreamCryptor {
}

/// No options
public static let none = Options(rawValue: 0)
public static let none = Options([])

#if os(macOS) || os(iOS) || os(tvOS) || os(watchOS)

Expand Down
2 changes: 1 addition & 1 deletion Sources/Cryptor/Updatable.swift
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ extension Updatable {
public func update(data: Data) -> Self? {

#if swift(>=5.0)
_ = data.withUnsafeBytes() {
data.withUnsafeBytes() {

_ = update(from: $0.baseAddress!, byteCount: size_t(data.count))
}
Expand Down

0 comments on commit cec97c2

Please sign in to comment.