OSDN Git Service

amdgpu: fix redefinition building errors
authorMauro Rossi <issor.oruam@gmail.com>
Sun, 28 Apr 2019 19:56:06 +0000 (21:56 +0200)
committerMauro Rossi <issor.oruam@gmail.com>
Sun, 28 Apr 2019 20:06:56 +0000 (22:06 +0200)
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

index 2a598c6..b9fce4f 100644 (file)
@@ -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 \