Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 21aab6cb authored by Daniel Zheng's avatar Daniel Zheng
Browse files

Fix warning

remove some unused headers and fix warning: Moving a temporary object prevents copy elision

Test: m libsnapshot
Change-Id: Idec3e051837dab5f1b95e677d1cdb09e9a57e73e
parent 96b78fee
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -17,9 +17,7 @@
#include <sys/types.h>
#include <unistd.h>

#include <limits>
#include <optional>
#include <set>
#include <unordered_map>
#include <unordered_set>
#include <vector>
@@ -103,7 +101,7 @@ bool CowReader::Parse(android::base::borrowed_fd fd, std::optional<uint64_t> lab
    footer_ = parser.footer();
    fd_size_ = parser.fd_size();
    last_label_ = parser.last_label();
    ops_ = std::move(parser.ops());
    ops_ = parser.ops();
    data_loc_ = parser.data_loc();

    // If we're resuming a write, we're not ready to merge