diff options
author | Jason Evans <jasone@canonware.com> | 2015-07-22 22:44:47 (GMT) |
---|---|---|
committer | Jason Evans <jasone@canonware.com> | 2015-07-22 22:44:47 (GMT) |
commit | e42c309eba6c5084dc0abda9b211e91e2c548fdf (patch) | |
tree | cb8ecc714c61194b7fd6b90b7d62592e25833548 /src/prof.c | |
parent | 1b0e4abbfdbcc1c1a71d1f617adb19951109bfce (diff) | |
download | jemalloc-e42c309eba6c5084dc0abda9b211e91e2c548fdf.zip jemalloc-e42c309eba6c5084dc0abda9b211e91e2c548fdf.tar.gz jemalloc-e42c309eba6c5084dc0abda9b211e91e2c548fdf.tar.bz2 |
Add JEMALLOC_FORMAT_PRINTF().
Replace JEMALLOC_ATTR(format(printf, ...). with
JEMALLOC_FORMAT_PRINTF(), so that configuration feature tests can
omit the attribute if it would cause extraneous compilation warnings.
Diffstat (limited to 'src/prof.c')
-rw-r--r-- | src/prof.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1007,7 +1007,7 @@ prof_dump_write(bool propagate_err, const char *s) return (false); } -JEMALLOC_ATTR(format(printf, 2, 3)) +JEMALLOC_FORMAT_PRINTF(2, 3) static bool prof_dump_printf(bool propagate_err, const char *format, ...) { @@ -1338,7 +1338,7 @@ label_return: return (ret); } -JEMALLOC_ATTR(format(printf, 1, 2)) +JEMALLOC_FORMAT_PRINTF(1, 2) static int prof_open_maps(const char *format, ...) { |