Skip to content

Conversation

@AustinWise
Copy link
Contributor

@AustinWise AustinWise commented Nov 5, 2022

When compiling tests using Xcode 14.1, I got the following error message:

error: 'sprintf' is deprecated: This function is provided for compatibility reasons only. Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Werror,-Wdeprecated-declarations]

@ghost ghost added area-NativeAOT-coreclr community-contribution Indicates that the PR has been added by a community member labels Nov 5, 2022
Copy link
Member

@MichalStrehovsky MichalStrehovsky left a comment

Choose a reason for hiding this comment

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

Thank you!

Co-authored-by: Aaron Robinson <arobins@microsoft.com>
@MichalStrehovsky MichalStrehovsky merged commit af841c8 into dotnet:main Nov 8, 2022
@AustinWise AustinWise deleted the austin/SprintfInTests branch November 16, 2022 05:17
joshpeterson pushed a commit to Unity-Technologies/runtime that referenced this pull request Nov 23, 2022
* Fix sprintf deprecation error with Xcode 14.1

* Update src/tests/Common/Platform/platformdefines.cpp

Co-authored-by: Aaron Robinson <arobins@microsoft.com>

Co-authored-by: Aaron Robinson <arobins@microsoft.com>
@ghost ghost locked as resolved and limited conversation to collaborators Dec 16, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-NativeAOT-coreclr community-contribution Indicates that the PR has been added by a community member

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants