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:
committed by
Zbigniew Jędrzejewski-Szmek
parent
b667d50d34
commit
d579a56c39
@@ -157,8 +157,7 @@ struct sd_bus_vtable {
|
||||
{ \
|
||||
.type = _SD_BUS_VTABLE_END, \
|
||||
.flags = 0, \
|
||||
.x = { \
|
||||
}, \
|
||||
.x = { { 0 } }, \
|
||||
}
|
||||
|
||||
_SD_END_DECLARATIONS;
|
||||
|
||||
Reference in New Issue
Block a user