diff options
author | Patrick Georgi <pgeorgi@google.com> | 2020-01-29 21:01:27 +0100 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2020-02-01 19:51:31 +0000 |
commit | a58e5034426f657491550ccc6d6d2423e4cdb45f (patch) | |
tree | 5ec5ddd0355384a370b826028895b4fd26af1cb8 /util/cbfstool/lzma/C | |
parent | 60a4e952e9df5206d3b5acc7e063057d9bd2aed5 (diff) | |
download | coreboot-a58e5034426f657491550ccc6d6d2423e4cdb45f.tar.xz |
util/cbfstool/lzma: Make clang-11+'s indentation checker happy
Newest clang compilers warn about "misleading indentation", and because
warnings-are-errors in our builds, that breaks the build.
The lzma code base is vendored in, so we might just have to update it,
but that's a bigger effort than just removing a couple of spaces (the
coding style of the file is horrible, but I will only change it as much
as the compilers ask for).
BUG=chromium:1039526
Change-Id: I6b9d7a760380081af996ea5412d7e3e688048bfd
Signed-off-by: Patrick Georgi <pgeorgi@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/38637
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Idwer Vollering <vidwer@gmail.com>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Diffstat (limited to 'util/cbfstool/lzma/C')
-rw-r--r-- | util/cbfstool/lzma/C/LzmaEnc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/util/cbfstool/lzma/C/LzmaEnc.c b/util/cbfstool/lzma/C/LzmaEnc.c index e7d14c59a8..f2a832059a 100644 --- a/util/cbfstool/lzma/C/LzmaEnc.c +++ b/util/cbfstool/lzma/C/LzmaEnc.c @@ -1246,7 +1246,7 @@ static uint32_t GetOptimum(struct CLzmaEnc *p, uint32_t position, uint32_t *back startLen = lenTest + 1; /* if (_maxMode) */ - { + { uint32_t lenTest2 = lenTest + 1; uint32_t limit = lenTest2 + p->numFastuint8_ts; uint32_t nextRepMatchPrice; @@ -1290,7 +1290,7 @@ static uint32_t GetOptimum(struct CLzmaEnc *p, uint32_t position, uint32_t *back } } } - } + } } } /* for (uint32_t lenTest = 2; lenTest <= newLen; lenTest++) */ |