Suppress a false positive in clang-tidy

This commit is contained in:
Victor Zverovich
2025-09-01 11:42:00 -07:00
parent 79c7f8a70b
commit 619b3a5aa0
2 changed files with 27 additions and 16 deletions
+1 -1
View File
@@ -1583,7 +1583,7 @@ template <typename F> class apple_file : public file_base<F> {
void init_buffer() {
if (this->file_->_p) return;
// Force buffer initialization by placing and removing a char in a buffer.
putc_unlocked(0, this->file_);
if (!FMT_CLANG_ANALYZER) putc_unlocked(0, this->file_);
--this->file_->_p;
++this->file_->_w;
}