summaryrefslogtreecommitdiffstats
path: root/BaseTools/Source
diff options
context:
space:
mode:
authorLiming Gao <liming.gao@intel.com>2018-10-09 15:06:14 +0800
committerLaszlo Ersek <lersek@redhat.com>2018-10-09 11:47:25 +0200
commit50431b9cc70cd5a084ebd85436bfdd6e2e4b89a7 (patch)
tree44535752e593310278ed9dfab8a3c015d5318fb5 /BaseTools/Source
parent39bbbc87593904a0080d6187ba6863ab565dd985 (diff)
downloadedk2-50431b9cc70cd5a084ebd85436bfdd6e2e4b89a7.tar.gz
edk2-50431b9cc70cd5a084ebd85436bfdd6e2e4b89a7.tar.bz2
edk2-50431b9cc70cd5a084ebd85436bfdd6e2e4b89a7.zip
BaseTools LzmaCompress: Fix GCC warning misleading-indentation
GCC 6 or above reports the warning misleading-indentation. This patch fixes it. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Liming Gao <liming.gao@intel.com> Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org> Acked-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Reviewed-by: Star Zeng <star.zeng@intel.com> Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=1234 [lersek@redhat.com: reference the BZ that got reported meanwhile]
Diffstat (limited to 'BaseTools/Source')
-rw-r--r--BaseTools/Source/C/LzmaCompress/Sdk/C/LzmaEnc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/BaseTools/Source/C/LzmaCompress/Sdk/C/LzmaEnc.c b/BaseTools/Source/C/LzmaCompress/Sdk/C/LzmaEnc.c
index bebe664d3e..e281716fee 100644
--- a/BaseTools/Source/C/LzmaCompress/Sdk/C/LzmaEnc.c
+++ b/BaseTools/Source/C/LzmaCompress/Sdk/C/LzmaEnc.c
@@ -1464,7 +1464,9 @@ static unsigned GetOptimum(CLzmaEnc *p, UInt32 position)
unsigned limit = p->numFastBytes + 1;
if (limit > numAvailFull)
limit = numAvailFull;
- for (len = 3; len < limit && data[len] == data2[len]; len++);
+ for (len = 3; len < limit && data[len] == data2[len]; len++)
+ {
+ }
{
unsigned state2 = kLiteralNextStates[state];