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.
This commit is contained in:
Leonard
2018-04-12 21:31:19 +02:00
committed by Zbigniew Jędrzejewski-Szmek
parent b667d50d34
commit d579a56c39
+1 -2
View File
@@ -157,8 +157,7 @@ struct sd_bus_vtable {
{ \
.type = _SD_BUS_VTABLE_END, \
.flags = 0, \
.x = { \
}, \
.x = { { 0 } }, \
}
_SD_END_DECLARATIONS;