Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/bsd/jemalloc/dist/include/jemalloc/internal use c99...



details:   https://anonhg.NetBSD.org/src/rev/ae358b375fb5
branches:  trunk
changeset: 839736:ae358b375fb5
user:      christos <christos%NetBSD.org@localhost>
date:      Mon Mar 04 20:01:59 2019 +0000

description:
use c99 initializers

diffstat:

 external/bsd/jemalloc/dist/include/jemalloc/internal/witness.h |  8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diffs (18 lines):

diff -r 847bb3534bef -r ae358b375fb5 external/bsd/jemalloc/dist/include/jemalloc/internal/witness.h
--- a/external/bsd/jemalloc/dist/include/jemalloc/internal/witness.h    Mon Mar 04 20:01:42 2019 +0000
+++ b/external/bsd/jemalloc/dist/include/jemalloc/internal/witness.h    Mon Mar 04 20:01:59 2019 +0000
@@ -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



Home | Main Index | Thread Index | Old Index