Files
swift-nio/Tests
Nicolas BachschmidtandCory Benfield 546610d52b Work around Xcode 13 GM SDK issues. (#1964)
Motivation:

This is a backport of #1956.

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.

Co-authored-by: Cory Benfield <lukasa@apple.com>
2021-09-21 16:12:08 +01:00
..
2018-09-24 10:24:09 +01:00