use c99 initializers
This commit is contained in:
parent
d00da0a209
commit
3eabc6e968
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue