From 13f5b3829cac313c73bae000e8ec7e9e20acdaac Mon Sep 17 00:00:00 2001 From: Jing Mike Date: Sat, 25 Feb 2023 16:14:53 +0800 Subject: [PATCH] Fix compile warnings 1. Remove unused variable line_no to avoid compile warnings. 2. The variables dimension_value_deprecated/fraction_value_deprecated had been introduced in the year of 2018 and will be removed later. But now the related information is still used by external modules cronet and angle. So we use compile flag to suppress the compile warnings. Bug: n/a Test: mmm frameworks/base/tools/aapt2, presubmit check. Merged-In: Iaf1c44409a2bdeff36af5a05df718be4b32caa65 Change-Id: Iaf1c44409a2bdeff36af5a05df718be4b32caa65 Signed-off-by: Jing Mike --- tools/aapt2/Android.bp | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/aapt2/Android.bp b/tools/aapt2/Android.bp index 0d6dc3522d24e..7323b0f4c14f3 100644 --- a/tools/aapt2/Android.bp +++ b/tools/aapt2/Android.bp @@ -47,6 +47,7 @@ cc_defaults { "-Wno-missing-field-initializers", "-fno-exceptions", "-fno-rtti", + "-Wno-deprecated-declarations", ], target: { windows: {