2.31.2
Lukasa
tagged this
23 Sep 10:15
Motivation: Xcode 13 GM shipped with a Swift overlay for libsystem in macOS that marked free's first argument as non-nullable. This leads to an awkward breakage for us, because we're trying to hold a reference to free as a function pointer, and to do that we had an explicit type annotation. We'd like to keep NIO compiling in Xcode 13 GM. Modifications: - Defined the free function as a thunk that passes through to the underlying OS free call, but takes its first argument as non-nullable. Result: Should compile on the Xcode 13 GM again. (cherry picked from commit fb48bdd8279799f655da5f8b4e0a21430eca6012)