[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] lzma: fix compilation error under clang-10
From: |
Daniel Kiper |
Subject: |
Re: [PATCH] lzma: fix compilation error under clang-10 |
Date: |
Tue, 27 Oct 2020 22:02:36 +0100 |
User-agent: |
NeoMutt/20170113 (1.7.2) |
On Mon, Jul 20, 2020 at 05:07:49PM +1000, Daniel Axtens wrote:
> 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>
Daniel
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [PATCH] lzma: fix compilation error under clang-10,
Daniel Kiper <=