mirror of
https://github.com/fmtlib/fmt.git
synced 2025-08-05 05:34:44 +02:00
Disable MSVC "secure" warnings in format.h only.
This commit is contained in:
11
format.h
11
format.h
@@ -54,6 +54,12 @@
|
|||||||
# define FMT_NOEXCEPT(expr)
|
# define FMT_NOEXCEPT(expr)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// Disable MSVC "secure" warnings.
|
||||||
|
#ifdef _MSC_VER
|
||||||
|
# pragma warning(push)
|
||||||
|
# pragma warning(disable: 4996)
|
||||||
|
#endif
|
||||||
|
|
||||||
namespace fmt {
|
namespace fmt {
|
||||||
|
|
||||||
namespace internal {
|
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_
|
#endif // FORMAT_H_
|
||||||
|
Reference in New Issue
Block a user