mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-05 02:51:00 +00:00
8f684b5a8b
After updating libavb to most recent version from AOSP/master, two new warnings appear: Warning #1: lib/libavb/avb_cmdline.c: In function 'avb_append_options': lib/libavb/avb_cmdline.c:365:15: warning: 'dm_verity_mode' may be used uninitialized in this function [-Wmaybe-uninitialized] new_ret = avb_replace( ^~~~~~~~~~~~ slot_data->cmdline, "$(ANDROID_VERITY_MODE)", dm_verity_mode); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ lib/libavb/avb_cmdline.c:374:8: warning: 'verity_mode' may be used uninitialized in this function [-Wmaybe-uninitialized] if (!cmdline_append_option( ^~~~~~~~~~~~~~~~~~~~~~ slot_data, "androidboot.veritymode", verity_mode)) { ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Warning #2: lib/libavb/avb_slot_verify.c: In function 'avb_slot_verify': lib/libavb/avb_slot_verify.c:1349:23: warning: 'ret' may be used uninitialized in this function [-Wmaybe-uninitialized] AvbSlotVerifyResult ret; ^~~ Fix those by providing default return values to affected functions. Signed-off-by: Sam Protsenko <semen.protsenko@linaro.org> |
||
---|---|---|
.. | ||
avb_chain_partition_descriptor.c | ||
avb_chain_partition_descriptor.h | ||
avb_cmdline.c | ||
avb_cmdline.h | ||
avb_crypto.c | ||
avb_crypto.h | ||
avb_descriptor.c | ||
avb_descriptor.h | ||
avb_footer.c | ||
avb_footer.h | ||
avb_hash_descriptor.c | ||
avb_hash_descriptor.h | ||
avb_hashtree_descriptor.c | ||
avb_hashtree_descriptor.h | ||
avb_kernel_cmdline_descriptor.c | ||
avb_kernel_cmdline_descriptor.h | ||
avb_ops.h | ||
avb_property_descriptor.c | ||
avb_property_descriptor.h | ||
avb_rsa.c | ||
avb_rsa.h | ||
avb_sha.h | ||
avb_sha256.c | ||
avb_sha512.c | ||
avb_slot_verify.c | ||
avb_slot_verify.h | ||
avb_sysdeps.h | ||
avb_sysdeps_posix.c | ||
avb_util.c | ||
avb_util.h | ||
avb_vbmeta_image.c | ||
avb_vbmeta_image.h | ||
avb_version.c | ||
avb_version.h | ||
libavb.h | ||
Makefile |