mirror of
https://github.com/apple/swift-nio
synced 2026-11-29 05:24:21 +00:00
Motivation: Very recent versions of the Swift compiler complain if you pass `#file` to a parameter that is defaulted to `#filePath`. You can silence the warning by using `(#file)`. We cannot migrate to `#filepath` because we support Swift 5.0 and 5.1 which don't have `#filepath` yet. Modifications: - replace all occurances of `#file` by a special (test `internal`) function `fullFilePath()` which gives you the full path and is defined differently depending on the compiler version. Result: No warnings even on the latest compiler versions.