From df47d819b933113bc4b1390bb704e1f8bb3d2f1c Mon Sep 17 00:00:00 2001 From: vitaut Date: Mon, 16 Mar 2015 18:53:14 -0700 Subject: [PATCH] Suppress bogus MSVC warning --- format.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/format.cc b/format.cc index a3b05724..25836ea1 100644 --- a/format.cc +++ b/format.cc @@ -99,6 +99,9 @@ using fmt::internal::Arg; # pragma warning(push) # pragma warning(disable: 4127) // conditional expression is constant # pragma warning(disable: 4702) // unreachable code +// Disable deprecation warning for strerror. The latter is not called but +// MSVC fails to detect it. +# pragma warning(disable: 4996) #endif // Dummy implementations of strerror_r and strerror_s called if corresponding