From 3b56e56a43864ba584c455365b2108ff2ceaed5a Mon Sep 17 00:00:00 2001 From: Peter Jones Date: Wed, 18 Oct 2017 15:05:20 -0400 Subject: shim: Mitigate a minor clang-analyzer complaint. Clang believes "SumOfBytesHashed" is never used, because the thing that uses that computed value is #if 0'd currently. Just swizzle the #if's so that line is also not compiled. Signed-off-by: Peter Jones --- shim.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'shim.c') diff --git a/shim.c b/shim.c index 02fde5c6..c18b81db 100644 --- a/shim.c +++ b/shim.c @@ -916,10 +916,12 @@ static EFI_STATUS generate_hash (char *data, unsigned int datasize_in, goto done; } +#if 1 + } +#else // we have to migrate to doing this later :/ SumOfBytesHashed += hashsize; } -#if 0 // we have to migrate to doing this later :/ /* Hash all remaining data */ if (datasize > SumOfBytesHashed) { hashbase = data + SumOfBytesHashed; -- cgit v1.2.3