diff options
author | Jason Evans <jasone@canonware.com> | 2015-07-07 20:12:05 (GMT) |
---|---|---|
committer | Jason Evans <jasone@canonware.com> | 2015-07-08 03:10:28 (GMT) |
commit | 0313607e663294cd335da2545f10e949ee546fbc (patch) | |
tree | 8f8d7f3c120f89e129e1120a3cb9a31b8bf0d631 /src/prof.c | |
parent | 0dd3ad3841fba31312ab6e2c9ddbc453dd14f6a5 (diff) | |
download | jemalloc-0313607e663294cd335da2545f10e949ee546fbc.zip jemalloc-0313607e663294cd335da2545f10e949ee546fbc.tar.gz jemalloc-0313607e663294cd335da2545f10e949ee546fbc.tar.bz2 |
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/prof.c')
-rw-r--r-- | src/prof.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1413,7 +1413,7 @@ prof_leakcheck(const prof_cnt_t *cnt_all, size_t leak_ngctx, if (cnt_all->curbytes != 0) { malloc_printf("<jemalloc>: Leak summary: %"PRIu64" byte%s, %" - PRIu64" object%s, %zu context%s\n", + PRIu64" object%s, %"PRIzu" context%s\n", cnt_all->curbytes, (cnt_all->curbytes != 1) ? "s" : "", cnt_all->curobjs, (cnt_all->curobjs != 1) ? "s" : "", leak_ngctx, (leak_ngctx != 1) ? "s" : ""); |