]> git.ipfire.org Git - thirdparty/grub.git/commit
lzma: Fix compilation error under clang 10
authorDaniel Axtens <dja@axtens.net>
Mon, 20 Jul 2020 07:07:49 +0000 (17:07 +1000)
committerDaniel Kiper <daniel.kiper@oracle.com>
Fri, 30 Oct 2020 20:53:00 +0000 (21:53 +0100)
commit59c8e9fb533536739098498b11fe33635845b4ca
tree5e2f6dc2e305b0fb512cd6ee4acbc11ead7fd969
parent2b106a2a4e03531e4f21fa4062b92c7139328f83
lzma: Fix compilation error under clang 10

Compiling under clang 10 gives:

grub-core/lib/LzmaEnc.c:1362:9: error: misleading indentation; statement is not part of the previous 'if' [-Werror,-Wmisleading-indentation]
        {
        ^
grub-core/lib/LzmaEnc.c:1358:7: note: previous statement is here
      if (repIndex == 0)
      ^
1 error generated.

It's not really that unclear in context: there's a commented-out
if-statement. But tweak the alignment anyway so that clang is happy.

Signed-off-by: Daniel Axtens <dja@axtens.net>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
grub-core/lib/LzmaEnc.c