fix compiler warnings (GCC + Clang)

This commit is contained in:
MihailRis
2025-03-20 22:04:29 +03:00
parent 6c3d2d0907
commit 3d22de761f
50 changed files with 80 additions and 103 deletions
+2 -2
View File
@@ -9,8 +9,8 @@
class memory_buffer : public std::streambuf {
public:
explicit memory_buffer(size_t initial_size = 64)
: capacity(initial_size),
buffer(std::make_unique<char[]>(initial_size)) {
: buffer(std::make_unique<char[]>(initial_size)),
capacity(initial_size) {
setp(buffer.get(), buffer.get() + initial_size);
}