From ea8ceac80eea0a0411c5f54e5953c8d7ace586d7 Mon Sep 17 00:00:00 2001 From: jiayi Li Date: Tue, 28 Feb 2023 17:56:36 +0800 Subject: [PATCH] Fix compile warnings Remove variable 'policyCount' to avoid compile warning. Test: mmm frameworks/base/tools/incident_section_gen/, presubmit check. Change-Id: If16ad80691ea666060da1e4eaa4c26737bd96288 Signed-off-by: jiayi Li --- tools/incident_section_gen/main.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/tools/incident_section_gen/main.cpp b/tools/incident_section_gen/main.cpp index dd266ffe0f165..a2c1d6b4f7843 100644 --- a/tools/incident_section_gen/main.cpp +++ b/tools/incident_section_gen/main.cpp @@ -383,13 +383,11 @@ static bool generatePrivacyFlags(const Descriptor* descriptor, const Destination if (allDefaults) return false; emptyline(); - int policyCount = 0; printf("Privacy* %s[] = {\n", messageName.c_str()); for (size_t i=0; i