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

Marco S Hyman marc at snafu.org
Sun Jun 12 17:56:15 CDT 2016

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 ;)

More information about the swift-users mailing list