external/libdrm
修订版 | 2f25fb3ee52efca322c7862a7cbad0c98df838a7 (tree) |
---|---|
时间 | 2020-05-23 22:58:36 |
作者 | Mauro Rossi <issor.oruam@gmai...> |
Commiter | Mauro Rossi |
libsync.h: fix missing braces in (struct sync_merge_data) data
Fixes the following build error in IA-HardwareComposer when using clang:
In file included from external/IA-Hardware-Composer/common/core/hwclayer.cpp:18:
external/libdrm/libsync.h:88:33:
error: suggest braces around initialization of subobject [-Werror,-Wmissing-braces]
Using -Wno-missing-braces in external/IA-Hardware-Composer/common/core/Android.mk
LOCAL_CPPFLAGS did not solve the issue, this change in external/libdrm/libsync.h
was necessary
Signed-off-by: Mauro Rossi <issor.oruam@gmail.com>
@@ -85,7 +85,7 @@ static inline int sync_wait(int fd, int timeout) | ||
85 | 85 | |
86 | 86 | static inline int sync_merge(const char *name, int fd1, int fd2) |
87 | 87 | { |
88 | - struct sync_merge_data data = {0}; | |
88 | + struct sync_merge_data data = { {0} }; | |
89 | 89 | int ret; |
90 | 90 | |
91 | 91 | data.fd2 = fd2; |