Skip to content

Fix build warnings #1603

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 5 commits into from
Aug 1, 2024
Merged

Fix build warnings #1603

merged 5 commits into from
Aug 1, 2024

Conversation

ahoppen
Copy link
Member

@ahoppen ahoppen commented Aug 1, 2024

Fix build warnings both when building with Swift 6.0 and with Swift from main on Linux and macOS.

ahoppen added 5 commits July 31, 2024 17:25
rdar://132378792 is fixed
Returning `false` indicates that file creation failed, which we should note instead of ignoring it.

This fixes a warning on Linux that the result of `createFile` was ignored.
…rom a file

This fixes a deprecation warning on Linux about `String(contentsOf:)` being deprecated.
@ahoppen
Copy link
Member Author

ahoppen commented Aug 1, 2024

@swift-ci Please test

@ahoppen ahoppen merged commit 77e66bd into swiftlang:main Aug 1, 2024
3 checks passed
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.

2 participants