[compiler-rt] fix couple of netbsd build warnings. (#99745)
This commit is contained in:
parent
c91e85278c
commit
9d2f81ea85
@ -6336,7 +6336,7 @@ INTERCEPTOR(void*, dlopen, const char *filename, int flag) {
|
||||
|
||||
const char *SelfFName = DladdrSelfFName();
|
||||
VPrintf(1, "dlopen interceptor: DladdrSelfFName: %p %s\n",
|
||||
(void *)SelfFName, SelfFName);
|
||||
(const void *)SelfFName, SelfFName);
|
||||
|
||||
if (SelfFName && internal_strcmp(SelfFName, filename) == 0) {
|
||||
// It's possible they copied the string from dladdr, so
|
||||
|
@ -47,7 +47,8 @@ void GetMemoryProfile(fill_profile_f cb, uptr *stats) {
|
||||
struct kinfo_proc2 *InfoProc;
|
||||
uptr Len = sizeof(*InfoProc);
|
||||
uptr Size = Len;
|
||||
const int Mib[] = {CTL_KERN, KERN_PROC2, KERN_PROC_PID, getpid(), Size, 1};
|
||||
const int Mib[] = {CTL_KERN, KERN_PROC2, KERN_PROC_PID,
|
||||
getpid(), (int)Size, 1};
|
||||
InfoProc = (struct kinfo_proc2 *)MmapOrDie(Size, "GetMemoryProfile()");
|
||||
CHECK_EQ(
|
||||
internal_sysctl(Mib, ARRAY_SIZE(Mib), nullptr, (uptr *)InfoProc, &Len, 0),
|
||||
|
@ -269,7 +269,7 @@ void FormattedStackTracePrinter::RenderFrame(InternalScopedString *buffer,
|
||||
break;
|
||||
default:
|
||||
Report("Unsupported specifier in stack frame format: %c (%p)!\n", *p,
|
||||
(void *)p);
|
||||
(const void *)p);
|
||||
Die();
|
||||
}
|
||||
}
|
||||
@ -323,7 +323,7 @@ void FormattedStackTracePrinter::RenderData(InternalScopedString *buffer,
|
||||
break;
|
||||
default:
|
||||
Report("Unsupported specifier in stack frame format: %c (%p)!\n", *p,
|
||||
(void *)p);
|
||||
(const void *)p);
|
||||
Die();
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user