Skip to content
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

checks: Replace sprintf() with snprintf() in C++ code #2767

Merged
merged 2 commits into from
Jan 21, 2023

Conversation

nilason
Copy link
Contributor

@nilason nilason commented Jan 20, 2023

Starting with Xcode 14.2 (and with the SDK following it), usage of sprintf() in C++ code issues a -Wdeprecated-declarations warning. This replaces it with the safer snprintf().

Fixes #2766

@nilason nilason added enhancement New feature or request C++ Related code is in C++ labels Jan 20, 2023
@nilason nilason added this to the 8.3.0 milestone Jan 20, 2023
@nilason nilason merged commit 1860180 into OSGeo:main Jan 21, 2023
@nilason
Copy link
Contributor Author

nilason commented Jan 21, 2023

Took the liberty to merge to make the CI runner happy again. Fixes are trivial.

@nilason nilason deleted the fix2766_replace_sprintf branch January 21, 2023 15:24
ninsbl pushed a commit to ninsbl/grass that referenced this pull request Feb 17, 2023
@wenzeslaus wenzeslaus changed the title Replace sprintf() with snprintf() in C++ code checks: Replace sprintf() with snprintf() in C++ code Jun 6, 2023
neteler pushed a commit to nilason/grass that referenced this pull request Nov 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C++ Related code is in C++ enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] error: 'sprintf' is deprecated in Mac CI
1 participant