u-boot/lib/libavb
Sam Protsenko 8f684b5a8b libavb: Fix build warnings after updating the lib
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>
2019-10-31 07:22:53 -04:00
..
avb_chain_partition_descriptor.c libavb: Update SPDX tag style 2018-06-19 11:55:05 -04:00
avb_chain_partition_descriptor.h libavb: Update SPDX tag style 2018-06-19 11:55:05 -04:00
avb_cmdline.c libavb: Fix build warnings after updating the lib 2019-10-31 07:22:53 -04:00
avb_cmdline.h libavb: Update libavb to current AOSP master 2019-10-31 07:22:53 -04:00
avb_crypto.c libavb: Update SPDX tag style 2018-06-19 11:55:05 -04:00
avb_crypto.h libavb: Update SPDX tag style 2018-06-19 11:55:05 -04:00
avb_descriptor.c libavb: Update libavb to current AOSP master 2019-10-31 07:22:53 -04:00
avb_descriptor.h libavb: Update SPDX tag style 2018-06-19 11:55:05 -04:00
avb_footer.c libavb: Update SPDX tag style 2018-06-19 11:55:05 -04:00
avb_footer.h libavb: Update SPDX tag style 2018-06-19 11:55:05 -04:00
avb_hash_descriptor.c libavb: Update SPDX tag style 2018-06-19 11:55:05 -04:00
avb_hash_descriptor.h libavb: Update SPDX tag style 2018-06-19 11:55:05 -04:00
avb_hashtree_descriptor.c libavb: Update SPDX tag style 2018-06-19 11:55:05 -04:00
avb_hashtree_descriptor.h libavb: Update SPDX tag style 2018-06-19 11:55:05 -04:00
avb_kernel_cmdline_descriptor.c libavb: Update SPDX tag style 2018-06-19 11:55:05 -04:00
avb_kernel_cmdline_descriptor.h libavb: Update SPDX tag style 2018-06-19 11:55:05 -04:00
avb_ops.h libavb: Update libavb to current AOSP master 2019-10-31 07:22:53 -04:00
avb_property_descriptor.c libavb: Update SPDX tag style 2018-06-19 11:55:05 -04:00
avb_property_descriptor.h libavb: Update SPDX tag style 2018-06-19 11:55:05 -04:00
avb_rsa.c libavb: Update SPDX tag style 2018-06-19 11:55:05 -04:00
avb_rsa.h libavb: Update SPDX tag style 2018-06-19 11:55:05 -04:00
avb_sha.h libavb: Update libavb to current AOSP master 2019-10-31 07:22:53 -04:00
avb_sha256.c libavb: Update libavb to current AOSP master 2019-10-31 07:22:53 -04:00
avb_sha512.c libavb: Update libavb to current AOSP master 2019-10-31 07:22:53 -04:00
avb_slot_verify.c libavb: Fix build warnings after updating the lib 2019-10-31 07:22:53 -04:00
avb_slot_verify.h libavb: Update libavb to current AOSP master 2019-10-31 07:22:53 -04:00
avb_sysdeps.h libavb: Update libavb to current AOSP master 2019-10-31 07:22:53 -04:00
avb_sysdeps_posix.c libavb: Update libavb to current AOSP master 2019-10-31 07:22:53 -04:00
avb_util.c libavb: Update SPDX tag style 2018-06-19 11:55:05 -04:00
avb_util.h libavb: Update SPDX tag style 2018-06-19 11:55:05 -04:00
avb_vbmeta_image.c libavb: Update libavb to current AOSP master 2019-10-31 07:22:53 -04:00
avb_vbmeta_image.h libavb: Update SPDX tag style 2018-06-19 11:55:05 -04:00
avb_version.c libavb: Update SPDX tag style 2018-06-19 11:55:05 -04:00
avb_version.h libavb: Update SPDX tag style 2018-06-19 11:55:05 -04:00
libavb.h libavb: Update SPDX tag style 2018-06-19 11:55:05 -04:00
Makefile libavb: Update SPDX tag style 2018-06-19 11:55:05 -04:00