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

Fix a few minor warnings #449

Merged
merged 8 commits into from
Feb 6, 2023

Conversation

d-ronnqvist
Copy link
Contributor

@d-ronnqvist d-ronnqvist commented Jan 4, 2023

Bug/issue #, if applicable:

Summary

This fixes a few minor warnings in the code:

  • Two deprecation warnings in tests (after sha512Checksum was renamed to checksum)
  • A warning about the inferred type of an empty array literal
  • Two warnings about comparing an non-optional value to nil

Dependencies

n/a

Testing

n/a

Checklist

Make sure you check off the following items. If they cannot be completed, provide a reason.

  • Added tests
  • Ran the ./bin/test script and it succeeded
  • Updated documentation if necessary

// Fill in the appropriate values here when that's fixed (https://github.com/apple/swift-docc/issues/441)
return nil
}
// FIXME: Deprecated/Beta markings need platform versions to display properly in Swift-DocC-Render (rdar://56897597)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@QuietMisdreavus have I understood correctly that this FIXME applies generally (and should be kept) or did it only imply when "introduced" was nil (which could never happen) in which case the FIXME can be removed?

Copy link
Contributor

Choose a reason for hiding this comment

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

I think the comment still applies, since this is where the information will need to go when that's fixed.

@d-ronnqvist d-ronnqvist changed the title Fix two minor warnings Fix a few minor warnings Jan 18, 2023
@d-ronnqvist
Copy link
Contributor Author

@swift-ci please test

@d-ronnqvist
Copy link
Contributor Author

@swift-ci please test

@d-ronnqvist
Copy link
Contributor Author

@swift-ci please test

@d-ronnqvist d-ronnqvist merged commit 6bc9eb8 into apple:main Feb 6, 2023
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.

None yet

4 participants