use c99 initializers

This commit is contained in:
christos 2019-03-04 20:01:59 +00:00
parent d00da0a209
commit 3eabc6e968
1 changed files with 7 additions and 1 deletions

View File

@ -65,7 +65,13 @@
/* PER-WITNESS DATA */
/******************************************************************************/
#if defined(JEMALLOC_DEBUG)
# define WITNESS_INITIALIZER(name, rank) {name, rank, NULL, NULL, {NULL, NULL}}
# define WITNESS_INITIALIZER(_name, _rank) { \
.name = _name, \
.rank = _rank, \
.comp = NULL, \
.opaque = NULL, \
.link = { .qre_prev = NULL, .qre_next = NULL }, \
}
#else
# define WITNESS_INITIALIZER(name, rank)
#endif