fs_mgr: remove -Wno-unused-variable from cflags

Don't know why this was ever specified, but seems reasonable to remove
it now that we're so close.

Test: build
Change-Id: Ia8d056cd1c9660b3c22531317098ace78e661d6a
This commit is contained in:
Tom Cherry 2018-12-12 10:30:10 -08:00
parent 25a83f0176
commit 898b642d8a
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);