OSDN Git Service

libsync.h: fix missing braces in (struct sync_merge_data) data oreo-x86 android-x86-8.1-r6 android-x86-9.0-r1 android-x86-9.0-r2
authorMauro Rossi <issor.oruam@gmail.com>
Sun, 7 Jul 2019 20:25:52 +0000 (22:25 +0200)
committerMauro Rossi <issor.oruam@gmail.com>
Thu, 17 Oct 2019 18:11:23 +0000 (20:11 +0200)
commit8eb2828293560c6a770ff6bca9c69f0cbd9e1656
tree3c567427cc5b7041e94b16f241ad91b96bebdcb6
parent7b98c6bd95ba2283f4374b97eea13dbb0b146263
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>
libsync.h