Commit 0802941d authored by Victor Zverovich's avatar Victor Zverovich

Disable MSVC "secure" warnings in format.h only.

parent ff38425f
......@@ -54,6 +54,12 @@
# define FMT_NOEXCEPT(expr)
#endif
// Disable MSVC "secure" warnings.
#ifdef _MSC_VER
# pragma warning(push)
# pragma warning(disable: 4996)
#endif
namespace fmt {
namespace internal {
......@@ -1567,4 +1573,9 @@ void BasicFormatter<Char>::DoFormat() {
}
}
// Restore MSVC "secure" warnings.
#ifdef FMT_RESTORE_SECURE_WARNINGS
# pragma warning(pop)
#endif
#endif // FORMAT_H_
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment