mirror of
https://github.com/fmtlib/fmt.git
synced 2025-02-21 03:41:05 +00:00
Suppress a gcc 13 warning
This commit is contained in:
parent
b4d1d7f8e6
commit
6aaf7f4b79
@ -1512,6 +1512,7 @@ template <typename F> class glibc_file : public file_base<F> {
|
|||||||
void init_buffer() {
|
void init_buffer() {
|
||||||
if (this->file_->_IO_write_ptr) return;
|
if (this->file_->_IO_write_ptr) return;
|
||||||
// Force buffer initialization by placing and removing a char in a buffer.
|
// Force buffer initialization by placing and removing a char in a buffer.
|
||||||
|
assume(this->file_->_IO_write_ptr >= this->file_->_IO_write_end);
|
||||||
putc_unlocked(0, this->file_);
|
putc_unlocked(0, this->file_);
|
||||||
--this->file_->_IO_write_ptr;
|
--this->file_->_IO_write_ptr;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user