From: Matthijs van Duin Date: Thu, 11 May 2017 22:55:26 +0000 (+0200) Subject: sd-bus: fix c++ compatibility (#5941) X-Git-Tag: v234~214 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cc9daff228;p=thirdparty%2Fsystemd.git 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 --- diff --git a/src/systemd/sd-bus-vtable.h b/src/systemd/sd-bus-vtable.h index 3563a2b126b..1e82cae0381 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;