[committed] libstdc++: Review fixes for r17-3429-g4cb7258da9bd63.
Tomasz Kamiński
tkaminsk@redhat.com
Wed Aug 19 14:50:46 GMT 2026
libstdc++-v3/ChangeLog:
* include/bits/print.h (_File_sink::_File::_M_init_write_buf):
Fix whitespace and pass errno directly to __throw_system_error.
---
I have forgotten to stage this file, before ammending the commit
to modify the description (that was changed).
Pushed to trunk.
libstdc++-v3/include/bits/print.h | 9 +++------
1 file changed, 3 insertions(+), 6 deletions(-)
diff --git a/libstdc++-v3/include/bits/print.h b/libstdc++-v3/include/bits/print.h
index d63267c8ecf..722d82146ac 100644
--- a/libstdc++-v3/include/bits/print.h
+++ b/libstdc++-v3/include/bits/print.h
@@ -86,19 +86,16 @@ namespace __format
_File(_File&&) = delete;
- // Allocate FILE's output buffer if needed, and returns span
+ // Allocate FILE's output buffer if needed, and return a span
// viewing unused portion of it.
std::span<char>
_M_init_write_buf()
{
- // After setvbuf glibc pre-allocates the buffer but _IO_write_ptr
+ // After setvbuf glibc pre-allocates the buffer but _IO_write_ptr
// remains null until the first write.
if (!_M_file->_IO_write_ptr || _M_write_buf().empty())
if (::__overflow(_M_file, EOF) == EOF)
- {
- const int __err = errno;
- __throw_system_error(__err);
- }
+ __throw_system_error(errno);
return _M_write_buf();
}
--
2.55.0
More information about the Libstdc++
mailing list