diff options
author | Julius Werner <jwerner@chromium.org> | 2019-08-08 11:02:44 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2019-08-09 22:07:47 +0000 |
commit | a5afd01feb0b4b45adbcd8ab38ab8a2ef2a2ef67 (patch) | |
tree | 02d909ebfd50308a200a6efd96c9b9fcfd061384 /utility | |
parent | 703e980a9a66f70b75d85427bd76a65a9794bc15 (diff) | |
download | vboot-a5afd01feb0b4b45adbcd8ab38ab8a2ef2a2ef67.tar.gz |
Minor fixes for clang
We want to switch over from GCC to clang for userspace utilities. It
comes with a new default warning that we happen to trigger, so silence
that. It also comes with a dumb reachability checker that can't tell
when the use of one variable is guarded by another, so need to
unnecessarily initialize a variable in load_kernel_test.
BRANCH=none
BUG=chromium:991812
TEST=Built for Kevin with clang.
Change-Id: If9fc391ade0243aea1cae8d682e31390dc082f77
Signed-off-by: Julius Werner <jwerner@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/1744667
Reviewed-by: Manoj Gupta <manojgupta@chromium.org>
Reviewed-by: Joel Kitching <kitching@chromium.org>
Diffstat (limited to 'utility')
-rw-r--r-- | utility/load_kernel_test.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utility/load_kernel_test.c b/utility/load_kernel_test.c index 2fbf0c54..fe73fa8b 100644 --- a/utility/load_kernel_test.c +++ b/utility/load_kernel_test.c @@ -82,7 +82,7 @@ vb2_error_t VbExDiskWrite(VbExDiskHandle_t handle, uint64_t lba_start, int main(int argc, char* argv[]) { const char* image_name; - uint64_t key_size; + uint64_t key_size = 0; uint8_t* key_blob = NULL; VbSharedDataHeader* shared; struct vb2_gbb_header* gbb; |