From 3e3403d96d6c5ee27f6c53f885a99c34230ca40a Mon Sep 17 00:00:00 2001 From: Eric Biggers Date: Tue, 15 Jun 2021 21:48:08 -0700 Subject: [PATCH] AOSP: Use -Wno-pointer-arith in Android build Some "arithmetic on a void pointer is a GNU extension" warnings were introduced into upstream e2fsprogs, but they are of questionable value, so disable them for now. Change-Id: I19e99382e9434828927c1b8287b91f3333110151 From AOSP commit: f203c38fd43dc384cedfcaeb155771a15906022f --- Android.bp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Android.bp b/Android.bp index f9c3b6f..fa2d015 100644 --- a/Android.bp +++ b/Android.bp @@ -42,7 +42,7 @@ license { cc_defaults { name: "e2fsprogs-defaults", - cflags: ["-Wall", "-Werror"], + cflags: ["-Wall", "-Werror", "-Wno-pointer-arith"], target: { darwin: { // Still has unfixed/unsuppressed warnings. -- 1.8.3.1