Hello,

On Sat, 6 Mar 2021 at 21:25, Bertrand Jacquin <[email protected]> wrote:
>
> gcc returns non zero code if an option is not supported (tested
> from 6.5 to 10.2).
>
>   $ gcc -Wfoobar -E -xc - -o /dev/null < /dev/null > /dev/null 2>&1 ; echo $?
>   1
>
> clang always return 0 if an option in not recognized unless
> -Werror is also passed, preventing a correct probing of options
> supported by the compiler (tested with clang 6.0.1 to 11.1.0)

-Werror is more than just "-Wunknown-warning-option" on clang.
-Werror/ERR is specifically optional in the Makefile.

If we want to change the haproxy build-system to do -Werror from now
on we need a) discuss it and b) fix it all up. We can't hardcode
-Werror and at the same time claim that it's an optional parameter.




Lukas

Reply via email to