mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-24 03:17:53 +00:00
Suppress bogus MSVC analysis warnings
This commit is contained in:
parent
3f79357ef0
commit
56bc86ffac
@ -660,6 +660,7 @@ template <typename T> class buffer {
|
||||
|
||||
protected:
|
||||
// Don't initialize ptr_ since it is not accessed to save a few cycles.
|
||||
FMT_SUPPRESS_MSC_WARNING(26495)
|
||||
buffer(std::size_t sz) FMT_NOEXCEPT : size_(sz), capacity_(sz) {}
|
||||
|
||||
buffer(T* p = nullptr, std::size_t sz = 0, std::size_t cap = 0) FMT_NOEXCEPT
|
||||
|
@ -1640,7 +1640,7 @@ template <typename Range> class basic_writer {
|
||||
UIntPtr value;
|
||||
int num_digits;
|
||||
|
||||
size_t size() const { return to_unsigned(num_digits) + 2; }
|
||||
size_t size() const { return to_unsigned(num_digits) + size_t(2); }
|
||||
size_t width() const { return size(); }
|
||||
|
||||
template <typename It> void operator()(It&& it) const {
|
||||
|
Loading…
Reference in New Issue
Block a user