@@ -108,6 +108,7 @@ static void MaybePrintAndroidHelpUrl() {
108108#endif
109109}
110110
111+ namespace {
111112// A RAII object that holds a copy of the current thread stack ring buffer.
112113// The actual stack buffer may change while we are iterating over it (for
113114// example, Printf may call syslog() which can itself be built with hwasan).
@@ -143,6 +144,7 @@ class Decorator: public __sanitizer::SanitizerCommonDecorator {
143144 const char *Location () { return Green (); }
144145 const char *Thread () { return Green (); }
145146};
147+ } // namespace
146148
147149static bool FindHeapAllocation (HeapAllocationsRingBuffer *rb, uptr tagged_addr,
148150 HeapAllocationRecord *har, uptr *ring_index,
@@ -373,7 +375,7 @@ static void ShowHeapOrGlobalCandidate(uptr untagged_addr, tag_t *candidate,
373375 }
374376}
375377
376- void PrintAddressDescription (
378+ static void PrintAddressDescription (
377379 uptr tagged_addr, uptr access_size,
378380 StackAllocationsRingBuffer *current_stack_allocations) {
379381 Decorator d;
@@ -564,7 +566,7 @@ static void PrintTagsAroundAddr(tag_t *tag_ptr) {
564566 " description of short granule tags\n " );
565567}
566568
567- uptr GetTopPc (StackTrace *stack) {
569+ static uptr GetTopPc (StackTrace *stack) {
568570 return stack->size ? StackTrace::GetPreviousInstructionPc (stack->trace [0 ])
569571 : 0 ;
570572}
0 commit comments