]> git.proxmox.com Git - mirror_edk2.git/commitdiff
BaseTools LzmaCompress: Fix GCC warning misleading-indentation
authorLiming Gao <liming.gao@intel.com>
Tue, 9 Oct 2018 07:06:14 +0000 (15:06 +0800)
committerLaszlo Ersek <lersek@redhat.com>
Tue, 9 Oct 2018 09:47:25 +0000 (11:47 +0200)
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]

BaseTools/Source/C/LzmaCompress/Sdk/C/LzmaEnc.c

index bebe664d3e5bbbafc415876c01fcd7265232e828..e281716fee1bfb5eb236c9e38dbd7116f53be58b 100644 (file)
@@ -1464,7 +1464,9 @@ static unsigned GetOptimum(CLzmaEnc *p, UInt32 position)
         unsigned limit = p->numFastBytes + 1;\r
         if (limit > numAvailFull)\r
           limit = numAvailFull;\r
-        for (len = 3; len < limit && data[len] == data2[len]; len++);\r
+        for (len = 3; len < limit && data[len] == data2[len]; len++)\r
+        {\r
+        }\r
         \r
         {\r
           unsigned state2 = kLiteralNextStates[state];\r