diff --git a/fs_mgr/Android.bp b/fs_mgr/Android.bp index 99231acf8..ac138a3b2 100644 --- a/fs_mgr/Android.bp +++ b/fs_mgr/Android.bp @@ -23,7 +23,6 @@ cc_defaults { cflags: [ "-Wall", "-Werror", - "-Wno-unused-variable", ], } diff --git a/fs_mgr/fs_mgr_slotselect.cpp b/fs_mgr/fs_mgr_slotselect.cpp index 20d60aea5..efc29bdff 100644 --- a/fs_mgr/fs_mgr_slotselect.cpp +++ b/fs_mgr/fs_mgr_slotselect.cpp @@ -32,7 +32,6 @@ std::string fs_mgr_get_slot_suffix() { // Updates |fstab| for slot_suffix. Returns true on success, false on error. bool fs_mgr_update_for_slotselect(Fstab* fstab) { - int n; std::string ab_suffix; for (auto& entry : *fstab) { diff --git a/fs_mgr/liblp/writer.cpp b/fs_mgr/liblp/writer.cpp index d8195caef..454258b75 100644 --- a/fs_mgr/liblp/writer.cpp +++ b/fs_mgr/liblp/writer.cpp @@ -84,7 +84,6 @@ std::string SerializeMetadata(const LpMetadata& input) { // with potentially invalid metadata, or random partition data with metadata. static bool ValidateAndSerializeMetadata(const IPartitionOpener& opener, const LpMetadata& metadata, const std::string& slot_suffix, std::string* blob) { - const LpMetadataHeader& header = metadata.header; const LpMetadataGeometry& geometry = metadata.geometry; *blob = SerializeMetadata(metadata);