Skip to content

Subprocess: avoid some strdup deprecation warnings on Windows #121

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 16, 2025

Conversation

compnerd
Copy link
Member

Use the POSIX compliant _strdup on Windows instead of strdup to avoid some warnings when building.

Use the POSIX compliant `_strdup` on Windows instead of `strdup` to
avoid some warnings when building.
@compnerd compnerd requested a review from iCharlesHu as a code owner July 14, 2025 22:40
@compnerd compnerd requested a review from jakepetroules July 14, 2025 22:40
Copy link
Contributor

@jakepetroules jakepetroules left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. Please make sure to get @iCharlesHu's approval too.

Copy link
Contributor

@iCharlesHu iCharlesHu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix!

@compnerd compnerd merged commit 94b8d46 into swiftlang:main Jul 16, 2025
107 of 126 checks passed
@compnerd compnerd deleted the strdup branch July 16, 2025 18:11
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.

3 participants