diff --git a/tests/sys_prctl_test.cpp b/tests/sys_prctl_test.cpp index b7c542b84..f0ac1c33a 100644 --- a/tests/sys_prctl_test.cpp +++ b/tests/sys_prctl_test.cpp @@ -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 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; }