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>
This commit is contained in:
Matthijs van Duin
2017-05-11 18:55:26 -04:00
committed by Zbigniew Jędrzejewski-Szmek
parent fc1b2dc395
commit cc9daff228
+4
View File
@@ -131,6 +131,7 @@ struct sd_bus_vtable {
.member = _member, \ .member = _member, \
.signature = _signature, \ .signature = _signature, \
.get = _get, \ .get = _get, \
.set = NULL, \
.offset = _offset, \ .offset = _offset, \
}, \ }, \
}, \ }, \
@@ -154,6 +155,9 @@ struct sd_bus_vtable {
#define SD_BUS_VTABLE_END \ #define SD_BUS_VTABLE_END \
{ \ { \
.type = _SD_BUS_VTABLE_END, \ .type = _SD_BUS_VTABLE_END, \
.flags = 0, \
.x = { \
}, \
} }
_SD_END_DECLARATIONS; _SD_END_DECLARATIONS;