diff options
author | David Heidelberg <david.heidelberg@collabora.com> | 2022-08-31 11:33:21 +0200 |
---|---|---|
committer | David Heidelberg <david.heidelberg@collabora.com> | 2022-12-08 21:35:00 +0100 |
commit | 9954d0a111d52c185f76b7d9c8bd54eca962b967 (patch) | |
tree | 762c7cf316b0b0a04a1111a50ff1bba713a5879f | |
parent | 88f6f7724fd45e644c2aa53705db6d7eccf0bf9e (diff) |
ci: process warnings as errors
Few exception has to be made.
The long-term goal would be to enable -Werror in the whole codebase.
This could catch the issue in https://gitlab.freedesktop.org/mesa/piglit/-/merge_requests/670
Signed-off-by: David Heidelberg <david.heidelberg@collabora.com>
Reviewed-by: Eric Engestrom <eric@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/piglit/-/merge_requests/726>
-rwxr-xr-x | .gitlab-ci/build-debian.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/.gitlab-ci/build-debian.sh b/.gitlab-ci/build-debian.sh index d38cd055f..ae670ac97 100755 --- a/.gitlab-ci/build-debian.sh +++ b/.gitlab-ci/build-debian.sh @@ -3,6 +3,8 @@ set -ex cmake . \ + -D CMAKE_C_FLAGS="-Werror -Wno-error=builtin-declaration-mismatch" \ + -D CMAKE_CXX_FLAGS="-Werror -Wno-error=builtin-declaration-mismatch" \ -D CMAKE_BUILD_TYPE=Debug \ -D PIGLIT_BUILD_CL_TESTS=on \ -D PIGLIT_BUILD_DMA_BUF_TESTS=on \ @@ -13,4 +15,4 @@ cmake . \ -D PIGLIT_BUILD_WGL_TESTS=off \ -GNinja -ninja -j${FDO_CI_CONCURRENT:-4} +ninja -j"${FDO_CI_CONCURRENT:-4}" |