chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3edd797
)
ISO-C compatibility: Remove empty initializer (#8713)
author
Leonard
<leonard.r.koenig@googlemail.com>
Thu, 12 Apr 2018 19:31:19 +0000
(21:31 +0200)
committer
Sven Eden
<yamakuzure@gmx.net>
Thu, 28 Jun 2018 07:24:07 +0000
(09:24 +0200)
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
)
src/systemd/sd-bus-vtable.h
patch
|
blob
|
history
diff --git
a/src/systemd/sd-bus-vtable.h
b/src/systemd/sd-bus-vtable.h
index f6fb40fbb532629c21745c36f4a7bb23f0538032..425e38e2e250ea891981ea3bb75525ec7ff9615b 100644
(file)
--- 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;