apple / swift-corelibs-foundation

The Foundation Project, providing core utilities, internationalization, and OS independence
swift.org
Apache License 2.0
5.27k stars 1.13k forks source link

[SR-10594] Linux Compiler Warnings #3424

Open swift-ci opened 5 years ago

swift-ci commented 5 years ago
Previous ID SR-10594
Radar None
Original Reporter dvreid72 (JIRA User)
Type Bug
Environment Ubuntu 18.04 Swift 5.0.x Vapor 3.0+
Additional Detail from JIRA | | | |------------------|-----------------| |Votes | 0 | |Component/s | Foundation | |Labels | Bug | |Assignee | None | |Priority | Medium | md5: a5f0ba6b0a4164abd4d68bf5b10f6773

Issue Description:

One file in the Vapor 3.0+ is giving 2 warnings on Ubuntu but not MacOS

Core/Process+Execute.swift:163:17: warning: 'launchPath' is deprecated: renamed to 'executableURL'

Core/Process+Execute.swift:167:17: warning: 'launch()' is deprecated: renamed to 'run'

belkadan commented 5 years ago

That sounds like they're using an old -swift-version on macOS, which I don't believe swift-corelibs-foundation fully supports (i.e. it doesn't keep around the old names for operations). @millenomi?

swift-ci commented 5 years ago

Comment by Doug Reid (JIRA)

Do you want me to change complier setting on MacOS to confirm you suspicion? The swift version settings are odd to me still.