Android-x86
Fork
Donation

  • R/O
  • HTTP
  • SSH
  • HTTPS

external-libdrm: Commit

external/libdrm


Commit MetaInfo

Revision8eb2828293560c6a770ff6bca9c69f0cbd9e1656 (tree)
Time2019-10-18 03:11:23
AuthorMauro Rossi <issor.oruam@gmai...>
CommiterMauro Rossi

Log Message

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]

struct sync_merge_data data = {0};

{}

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>

Change Summary

Incremental Difference

--- a/libsync.h
+++ b/libsync.h
@@ -85,7 +85,7 @@ static inline int sync_wait(int fd, int timeout)
8585
8686 static inline int sync_merge(const char *name, int fd1, int fd2)
8787 {
88- struct sync_merge_data data = {0};
88+ struct sync_merge_data data = { {0} };
8989 int ret;
9090
9191 data.fd2 = fd2;
Show on old repository browser