Skip to content

fix warnings #24127

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

Merged
merged 3 commits into from
May 13, 2019
Merged

fix warnings #24127

merged 3 commits into from
May 13, 2019

Conversation

Gumichocopengin8
Copy link
Contributor

@Gumichocopengin8 Gumichocopengin8 commented Apr 18, 2019

Fix warnings.

  • var to let
    - Hashable warning
    - warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'something' to 'Hashable' by implementing 'hash(into:)

@Gumichocopengin8
Copy link
Contributor Author

@lorentey
Could you review this, please?

I wasn't sure which variable should be used in hasher.combine(variable)
Also, stdlib/public/Darwin/Foundation/NSRange.swift: 16:16, I didn't even know how I add hash(into:). In this case, how can I implement it?

Thank you.

@lorentey
Copy link
Member

@Gumichocopengin8 Thank you! A fix for the hashing warnings is already under review as #23832; could you please remove those parts from here? The var → let changes look good!

@Gumichocopengin8
Copy link
Contributor Author

@lorentey
Oh I didn't realize it.
OK! I just change the properties var to let.

@lorentey
Copy link
Member

@swift-ci test

Copy link
Member

@lorentey lorentey left a comment

Choose a reason for hiding this comment

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

👍

@swift-ci

This comment has been minimized.

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - 2771eb5

@Gumichocopengin8
Copy link
Contributor Author

@lorentey @jrose-apple Could you run test please?

@lorentey
Copy link
Member

lorentey commented May 7, 2019

@swift-ci test and merge

@Gumichocopengin8
Copy link
Contributor Author

@palimondo could you please run test?

@palimondo
Copy link
Contributor

@swift-ci test and merge

@swift-ci swift-ci merged commit b2542a3 into swiftlang:master May 13, 2019
@Gumichocopengin8 Gumichocopengin8 deleted the fix-build-warnings branch September 2, 2020 04:51
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.

4 participants