fix compiler warnings (GCC + Clang)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -59,8 +59,6 @@ path path::normalized() const {
|
||||
}
|
||||
parts.push(std::move(token));
|
||||
}
|
||||
bool started = false;
|
||||
|
||||
path = "";
|
||||
while (!parts.empty()) {
|
||||
const auto& token = parts.top();
|
||||
|
||||
Reference in New Issue
Block a user