Merge "Stop using -Wno-unused-variable"

This commit is contained in:
Treehugger Robot 2022-03-10 21:40:02 +00:00 committed by Gerrit Code Review
commit 8a73bf6710
3 changed files with 0 additions and 4 deletions

View file

@ -11,7 +11,6 @@ cc_defaults {
"-Wextra", "-Wextra",
"-Wno-missing-field-initializers", "-Wno-missing-field-initializers",
"-Wno-unused-parameter", "-Wno-unused-parameter",
"-Wno-unused-variable",
], ],
clang: true, clang: true,

View file

@ -93,7 +93,6 @@ using android::vold::UnmountTree;
using android::vold::VoldNativeService; using android::vold::VoldNativeService;
using android::vold::VolumeBase; using android::vold::VolumeBase;
static const char* kPathUserMount = "/mnt/user";
static const char* kPathVirtualDisk = "/data/misc/vold/virtual_disk"; static const char* kPathVirtualDisk = "/data/misc/vold/virtual_disk";
static const char* kPropVirtualDisk = "persist.sys.virtual_disk"; static const char* kPropVirtualDisk = "persist.sys.virtual_disk";

View file

@ -66,8 +66,6 @@ status_t Check(const std::string& source, const std::string& target) {
const char* c_source = source.c_str(); const char* c_source = source.c_str();
const char* c_target = target.c_str(); const char* c_target = target.c_str();
int status;
int ret; int ret;
long tmpmnt_flags = MS_NOATIME | MS_NOEXEC | MS_NOSUID; long tmpmnt_flags = MS_NOATIME | MS_NOEXEC | MS_NOSUID;
char* tmpmnt_opts = (char*)"nomblk_io_submit,errors=remount-ro"; char* tmpmnt_opts = (char*)"nomblk_io_submit,errors=remount-ro";