Fix x86_64 build which uses g++ and hits -Werror=unused-but-set-variable
Bug: 32640542 Bug: 33078014 Change-Id: Id9d3b4e69ac909078b2ac5b81acf161debcefae3
This commit is contained in:
parent
4cf7dfd1a4
commit
2993aaa261
1 changed files with 0 additions and 2 deletions
|
@ -41,7 +41,6 @@ TEST(sys_prctl, bug_20017123) {
|
|||
std::string file_data;
|
||||
ASSERT_TRUE(android::base::ReadFileToString("/proc/self/maps", &file_data));
|
||||
|
||||
uintptr_t last_start = 0;
|
||||
uintptr_t last_end = 0;
|
||||
std::vector<std::string> lines = android::base::Split(file_data, "\n");
|
||||
for (size_t i = 0; i < lines.size(); i++) {
|
||||
|
@ -55,7 +54,6 @@ TEST(sys_prctl, bug_20017123) {
|
|||
// This will never fail on the first line, so no need to do any special checking.
|
||||
ASSERT_GE(start, last_end)
|
||||
<< "Overlapping map detected:\n" << lines[i -1] << '\n' << lines[i] << '\n';
|
||||
last_start = start;
|
||||
last_end = end;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue