mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-10-15 22:33:24 +00:00
Build with -Wall
This commit is contained in:
@@ -422,8 +422,8 @@ void LZ4FEncoder::write_header() {
|
||||
FilterOutStream::write(outbuf, write);
|
||||
}
|
||||
|
||||
LZ4Decoder::LZ4Decoder() : init(false), buf_off(0), total(0), block_sz(0),
|
||||
outbuf(new char[LZ4_UNCOMPRESSED]), buf(new char[LZ4_COMPRESSED]) {}
|
||||
LZ4Decoder::LZ4Decoder() : outbuf(new char[LZ4_UNCOMPRESSED]), buf(new char[LZ4_COMPRESSED]),
|
||||
init(false), block_sz(0), buf_off(0), total(0) {}
|
||||
|
||||
LZ4Decoder::~LZ4Decoder() {
|
||||
delete[] outbuf;
|
||||
@@ -476,8 +476,8 @@ uint64_t LZ4Decoder::finalize() {
|
||||
return total;
|
||||
}
|
||||
|
||||
LZ4Encoder::LZ4Encoder() : init(false), buf_off(0), out_total(0), in_total(0),
|
||||
outbuf(new char[LZ4_COMPRESSED]), buf(new char[LZ4_UNCOMPRESSED]) {}
|
||||
LZ4Encoder::LZ4Encoder() : outbuf(new char[LZ4_COMPRESSED]), buf(new char[LZ4_UNCOMPRESSED]),
|
||||
init(false), buf_off(0), out_total(0), in_total(0) {}
|
||||
|
||||
LZ4Encoder::~LZ4Encoder() {
|
||||
delete[] outbuf;
|
||||
|
@@ -165,7 +165,7 @@ void magisk_cpio::backup(const char *orig) {
|
||||
res = lhs->first.compare(rhs->first);
|
||||
} else if (lhs == o.entries.end()) {
|
||||
res = 1;
|
||||
} else if (rhs == entries.end()) {
|
||||
} else {
|
||||
res = -1;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user