Skip to content

Commit c9680bc

Browse files
[compiler-rt] Fix a warning
This patch fixes: compiler-rt/lib/hwasan/hwasan_report.cpp:331:57: error: format specifies type 'void *' but the argument has type 'const uptr *' (aka 'const unsigned long *') [-Werror,-Wformat-pedantic]
1 parent ee42234 commit c9680bc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

compiler-rt/lib/hwasan/hwasan_report.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,8 @@ static void PrintStackAllocations(const StackAllocationsRingBuffer *sa,
328328
break;
329329
uptr pc_mask = (1ULL << 48) - 1;
330330
uptr pc = record & pc_mask;
331-
frame_desc.AppendF(" record_addr:%p record:0x%zx", record_addr, record);
331+
frame_desc.AppendF(" record_addr:%p record:0x%zx",
332+
reinterpret_cast<const void *>(record_addr), record);
332333
SymbolizedStackHolder symbolized_stack(
333334
Symbolizer::GetOrInit()->SymbolizePC(pc));
334335
const SymbolizedStack *frame = symbolized_stack.get();

0 commit comments

Comments
 (0)