From 072e8bb17efd87ce173e2b768d22adc881ab26c8 Mon Sep 17 00:00:00 2001 From: Denis 'GNUtoo' Carikli Date: Mon, 12 Oct 2020 18:09:21 +0200 Subject: Make it compile under Android 10 In build/make with at least Android 9 and 10, many compilation flags that turns compilation warnings into errors (like -Werror) are passed to the clang compiler. Here it would make no sense to maintain ourselves fixes to convert all the evdev source code to compile with such flags, so until someone fixes that in the upstream evdev project, it's better to avoid such compilation flags. Signed-off-by: Denis 'GNUtoo' Carikli --- Android.mk | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'Android.mk') diff --git a/Android.mk b/Android.mk index e541221..831f2cb 100644 --- a/Android.mk +++ b/Android.mk @@ -2,6 +2,17 @@ LOCAL_PATH:= $(call my-dir) include $(CLEAR_VARS) +# The LOCAL_CFLAGS are imported from Mesa3d's +# Android.common.mk +LOCAL_CFLAGS += \ + -Wno-error \ + -Werror=incompatible-pointer-types \ + -Wno-unused-parameter \ + -Wno-pointer-arith \ + -Wno-missing-field-initializers \ + -Wno-initializer-overrides \ + -Wno-mismatched-tags \ + LOCAL_C_INCLUDES := \ bionic/libc/include/ -- cgit v1.2.3