summaryrefslogtreecommitdiff
path: root/src/systemd
diff options
context:
space:
mode:
authorMatthijs van Duin <matthijsvanduin@gmail.com>2017-05-12 00:55:26 +0200
committerSven Eden <yamakuzure@gmx.net>2017-07-25 09:46:52 +0200
commit7d9e3a8e50c44608d19ea8a97ee37ac6f300a7f1 (patch)
tree89591eab121c587e34c74098edb4575cc8497860 /src/systemd
parent0ab6e8b324d8dcb9159bdd100538d4e9852f96a6 (diff)
sd-bus: fix c++ compatibility (#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>
Diffstat (limited to 'src/systemd')
-rw-r--r--src/systemd/sd-bus-vtable.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/systemd/sd-bus-vtable.h b/src/systemd/sd-bus-vtable.h
index 3563a2b12..1e82cae03 100644
--- a/src/systemd/sd-bus-vtable.h
+++ b/src/systemd/sd-bus-vtable.h
@@ -131,6 +131,7 @@ struct sd_bus_vtable {
.member = _member, \
.signature = _signature, \
.get = _get, \
+ .set = NULL, \
.offset = _offset, \
}, \
}, \
@@ -154,6 +155,9 @@ struct sd_bus_vtable {
#define SD_BUS_VTABLE_END \
{ \
.type = _SD_BUS_VTABLE_END, \
+ .flags = 0, \
+ .x = { \
+ }, \
}
_SD_END_DECLARATIONS;