I had similar issues with UIApplicationMain when I moved to Swift 3:

<rdar://problem/25693546> UIApplicationMain's argv parameter should be declared 
nullable

Presumably NSApplicationMain's argv parameter needs the same nullable 
annotation.

—Nathan


> On Jun 12, 2016, at 3:56 PM, Marco S Hyman via swift-users 
> <swift-users@swift.org> wrote:
> 
> My first try with 5/31 swift 3 snapshot gave me a warning regarding an unused 
> return value -- in main.swift.   Wouldn’t you know, NS ApplicationMain is 
> declared as
> 
> func NSApplicationMain(_ argc: Int32,
>    _ argv: UnsafeMutablePointer<UnsafeMutablePointer<CChar>?>) -> Int32
> 
> And what does the second line of function help say?
> 
> "This method never returns a result code."
> 
> OK ;)
> _______________________________________________
> swift-users mailing list
> swift-users@swift.org
> https://lists.swift.org/mailman/listinfo/swift-users
_______________________________________________
swift-users mailing list
swift-users@swift.org
https://lists.swift.org/mailman/listinfo/swift-users

Reply via email to