mirror of
https://github.com/fmtlib/fmt.git
synced 2026-02-07 02:09:56 +08:00
Suppress warning C4305 (#4668)
This commit is contained in:
parent
28b082cc2b
commit
2d7dc922c6
@ -1743,7 +1743,7 @@ template <typename T> class buffer {
|
||||
// Don't initialize ptr_ since it is not accessed to save a few cycles.
|
||||
FMT_CONSTEXPR buffer(grow_fun grow, size_t sz) noexcept
|
||||
: size_(sz), capacity_(sz), grow_(grow) {
|
||||
if (FMT_MSC_VERSION) ptr_ = nullptr; // Suppress warning 26495.
|
||||
if (FMT_MSC_VERSION != 0) ptr_ = nullptr; // Suppress warning 26495.
|
||||
}
|
||||
|
||||
constexpr buffer(grow_fun grow, T* p = nullptr, size_t sz = 0,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user