boostorg / boostorg/format

sprintf deprecated

Open
#107 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
31
Forks
53
PR merge metrics
No merged PRs in 30d

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 // 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);
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.