mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-09 18:50:39 +00:00
lib/xref: fix initializer order for C++
[v2: drop designated initializer names] Signed-off-by: David Lamparter <equinox@diac24.net>
This commit is contained in:
parent
6c3aa850ea
commit
cbb1337a30
14
lib/xref.h
14
lib/xref.h
@ -144,8 +144,11 @@ extern const struct xref * const __stop_xref_array[1] DSO_LOCAL;
|
|||||||
*/
|
*/
|
||||||
#define XREF_SETUP() \
|
#define XREF_SETUP() \
|
||||||
static const struct xref _dummy_xref = { \
|
static const struct xref _dummy_xref = { \
|
||||||
.file = __FILE__, .line = __LINE__, .func = "dummy", \
|
/* .xrefdata = */ NULL, \
|
||||||
.type = XREFT_NONE, \
|
/* .type = */ XREFT_NONE, \
|
||||||
|
/* .line = */ __LINE__, \
|
||||||
|
/* .file = */ __FILE__, \
|
||||||
|
/* .func = */ "dummy", \
|
||||||
}; \
|
}; \
|
||||||
static const struct xref * const _dummy_xref_p \
|
static const struct xref * const _dummy_xref_p \
|
||||||
__attribute__((used, section("xref_array"))) \
|
__attribute__((used, section("xref_array"))) \
|
||||||
@ -251,8 +254,11 @@ struct _xref_p {
|
|||||||
/* initializer for a "struct xref" */
|
/* initializer for a "struct xref" */
|
||||||
#define XREF_INIT(type_, xrefdata_, func_) \
|
#define XREF_INIT(type_, xrefdata_, func_) \
|
||||||
{ \
|
{ \
|
||||||
.type = (type_), .xrefdata = (xrefdata_), \
|
/* .xrefdata = */ (xrefdata_), \
|
||||||
.file = __FILE__, .line = __LINE__, .func = func_, \
|
/* .type = */ (type_), \
|
||||||
|
/* .line = */ __LINE__, \
|
||||||
|
/* .file = */ __FILE__, \
|
||||||
|
/* .func = */ func_, \
|
||||||
} \
|
} \
|
||||||
/* end */
|
/* end */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user