Skip to content

A build warning is viewed on Linux in Swift 5.3. #51

Closed
@YOCKOW

Description

@YOCKOW

New Issue Checklist

Expected behavior

No warnings are viewed while building.

Actual behavior

A warning like below is viewed.

/code/Sources/Crypto/Util/SecureBytes.swift:265:13: warning: using '_' to ignore the result of a Void-returning function is redundant
            _ = self.withUnsafeMutablePointerToElements { elementsPtr in
            ^~~~

Steps to reproduce

Exec swift build on Linux in Swift 5.3.

Swift Crypto version/commit hash

Ver. 1.1.1

Reason

memset_s returns errno_t on Darwin.
On the other hand, memset_s that is implemented in this library returns Void.

Environment

Swift version 5.3 (swift-5.3-RELEASE)
Target: x86_64-unknown-linux-gnu

OS: Ubuntu 18.04
Linux df91427aa21c 4.19.76-linuxkit #1 SMP Tue May 26 11:42:35 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions