format warning disable for clang, typo correction

This commit is contained in:
Peter Tissen 2014-04-28 21:50:07 +02:00
parent baaa2ae45a
commit 3220e9bbc4

View File

@ -85,7 +85,7 @@ namespace fmt{
{
std::vector<char> buffptr(length);
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-wFormat-security"
#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)