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

[SR-9495] StringStorage: warning: result of call to 'initialize(from:)' is unused #51950

Open
milseman mannequin opened this issue Dec 12, 2018 · 1 comment
Open

[SR-9495] StringStorage: warning: result of call to 'initialize(from:)' is unused #51950

milseman mannequin opened this issue Dec 12, 2018 · 1 comment
Assignees
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. standard library Area: Standard library umbrella

Comments

@milseman
Copy link
Mannequin

milseman mannequin commented Dec 12, 2018

Previous ID SR-9495
Radar None
Original Reporter @milseman
Type Bug
Additional Detail from JIRA
Votes 0
Component/s Standard Library
Labels Bug
Assignee @Catfish-Man
Priority Medium

md5: 2aef778fe8545dde6a4822e419560926

Issue Description:

Building the standard library emits a warning for StringStorage.swift:

swift/stdlib/public/core/StringStorage.swift:81:14: warning: result of call to 'initialize(from:)' is unused
      buffer.initialize(from: UnsafeBufferPointer(start: start, count: count))

We should use the result and _invariantCheck liberally to check our invariants.

@milseman
Copy link
Mannequin Author

milseman mannequin commented Dec 12, 2018

@Catfish-Man this is the warning I was talking about last week

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. standard library Area: Standard library umbrella
Projects
None yet
Development

No branches or pull requests

0 participants