X Tutup
Skip to content

Commit cc9daff

Browse files
mvduinkeszybz
authored andcommitted
sd-bus: fix c++ compatibility (systemd#5941)
g++ annoyingly requires a non-empty struct-initializer to initialize all struct members, in order of declaration. Signed-off-by: Matthijs van Duin <matthijsvanduin@gmail.com>
1 parent fc1b2dc commit cc9daff

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/systemd/sd-bus-vtable.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ struct sd_bus_vtable {
131131
.member = _member, \
132132
.signature = _signature, \
133133
.get = _get, \
134+
.set = NULL, \
134135
.offset = _offset, \
135136
}, \
136137
}, \
@@ -154,6 +155,9 @@ struct sd_bus_vtable {
154155
#define SD_BUS_VTABLE_END \
155156
{ \
156157
.type = _SD_BUS_VTABLE_END, \
158+
.flags = 0, \
159+
.x = { \
160+
}, \
157161
}
158162

159163
_SD_END_DECLARATIONS;

0 commit comments

Comments
 (0)
X Tutup