Skip to content

Conversation

compnerd
Copy link
Member

Adjust the declarations to match the definitions and then remove the conditional declaration which was marked with a FIXME. This allows building the runtime without warnings in the new Runtimes build.

@compnerd
Copy link
Member Author

@swift-ci please test Windows platform

3 similar comments
@compnerd
Copy link
Member Author

compnerd commented Jan 6, 2025

@swift-ci please test Windows platform

@compnerd
Copy link
Member Author

@swift-ci please test Windows platform

@compnerd
Copy link
Member Author

@swift-ci please test Windows platform

Adjust the declarations to match the definitions and then remove the
conditional declaration which was marked with a FIXME. This allows
building the runtime without warnings in the new Runtimes build.
@compnerd compnerd marked this pull request as ready for review January 24, 2025 05:36
@compnerd compnerd requested a review from rjmccall as a code owner January 24, 2025 05:36
@compnerd
Copy link
Member Author

@swift-ci please test

@compnerd
Copy link
Member Author

@swift-ci please test Windows platform

@rjmccall
Copy link
Contributor

We were getting some meaningful type-matching checking here, so can we at least use a static_assert with decltype to make sure we don't lose that?

@compnerd compnerd merged commit ed71c20 into swiftlang:main Jan 24, 2025
5 checks passed
@compnerd compnerd deleted the declarations branch January 24, 2025 23:28
@compnerd
Copy link
Member Author

Ugh, GitHub didn't show the comment until after I merged. I'm not sure which type matching you are referring to, but I'm happy to work that into a subsequent change to get that restored.

@rjmccall
Copy link
Contributor

Declaring an extern "C" function with a typedef and then implementing it implicitly forces the compiler to check that the typedef matches the definition type.

compnerd added a commit to compnerd/apple-swift that referenced this pull request Jan 25, 2025
This addresses some feedback on swiftlang#78141 as per @rjmccall. Ensure that the
runtime functions match the expected signature.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants