[asan][NFC] Fix "not used" warning in test
authorVitaly Buka <vitalybuka@google.com>
Tue, 27 Apr 2021 03:06:34 +0000 (20:06 -0700)
committerVitaly Buka <vitalybuka@google.com>
Tue, 27 Apr 2021 03:07:20 +0000 (20:07 -0700)
compiler-rt/lib/asan/tests/asan_interface_test.cpp

index a93d9ec..ffc3226 100644 (file)
@@ -172,8 +172,7 @@ TEST(AddressSanitizerInterface, SimplePoisonMemoryRegionTest) {
   BAD_ACCESS(array, 40);
   BAD_ACCESS(array, 60);
   BAD_ACCESS(array, 79);
-  char value;
-  EXPECT_DEATH(value = Ident(array[40]), kUseAfterPoisonErrorMessage);
+  EXPECT_DEATH(Ident(array[40]), kUseAfterPoisonErrorMessage);
   __asan_unpoison_memory_region(array + 40, 40);
   // access previously poisoned memory.
   GOOD_ACCESS(array, 40);