clang warning about mini-gmp.c when used in Emacs

Marc Glisse marc.glisse at inria.fr
Tue Apr 19 20:43:28 CEST 2022


On Tue, 19 Apr 2022, Niels Möller wrote:

> I've always liked gcc -Wall. I think it adheres to its design to warn
> only about things that (1) are prone to be errors, and (2) in the case
> that they aren't errors, are easy to clarify in a way that makes the
> compiler stop warning about them.

That stopped being the case some years ago, sadly. The first offender was 
-Wmaybe-uninitialized, and it was joined by others recently.

> Use of -Werror, on the other hand, is something that I can't generally
> recommend. Imposing it on library users by default is certainly a bad
> idea. Using it when compiling tests that are part of configure is almost
> sure to break.

On the other hand, at least in the past, configure scripts often contained 
C code that was much uglier than necessary. If people compiling with 
-Werror helped clean that up, I will thank them for that ;-) (without 
using -Werror myself).

-- 
Marc Glisse


More information about the gmp-bugs mailing list