Merge "fs_mgr: remove -Wno-unused-variable from cflags"

This commit is contained in:
Treehugger Robot 2018-12-12 22:27:46 +00:00 committed by Gerrit Code Review
commit fc216d664a
3 changed files with 0 additions and 3 deletions

View file

@ -23,7 +23,6 @@ cc_defaults {
cflags: [
"-Wall",
"-Werror",
"-Wno-unused-variable",
],
}

View file

@ -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) {

View file

@ -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);