Files
swift-nio/docker
Cory Benfield 1d425b0851 Work around Xcode 13 GM SDK issues. (#1956) (#1968)
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 fb48bdd827)
2021-09-23 11:15:01 +01:00
..