Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make memset_s consistent with Darwin. #52

Merged
merged 1 commit into from
Oct 6, 2020
Merged

Conversation

YOCKOW
Copy link
Contributor

@YOCKOW YOCKOW commented Oct 6, 2020

Resolves issue#51.

In Swift 5.3, a warning is viewed on Linux because memset_s implemented in this module returns Void.
This PR let the function return the same type with Darwin.

Checklist

  • I've run tests to see all new and existing tests pass
  • I've followed the code style of the rest of the project
  • I've read the Contribution Guidelines
  • I've updated the documentation if necessary

Result:

No warnings are viewed while building.

@swift-server-bot
Copy link

Can one of the admins verify this patch?

3 similar comments
@swift-server-bot
Copy link

Can one of the admins verify this patch?

@swift-server-bot
Copy link

Can one of the admins verify this patch?

@swift-server-bot
Copy link

Can one of the admins verify this patch?

Copy link
Collaborator

@Lukasa Lukasa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Broadly looks good, one quick note.

Sources/Crypto/Util/Zeroization.swift Outdated Show resolved Hide resolved
Resolves [issue#51](apple#51).

In Swift 5.3, a warning is viewed on Linux because `memset_s` implemented in this module returns `Void`.
This commit let the function return the same type with Darwin.
Copy link
Collaborator

@Lukasa Lukasa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, let's see what the CI thinks.

@Lukasa
Copy link
Collaborator

Lukasa commented Oct 6, 2020

@swift-server-bot test this please

@Lukasa Lukasa merged commit 9680b72 into apple:main Oct 6, 2020
@Lukasa
Copy link
Collaborator

Lukasa commented Oct 6, 2020

Thanks very much!

@YOCKOW YOCKOW deleted the fix-memset_s branch October 6, 2020 12:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

A build warning is viewed on Linux in Swift 5.3.
3 participants