From 5898ff5a9e7e1914afd1dc093151e445ab0102a8 Mon Sep 17 00:00:00 2001 From: Robert Kirkman Date: Wed, 29 Jul 2026 07:25:35 -0500 Subject: [PATCH] Add `-Wno-single-bit-bitfield-constant-conversion` to cflags Works around this error: ``` external/alsa-lib/src/pcm/pcm.c:2692:22: error: implicit truncation from 'int' to a one-bit wide bit-field changes value from 1 to -1 [-Werror,-Wsingle-bit-bitfield-constant-conversion] 2692 | (*pcmp)->compat = 1; | ^ ~ external/alsa-lib/src/pcm/pcm.c:2697:21: error: implicit truncation from 'int' to a one-bit wide bit-field changes value from 1 to -1 [-Werror,-Wsingle-bit-bitfield-constant-conversion] 2697 | (*pcmp)->compat = 1; | ^ ~ 2 errors generated. ``` --- Android.bp | 1 + 1 file changed, 1 insertion(+) diff --git a/Android.bp b/Android.bp index 47e7eb9e..0e891ef5 100644 --- a/Android.bp +++ b/Android.bp @@ -101,6 +101,7 @@ cc_library_shared { "-Wno-unused-const-variable", "-Wno-unused-parameter", "-Wno-unused-variable", + "-Wno-single-bit-bitfield-constant-conversion", ], shared_libs: [ "libdl",