From 6c315f677ef1b59958a9273188e05e99d8d8fc92 Mon Sep 17 00:00:00 2001 From: Mauro Rossi Date: Sun, 28 Apr 2019 21:56:06 +0200 Subject: [PATCH] amdgpu: fix redefinition building errors Fixes the following building errors: In file included from external/minigbm/amdgpu.c:16: In file included from external/minigbm/dri.h:13: external/mesa/include/GL/internal/dri_interface.h:46:22: error: redefinition of typedef 'drm_context_t' is a C11 feature [-Werror,-Wtypedef-redefinition] typedef unsigned int drm_context_t; ^ external/libdrm/include/drm/drm.h:77:22: note: previous definition is here typedef unsigned int drm_context_t; ^ --- Android.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Android.mk b/Android.mk index 2a598c6..b9fce4f 100644 --- a/Android.mk +++ b/Android.mk @@ -44,7 +44,7 @@ LOCAL_CPPFLAGS += -std=c++14 -D_GNU_SOURCE=1 -D_FILE_OFFSET_BITS=64 \ LOCAL_CFLAGS += -Wall -Wsign-compare -Wpointer-arith \ -Wcast-qual -Wcast-align \ -D_GNU_SOURCE=1 -D_FILE_OFFSET_BITS=64 \ - -Wno-unused-value -Wno-unused-parameter + -Wno-unused-value -Wno-unused-parameter -Wno-typedef-redefinition LOCAL_C_INCLUDES += frameworks/native/libs/nativebase/include \ frameworks/native/libs/nativewindow/include \ -- 2.11.0