[tlbuild] [PATCH 1/1] Fix -Wimplicit-int, -Wstrict-prototypes

Bruno Haible bruno at clisp.org
Sun Nov 6 23:44:57 CET 2022


Karl Berry wrote:
>     Clang 16 makes -Wimplicit-int and -Wimplicit-function-declarations
>     error out by default, and -Wstrict-prototypes is futureproofing for C23.
> 
> I suppose it is not up to you or me, but I have to ask, wouldn't it make
> more sense to undo clang's new pickiness instead of endlessly placating
> it?  Aside from it being a total waste of everyone's time, these changes
> have a significant chance of creating gratuitous failures on older
> systems with imperfect headers and/or compilers, i.e., all of them.

I disagree. Adding a return type or (void) parameters to a 'main' declaration,
or adding a '#include <stdlib.h>' has absolutely 0 risk. <stdlib.h> is standard
since ca. SunOS 4 (in the 1990ies).

> This constant "improving" by standards committees and/or compiler
> writers of things that don't need improving is agonizing.

Now imagine if the majority of the code was written in C++ or Python, instead
of C. These other languages evolve 10 times faster...

Bruno





More information about the tlbuild mailing list.