mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-20 03:25:16 +00: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 (;;)
|
||||
{
|
||||
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)...);
|
||||
#pragma clang diagnostic pop
|
||||
if (printlen >= 0 && printlen < length)
|
||||
{
|
||||
str = string(buffptr.data(), printlen);
|
||||
|
|
Loading…
Add table
Reference in a new issue