diff options
author | Leonard <leonard.r.koenig@googlemail.com> | 2018-04-12 21:31:19 +0200 |
---|---|---|
committer | Sven Eden <yamakuzure@gmx.net> | 2018-06-28 09:24:07 +0200 |
commit | 5d5d1495a3651d3c1b5b58a8d6eb2e9576b212fc (patch) | |
tree | c2549111457b09a70c7becab3c4fdb514c14527b | |
parent | 3edd79703a34628e984700b2dfa675accbf680b1 (diff) |
ISO-C compatibility: Remove empty initializer (#8713)
ISO-C doesn't allow empty initializers, so replace it by explicitly
initializing to zero.
Also add braces because x is a union and we initialize a subobject, so
a compiler might warn about suggesting braces. Shut that up.
(cherry picked from commit d579a56c397a1aeaa490032a9f7aabd82124f1c8)
-rw-r--r-- | src/systemd/sd-bus-vtable.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/systemd/sd-bus-vtable.h b/src/systemd/sd-bus-vtable.h index f6fb40fbb..425e38e2e 100644 --- a/src/systemd/sd-bus-vtable.h +++ b/src/systemd/sd-bus-vtable.h @@ -157,8 +157,7 @@ struct sd_bus_vtable { { \ .type = _SD_BUS_VTABLE_END, \ .flags = 0, \ - .x = { \ - }, \ + .x = { { 0 } }, \ } _SD_END_DECLARATIONS; |