yet another strange message from LLVM/Clang on FreeBSD 13 i686

Hans Åberg haberg-1 at telia.com
Mon Aug 24 08:52:09 UTC 2020


> On 24 Aug 2020, at 10:46, Torbjörn Granlund <tg at gmplib.org> wrote:
> 
> Hans Åberg <haberg-1 at telia.com> writes:
> 
>  Clang has a pedagogical approach, intended to make it easy for newbies
>  which have not bothered learning C/C++, and breaks the rule to not
>  issue diagnostics for perfectly legal code unless called for.
> 
>  - - -
> 
>  For your case, you might add
>  #pragma clang diagnostic ignored "-Wkeyword-macro"
> 
> Modifying the code of a non-trivial project in order to placate clang is
> a wild goose chase; with every release, the subset of the language C
> clang accepts gets smaller.

Right. One way to put it is that the developers of Clang want the languages C/C++ to be something they are not.



More information about the gmp-discuss mailing list