mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-04 14:01:25 +12:00
format warning disable for clang, it clutters up the build messages too much
This commit is contained in:
parent
92d556524b
commit
baaa2ae45a
1 changed files with 3 additions and 0 deletions
|
@ -84,7 +84,10 @@ namespace fmt{
|
||||||
for (;;)
|
for (;;)
|
||||||
{
|
{
|
||||||
std::vector<char> buffptr(length);
|
std::vector<char> buffptr(length);
|
||||||
|
#pragma clang diagnostic push
|
||||||
|
#pragma clang diagnostic ignored "-wFormat-security"
|
||||||
int printlen = snprintf(buffptr.data(), length, fmt.c_str(), std::forward<Args>(parameters)...);
|
int printlen = snprintf(buffptr.data(), length, fmt.c_str(), std::forward<Args>(parameters)...);
|
||||||
|
#pragma clang diagnostic pop
|
||||||
if (printlen >= 0 && printlen < length)
|
if (printlen >= 0 && printlen < length)
|
||||||
{
|
{
|
||||||
str = string(buffptr.data(), printlen);
|
str = string(buffptr.data(), printlen);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue