]> The Tcpdump Group git mirrors - tcpdump/commit
CI: Introduce and use TCPDUMP_CMAKE_TAINTED
authorFrancois-Xavier Le Bail <[email protected]>
Wed, 30 Nov 2022 11:05:07 +0000 (12:05 +0100)
committerFrancois-Xavier Le Bail <[email protected]>
Sun, 1 Jan 2023 11:16:26 +0000 (12:16 +0100)
commitd9acf8cb11e30b7d7744cb0dd05e628109cb73f0
tree3539329534de8c1a0f84c0b96fce09acc5d6dd3f
parent3377199a016e21739adc89a0698a2629ebf8bd24
CI: Introduce and use TCPDUMP_CMAKE_TAINTED

The new environment variable provides means to declare all or some tcpdump
cmake run of a specific environment (CI or a working copy) as tainted.
Add explicit conditions to exempt the cmake run that emit warnings
now and request the compiler to treat warnings as errors *iff* the cmake
run is not tainted. This way if a cmake run that is warning-free now
degrades later, CI will fail it.

The treat warnings as errors cmake option used is:
-Werror=dev
       Make developer warnings errors.

       Make  warnings  that  are  meant  for  the  author of the CMake-
       Lists.txt files errors. By default this will also turn on depre-
       cated warnings as errors.

(cherry picked from commit 625657ada89f6ab9056e3f918edb7052d3067438)
build.sh
build_matrix.sh