chiark / gitweb /
sd-bus: fix c++ compatibility (#5941)
authorMatthijs van Duin <matthijsvanduin@gmail.com>
Thu, 11 May 2017 22:55:26 +0000 (00:55 +0200)
committerSven Eden <yamakuzure@gmx.net>
Tue, 25 Jul 2017 07:46:52 +0000 (09:46 +0200)
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>
src/systemd/sd-bus-vtable.h

index 3563a2b126bffc3d9662dea4d18ec4688f5966c8..1e82cae0381f44f084421281ed134cdfa9c993c6 100644 (file)
@@ -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;