mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-24 17:47:22 +03:00
Silence miscellaneous 64-to-32-bit data loss warnings.
This resolves #341.
This commit is contained in:
parent
8282a2ad97
commit
42ce80e15a
4 changed files with 14 additions and 15 deletions
|
|
@ -60,7 +60,7 @@ wrtmessage(void *cbopaque, const char *s)
|
|||
*/
|
||||
UNUSED long result = syscall(SYS_write, STDERR_FILENO, s, strlen(s));
|
||||
#else
|
||||
UNUSED int result = write(STDERR_FILENO, s, strlen(s));
|
||||
UNUSED ssize_t result = write(STDERR_FILENO, s, strlen(s));
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
@ -90,7 +90,7 @@ buferror(int err, char *buf, size_t buflen)
|
|||
|
||||
#ifdef _WIN32
|
||||
FormatMessageA(FORMAT_MESSAGE_FROM_SYSTEM, NULL, err, 0,
|
||||
(LPSTR)buf, buflen, NULL);
|
||||
(LPSTR)buf, (DWORD)buflen, NULL);
|
||||
return (0);
|
||||
#elif defined(__GLIBC__) && defined(_GNU_SOURCE)
|
||||
char *b = strerror_r(err, buf, buflen);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue