Skip to content

Commit

Permalink
Suppress a gcc 13 warning
Browse files Browse the repository at this point in the history
  • Loading branch information
vitaut committed Sep 4, 2024
1 parent b4d1d7f commit 6aaf7f4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions include/fmt/format-inl.h
Original file line number Diff line number Diff line change
Expand Up @@ -1512,6 +1512,7 @@ template <typename F> class glibc_file : public file_base<F> {
void init_buffer() {
if (this->file_->_IO_write_ptr) return;
// 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_);
--this->file_->_IO_write_ptr;
}
Expand Down

0 comments on commit 6aaf7f4

Please sign in to comment.