sprintf deprecated
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 50/100
Research direction
Review the sprintf calls in libs/format/benchmark/bench_format.cpp, including the surrounding buffer and format-string usage. Check the benchmark behavior on macOS Clang and confirm that the deprecated calls are addressed without changing the measured formatting results; the benchmark should build without sprintf deprecation warnings.
Written by the indexing model from the issue text.
Description
sprintf is deprecated on macos clang.
"Use snprintf if available as some compilers (clang 14.0) issue deprecation warnings for sprintf"
sprintf appears in these files:
libs/format/benchmark/bench_format.cpp:// bench_variants.cc : do the same task, with sprintf, stream, and format
libs/format/benchmark/bench_format.cpp: // Check that sprintf is Unix98 compatible on the platform :
libs/format/benchmark/bench_format.cpp:// (e.g., it expects sprintf to be POSIX compliant)
libs/format/benchmark/bench_format.cpp:#include <cstdio> // sprintf
libs/format/benchmark/bench_format.cpp: sprintf(buf, fstring.c_str(), arg1, arg2, arg3);
libs/format/benchmark/bench_format.cpp: sprintf(buf, fstring.c_str(), arg1, arg2, arg3);
- Dominant language
- C++
- Stars
- 31
- Forks
- 53
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from boostorg/format
-
Difficulty 3/5 1-2 days Newbie friendliness 72/100
-
Difficulty 3/5 1-2 days Newbie friendliness 72/100
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
-
Difficulty 4/5 3-5 days Newbie friendliness 38/100
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
AXERA-TECH/ax-llm#77 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
games-on-whales/wolf#509 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
bug-unconfirmed
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
NVIDIA/cuda-samples#453 ·