-
Notifications
You must be signed in to change notification settings - Fork 644
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
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 fb48bdd)
- Loading branch information
Showing
4 changed files
with
16 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters