ci: Enable -Werror for the remaining GCC build jobs

Same principle as for clang, with much fewer exceptions left.

Reviewed-by: Eric Anholt <eric@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10220>
This commit is contained in:
Michel Dänzer
2021-04-11 12:50:36 +02:00
committed by Marge Bot
parent bf480cc9c2
commit 63e4bdd90c

View File

@@ -656,9 +656,12 @@ meson-testing-asan:
extends: extends:
- meson-testing - meson-testing
variables: variables:
C_ARGS: >
-Wno-error=stringop-truncation
EXTRA_OPTION: > EXTRA_OPTION: >
-D b_sanitize=address -D b_sanitize=address
-D valgrind=false -D valgrind=false
-D werror=true
MINIO_ARTIFACT_NAME: "" MINIO_ARTIFACT_NAME: ""
ARTIFACTS_DEBUG_SYMBOLS: 1 ARTIFACTS_DEBUG_SYMBOLS: 1
@@ -807,6 +810,8 @@ meson-android:
-D egl=enabled -D egl=enabled
-D platforms=x11 -D platforms=x11
-D osmesa=false -D osmesa=false
EXTRA_OPTION: >
-D werror=true
GALLIUM_ST: > GALLIUM_ST: >
-D dri3=enabled -D dri3=enabled
-D gallium-vdpau=disabled -D gallium-vdpau=disabled
@@ -838,6 +843,7 @@ meson-armhf:
EXTRA_OPTION: > EXTRA_OPTION: >
-D llvm=disabled -D llvm=disabled
-D valgrind=false -D valgrind=false
-D werror=true
MINIO_ARTIFACT_NAME: mesa-armhf MINIO_ARTIFACT_NAME: mesa-armhf
script: script:
- .gitlab-ci/meson/build.sh - .gitlab-ci/meson/build.sh
@@ -852,6 +858,7 @@ meson-arm64:
EXTRA_OPTION: > EXTRA_OPTION: >
-D llvm=disabled -D llvm=disabled
-D valgrind=false -D valgrind=false
-D werror=true
MINIO_ARTIFACT_NAME: mesa-arm64 MINIO_ARTIFACT_NAME: mesa-arm64
script: script:
- .gitlab-ci/meson/build.sh - .gitlab-ci/meson/build.sh
@@ -861,10 +868,13 @@ meson-arm64-asan:
extends: extends:
- meson-arm64 - meson-arm64
variables: variables:
C_ARGS: >
-Wno-error=stringop-truncation
EXTRA_OPTION: > EXTRA_OPTION: >
-D llvm=disabled -D llvm=disabled
-D b_sanitize=address -D b_sanitize=address
-D valgrind=false -D valgrind=false
-D werror=true
ARTIFACTS_DEBUG_SYMBOLS: 1 ARTIFACTS_DEBUG_SYMBOLS: 1
MINIO_ARTIFACT_NAME: mesa-arm64-asan MINIO_ARTIFACT_NAME: mesa-arm64-asan
MESON_TEST_ARGS: "--no-suite mesa:compiler" MESON_TEST_ARGS: "--no-suite mesa:compiler"
@@ -1064,12 +1074,17 @@ meson-mingw32-x86_64:
stage: build-misc stage: build-misc
variables: variables:
UNWIND: "disabled" UNWIND: "disabled"
C_ARGS: >
-Wno-error=format
-Wno-error=format-extra-args
CPP_ARGS: $C_ARGS
DRI_DRIVERS: "" DRI_DRIVERS: ""
GALLIUM_DRIVERS: "swrast" GALLIUM_DRIVERS: "swrast"
EXTRA_OPTION: > EXTRA_OPTION: >
-Dllvm=disabled -Dllvm=disabled
-Dzlib=disabled -Dzlib=disabled
-Dosmesa=true -Dosmesa=true
-Dwerror=true
--cross-file=.gitlab-ci/x86_64-w64-mingw32 --cross-file=.gitlab-ci/x86_64-w64-mingw32
.test: .test: