mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-06-22 11:55:47 +03:00
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.
This commit is contained in:
parent
1b0e4abbfd
commit
e42c309eba
8 changed files with 54 additions and 20 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, ...)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue