[swift-dev] Argument unused warnings
clattner at apple.com
Tue May 17 23:25:40 CDT 2016
> On May 17, 2016, at 1:25 PM, Dmitri Gribenko via swift-dev <swift-dev at swift.org> wrote:
> On Tue, May 17, 2016 at 12:37 PM, Daniel Dunbar via swift-dev
> <swift-dev at swift.org> wrote:
>> Something broke yesterday causing Swift to report gobs of argument unused warnings, see:
>> for a reference.
>> Does anyone know who this should go to?
> https://github.com/apple/swift/commit/3549ec540408d760c255a526b1cff85644cb96d5 ?
Right, this is intentional behavior as part of SE-0047: https://github.com/apple/swift-evolution/blob/master/proposals/0047-nonvoid-warn.md
It was a bug that calls to these non-void methods didn’t warn before. They can be marked with the @discardableResult attribute if that makes sense.
More information about the swift-dev