[PATCH libdrm 5/5] android: silence ~550 warnings
Emil Velikov
emil.l.velikov at gmail.com
Sun Jan 22 18:34:43 UTC 2017
Analogous to the autoconf build add the following to the build
-Wno-unused-parameter
-Wno-missing-field-initializers
Cc: Chih-Wei Huang <cwhuang at android-x86.org>
Cc: Rob Herring <robh at kernel.org>
Signed-off-by: Emil Velikov <emil.l.velikov at gmail.com>
---
According to Rob's jenkins build there's still some 26 libdrm warnings
libdrm most of which duplicates - can we fix those properly ?
There might be a lot more since it builds only libdrm and the freedreno,
intel and radeon DSO.
Rob, with this patch/series the total warnings reported drops by half ;-)
---
Android.common.mk | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/Android.common.mk b/Android.common.mk
index 71f14ec3..f57b8d37 100644
--- a/Android.common.mk
+++ b/Android.common.mk
@@ -3,6 +3,10 @@ LOCAL_CFLAGS += \
-DHAVE_VISIBILITY=1 \
-DHAVE_LIBDRM_ATOMIC_PRIMITIVES=1
+LOCAL_CFLAGS += \
+ -Wno-unused-parameter \
+ -Wno-missing-field-initializers
+
# Quiet down the build system and remove any .h files from the sources
LOCAL_SRC_FILES := $(patsubst %.h, , $(LOCAL_SRC_FILES))
LOCAL_EXPORT_C_INCLUDE_DIRS += $(LOCAL_PATH)
--
2.11.0
More information about the dri-devel
mailing list