Re: [swift-users] Amusing function return warning in swift 3

2016-06-12 Thread Nathan de Vries via swift-users
I had similar issues with UIApplicationMain when I moved to Swift 3: 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 > wrot

[swift-users] Amusing function return warning in swift 3

2016-06-12 Thread Marco S Hyman via swift-users
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?>) -> Int32 And what does the second line of function help s