OSDN Git Service

Fix redefinition building error (blueprint)
authorMauro Rossi <issor.oruam@gmail.com>
Sat, 25 Jan 2020 16:34:16 +0000 (17:34 +0100)
committerMauro Rossi <issor.oruam@gmail.com>
Sat, 25 Jan 2020 20:35:42 +0000 (21:35 +0100)
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.bp

index a692f01..30d3a76 100644 (file)
@@ -59,6 +59,7 @@ cc_defaults {
         "-Wsign-compare",
         "-Wpointer-arith",
         "-Wcast-align",
+        "-Wno-typedef-redefinition",
         "-Wno-unused-parameter",
     ],
     cppflags: ["-std=c++14"],