commit | d7e64727b3295d8a4561d6e398e38e7715d7f664 | [log] [tgz] |
---|---|---|
author | Chih-Hung Hsieh <chh@google.com> | Fri Dec 23 00:19:03 2022 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Fri Dec 23 00:19:03 2022 +0000 |
tree | a17a2fdbf4bd40549192815d49858ffa1e83663e | |
parent | c38f06cc691dac467d19a9eb854238404f6aa003 [diff] | |
parent | 9f4fc0f7a445064350d37abdd5416a8730ec78ed [diff] |
Suppress uninitialized value warnings. am: 6e4f345e8a am: 9f4fc0f7a4 Original change: https://android-review.googlesource.com/c/platform/system/update_engine/+/2365953 Change-Id: I94a79e7a870fe28f87b3818acb6b8436cb0c2522 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
diff --git a/aosp/update_attempter_android.cc b/aosp/update_attempter_android.cc index eda82e2..617edab 100644 --- a/aosp/update_attempter_android.cc +++ b/aosp/update_attempter_android.cc
@@ -324,6 +324,8 @@ } else { #ifdef _UE_SIDELOAD LOG(FATAL) << "Unsupported sideload URI: " << payload_url; + return false; // NOLINT, unreached but analyzer might not know. + // Suppress warnings about null 'fetcher' after this. #else LibcurlHttpFetcher* libcurl_fetcher = new LibcurlHttpFetcher(hardware_); if (!headers[kPayloadDownloadRetry].empty()) {