platform_bootable_recovery/updater
Tianjie Xu fb08b015f2 Address the warnings in recovery code
The following warnngs generate when compile with WITH_TIDY=1

.../bootable/recovery/applypatch/imgdiff.cpp:968:7: warning: 'src_ranges' used after it was moved [bugprone-use-after-move]
      src_ranges.Clear();
      ^
.../bootable/recovery/applypatch/imgdiff.cpp:966:27: note: move occurred here
        split_src_ranges->push_back(std::move(src_ranges));

The logic itself seems correct since the class is meant to be cleared
after move. I feel the std::move in 966 is actually useful to call the
move constructor in RangeSet. So I just modify L968 to suppress the
warning.

Less important ones:
bootable/recovery/applypatch/applypatch_modes.cpp:79:34: warning: passing result of std::move() as a const reference argument; no move will actually happen [performance-move-const-arg]
bootable/recovery/applypatch/imgdiff.cpp:1038:30: warning: passing result of std::move() as a const reference argument; no move will actually happen [performance-move-const-arg]
bootable/recovery/applypatch/imgdiff.cpp:1054:48: warning: passing result of std::move() as a const reference argument; no move will actually happen [performance-move-const-arg]
bootable/recovery/updater/include/private/commands.h:310:16: warning: std::move of the variable 'patch' of the trivially-copyable type 'PatchInfo' has no effect; remove std::move() [performance-move-const-arg]
bootable/recovery/updater/install.cpp:663:43: warning: passing result of std::move() as a const reference argument; no move will actually happen [performance-move-const-arg]

Bug: 150955971
Test: build
Change-Id: Ieb75f0229c47d470d4f5ac93fab39c5698d3f914
2020-03-07 17:54:11 -08:00
..
include Address the warnings in recovery code 2020-03-07 17:54:11 -08:00
Android.bp Add libavb as a dependency 2020-02-28 11:41:31 -08:00
Android.mk Add libavb as a dependency 2020-02-28 11:41:31 -08:00
blockimg.cpp Some clean ups to the updater 2019-05-22 14:58:28 -07:00
build_info.cpp Simulator: add the argument to keep the updated images 2019-07-30 17:11:35 -07:00
commands.cpp updater: Add TransferList class. 2018-08-17 09:37:26 -07:00
dynamic_partitions.cpp Implement updater runtime for dynamic partitions 2019-06-24 12:46:28 -07:00
install.cpp Move mounts.cpp from libotautil into libupdater. 2019-10-01 12:13:04 -07:00
mounts.cpp Move mounts.cpp from libotautil into libupdater. 2019-10-01 12:13:04 -07:00
mounts.h Move mounts.cpp from libotautil into libupdater. 2019-10-01 12:13:04 -07:00
simulator_runtime.cpp Move mounts.cpp from libotautil into libupdater. 2019-10-01 12:13:04 -07:00
target_files.cpp Change the symlink to system_ext 2019-07-09 23:33:26 +00:00
update_simulator_main.cpp Simulator: add the argument to keep the updated images 2019-07-30 17:11:35 -07:00
updater.cpp Implement an update simulator to verify BB OTA packages on host 2019-05-28 15:18:25 -07:00
updater_main.cpp Run BORINGSSL_self_test() in updater_main 2019-10-05 17:06:48 -07:00
updater_runtime.cpp Move mounts.cpp from libotautil into libupdater. 2019-10-01 12:13:04 -07:00
updater_runtime_dynamic_partitions.cpp updater: Fix build for new CreateLogicalPartition signature. 2019-08-14 12:32:55 -07:00