Skip to content

Commit a817995

Browse files
pks-tgitster
authored andcommitted
ci: raise error when Meson generates warnings
Meson prints warnings in several cases, like for example when using a feature supported by the current version of Meson, but not yet supported by the minimum required version as declared by the project. These warnings will not cause the setup to fail by default, which makes it quite easy to miss them. Improve this by passing `--fatal-meson-warnings` to `meson setup` so that our CI jobs will fail on warnings. Signed-off-by: Patrick Steinhardt <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 13cb20f commit a817995

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ci/run-build-and-tests.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ esac
5252
case "$jobname" in
5353
*-meson)
5454
group "Configure" meson setup build . \
55+
--fatal-meson-warnings \
5556
--warnlevel 2 --werror \
5657
--wrap-mode nofallback \
5758
-Dfuzzers=true

0 commit comments

Comments
 (0)