]> 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]>
Wed, 30 Nov 2022 11:05:58 +0000 (12:05 +0100)
commit625657ada89f6ab9056e3f918edb7052d3067438
tree0a99cb6b9c0c5fc58fab387eb6be9ef7354c3cee
parent047714a6b020bc15a265b51578d247d19955b22a
CI: Introduce and use TCPDUMP_CMAKE_TAINTED

The new environment variable provides means to declare all or some libpcap
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.
build.sh
build_matrix.sh