[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Problem building Emacs b1fe27d with clang/LLVM 10.x
From: |
Paul Eggert |
Subject: |
Re: Problem building Emacs b1fe27d with clang/LLVM 10.x |
Date: |
Sat, 23 May 2020 12:58:13 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 |
On 5/23/20 12:23 PM, Ashish SHUKLA wrote:
> error: fallthrough annotation does not directly precede switch label
Argh. This appears to be fallout from the C2X draft spec for fallthrough, which
is more restrictive than GCC's (or than Clang 9's, apparently).
> - FALLTHROUGH;
> resetfvdef:
That patch isn't right, as it causes GCC to warn about the missing FALLTHROUGH.
I installed the attached patch instead, as it should be portable to C2X. Please
give it a try, and thanks for reporting the bug.
0001-Port-etags-FALLTHROUGH-to-C2X.patch
Description: Text Data