Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ca189f4d authored by Chih-Hung Hsieh's avatar Chih-Hung Hsieh
Browse files

Use -Werror in frameworks/base/tools/stats_log_api_gen

* Remove unused local variables.

Bug: 66996870
Test: build with WITH_TIDY=1
Change-Id: I24b33facec0bfd73eb5c2a9759b42f9c98ee285f
parent efcd7687
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -23,6 +23,10 @@ cc_binary_host {
        "Collation.cpp",
        "main.cpp",
    ],
    cflags: [
        "-Wall",
        "-Werror",
    ],

    shared_libs: [
        "libstats_proto_host",
@@ -90,6 +94,10 @@ cc_library_shared {
    name: "libstatslog",
    generated_sources: ["statslog.cpp"],
    generated_headers: ["statslog.h"],
    cflags: [
        "-Wall",
        "-Werror",
    ],
    export_generated_headers: ["statslog.h"],
    shared_libs: [
        "liblog",
+0 −8
Original line number Diff line number Diff line
@@ -96,8 +96,6 @@ java_type_name(java_type_t type)
static int
write_stats_log_cpp(FILE* out, const Atoms& atoms)
{
    int errorCount;

    // Print prelude
    fprintf(out, "// This file is autogenerated\n");
    fprintf(out, "\n");
@@ -157,8 +155,6 @@ write_stats_log_cpp(FILE* out, const Atoms& atoms)
static int
write_stats_log_header(FILE* out, const Atoms& atoms)
{
    int errorCount;

    // Print prelude
    fprintf(out, "// This file is autogenerated\n");
    fprintf(out, "\n");
@@ -229,8 +225,6 @@ write_stats_log_header(FILE* out, const Atoms& atoms)
static int
write_stats_log_java(FILE* out, const Atoms& atoms)
{
    int errorCount;

    // Print prelude
    fprintf(out, "// This file is autogenerated\n");
    fprintf(out, "\n");
@@ -395,8 +389,6 @@ jni_function_signature(const vector<java_type_t>& signature)
static int
write_stats_log_jni(FILE* out, const Atoms& atoms)
{
    int errorCount;

    // Print prelude
    fprintf(out, "// This file is autogenerated\n");
    fprintf(out, "\n");