Android-x86
Fork
Donation

  • R/O
  • HTTP
  • SSH
  • HTTPS

external-libdrm: 提交

external/libdrm


Commit MetaInfo

修订版2f25fb3ee52efca322c7862a7cbad0c98df838a7 (tree)
时间2020-05-23 22:58:36
作者Mauro 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>

更改概述

差异

--- 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