diff options
author | Jason Evans <jasone@canonware.com> | 2015-07-07 13:12:05 -0700 |
---|---|---|
committer | Jason Evans <jasone@canonware.com> | 2015-07-07 20:10:28 -0700 |
commit | 0313607e663294cd335da2545f10e949ee546fbc (patch) | |
tree | 8f8d7f3c120f89e129e1120a3cb9a31b8bf0d631 /src/arena.c | |
parent | 0dd3ad3841fba31312ab6e2c9ddbc453dd14f6a5 (diff) | |
download | jemalloc-0313607e663294cd335da2545f10e949ee546fbc.tar.gz |
Fix MinGW build warnings.
Conditionally define ENOENT, EINVAL, etc. (was unconditional).
Add/use PRIzu, PRIzd, and PRIzx for use in malloc_printf() calls. gcc issued
(harmless) warnings since e.g. "%zu" should be "%Iu" on Windows, and the
alternative to this workaround would have been to disable the function
attributes which cause gcc to look for type mismatches in formatted printing
function calls.
Diffstat (limited to 'src/arena.c')
-rw-r--r-- | src/arena.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/arena.c b/src/arena.c index 51e3b25..a8fae11 100644 --- a/src/arena.c +++ b/src/arena.c @@ -1911,8 +1911,8 @@ arena_redzone_corruption(void *ptr, size_t usize, bool after, size_t offset, uint8_t byte) { - malloc_printf("<jemalloc>: Corrupt redzone %zu byte%s %s %p " - "(size %zu), byte=%#x\n", offset, (offset == 1) ? "" : "s", + malloc_printf("<jemalloc>: Corrupt redzone %"PRIzu" byte%s %s %p " + "(size %"PRIzu"), byte=%#x\n", offset, (offset == 1) ? "" : "s", after ? "after" : "before", ptr, usize, byte); } #ifdef JEMALLOC_JET |