From bdfa7e3dde47755a933b7afe64df0206274eca3e Mon Sep 17 00:00:00 2001 From: Aditya Kumar Date: Thu, 27 Feb 2025 14:20:26 -0800 Subject: Disable -Wcast-function-type-mismatch Code owners should fix this. ``` ...re/jni/AndroidRuntime.cpp:1499:25: error: cast from 'void (*)(void *)' to 'android_thread_func_t' (aka 'int (*)(void *)') converts to incompatible function type [-Werror,-Wcast-function-type-mismatch] 1499 | javaCreateThreadEtc((android_thread_func_t) start, arg, name, ``` Bug: b/353528991 Flag: EXEMPT b/353528991 Test: m checkbuild Change-Id: Id9645a6d25c030912762992ac6141ab6dffe9f61 --- core/jni/Android.bp | 1 + 1 file changed, 1 insertion(+) diff --git a/core/jni/Android.bp b/core/jni/Android.bp index 748c5b48534f..bfa0aa9638a9 100644 --- a/core/jni/Android.bp +++ b/core/jni/Android.bp @@ -31,6 +31,7 @@ cc_library_shared_for_libandroid_runtime { name: "libandroid_runtime", host_supported: true, cflags: [ + "-Wno-cast-function-type-mismatch", "-Wno-unused-parameter", "-Wno-non-virtual-dtor", "-Wno-maybe-uninitialized", -- cgit v1.2.3-59-g8ed1b