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

generated by gemini CLI.

Test: presubmit
Bug: 429520052
Flag: EXEMPT, code cleanup
Change-Id: I10b75cc3d63dc1d50e80151e93d3b44f48b66d1a
diff --git a/cmds/incidentd/src/WorkDirectory.cpp b/cmds/incidentd/src/WorkDirectory.cpp
index c8d2e0e..5c5d5f4 100644
--- a/cmds/incidentd/src/WorkDirectory.cpp
+++ b/cmds/incidentd/src/WorkDirectory.cpp
@@ -642,6 +642,9 @@
 
     // Load the envelope here inside the lock.
     err = report->loadEnvelope();
+    if (err != NO_ERROR) {
+        return;
+    }
 
     report->removeReport(pkg, cls);
 
diff --git a/tools/incident_report/main.cpp b/tools/incident_report/main.cpp
index 974166a..a7d3261 100644
--- a/tools/incident_report/main.cpp
+++ b/tools/incident_report/main.cpp
@@ -305,7 +305,6 @@
 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 @@
     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 @@
                 adbSerial = optarg;
                 break;
             case 't':
-                outputFormat = OUTPUT_TEXT;
                 break;
             case 'h':
                 usage(stdout);