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

Commit 0f22e490 authored by Yi Kong's avatar Yi Kong
Browse files

incidentd: Fix Clang unused-but-set-variable warning

generated by gemini CLI.

Test: presubmit
Bug: 429520052
Flag: EXEMPT, code cleanup
Change-Id: I10b75cc3d63dc1d50e80151e93d3b44f48b66d1a
parent 7effddaa
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -642,6 +642,9 @@ void WorkDirectory::commit(const sp<ReportFile>& report, const string& pkg, cons

    // Load the envelope here inside the lock.
    err = report->loadEnvelope();
    if (err != NO_ERROR) {
        return;
    }

    report->removeReport(pkg, cls);

+0 −3
Original line number Diff line number Diff line
@@ -305,7 +305,6 @@ usage(FILE* out)
int
main(int argc, char** argv)
{
    enum { OUTPUT_TEXT, OUTPUT_PROTO } outputFormat = OUTPUT_TEXT;
    const char* inFilename = NULL;
    const char* outFilename = NULL;
    const char* reason = NULL;
@@ -318,7 +317,6 @@ main(int argc, char** argv)
    while ((opt = getopt(argc, argv, "bhi:o:r:s:twp:")) != -1) {
        switch (opt) {
            case 'b':
                outputFormat = OUTPUT_PROTO;
                break;
            case 'i':
                inFilename = optarg;
@@ -333,7 +331,6 @@ main(int argc, char** argv)
                adbSerial = optarg;
                break;
            case 't':
                outputFormat = OUTPUT_TEXT;
                break;
            case 'h':
                usage(stdout);