Skip to content

Commit 3c47f5f

Browse files
committed
[asan][NFC] Fix "not used" warning in test
1 parent d07c90e commit 3c47f5f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

compiler-rt/lib/asan/tests/asan_interface_test.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,8 +172,7 @@ TEST(AddressSanitizerInterface, SimplePoisonMemoryRegionTest) {
172172
BAD_ACCESS(array, 40);
173173
BAD_ACCESS(array, 60);
174174
BAD_ACCESS(array, 79);
175-
char value;
176-
EXPECT_DEATH(value = Ident(array[40]), kUseAfterPoisonErrorMessage);
175+
EXPECT_DEATH(Ident(array[40]), kUseAfterPoisonErrorMessage);
177176
__asan_unpoison_memory_region(array + 40, 40);
178177
// access previously poisoned memory.
179178
GOOD_ACCESS(array, 40);

0 commit comments

Comments
 (0)