Skip to content

Commit 7a0d5bd

Browse files
committed
asan: Fix warnings in #94103 [-Wunused-variable]
1 parent 2bd568f commit 7a0d5bd

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

compiler-rt/lib/asan/asan_errors.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,6 @@ void ErrorBadParamsToAnnotateContiguousContainer::Print() {
327327
" old_mid : %p\n"
328328
" new_mid : %p\n",
329329
(void *)beg, (void *)end, (void *)old_mid, (void *)new_mid);
330-
uptr granularity = ASAN_SHADOW_GRANULARITY;
331330
stack->Print();
332331
ReportErrorSummary(scariness.GetDescription(), stack);
333332
}
@@ -345,7 +344,6 @@ void ErrorBadParamsToAnnotateDoubleEndedContiguousContainer::Print() {
345344
(void *)storage_beg, (void *)storage_end, (void *)old_container_beg,
346345
(void *)old_container_end, (void *)new_container_beg,
347346
(void *)new_container_end);
348-
uptr granularity = ASAN_SHADOW_GRANULARITY;
349347
stack->Print();
350348
ReportErrorSummary(scariness.GetDescription(), stack);
351349
}

0 commit comments

Comments
 (0)