1
0
mirror of https://github.com/mpv-player/mpv synced 2025-03-23 03:37:27 +00:00

ci: enable -Werror

For better feedback on build status and to keep mpv warning free.

Except for macos builds, there are more issue there that need fixing.
This commit is contained in:
Kacper Michajłow 2023-09-18 15:42:01 +02:00 committed by Dudemanguy
parent 94b7584972
commit b9b58f122b
5 changed files with 8 additions and 2 deletions

View File

@ -6,6 +6,8 @@ export CXXFLAGS="$CXXFLAGS -isystem/usr/local/include"
export LDFLAGS="$LDFLAGS -L/usr/local/lib"
meson setup build \
--werror \
-Dc_args="-Wno-error=deprecated -Wno-error=deprecated-declarations" \
-Dlibmpv=true \
-Dlua=enabled \
-Degl-drm=enabled \

View File

@ -268,6 +268,8 @@ build=mingw_build
rm -rf $build
meson setup $build --cross-file "$prefix_dir/crossfile" \
--werror \
-Dc_args="-Wno-error=deprecated -Wno-error=deprecated-declarations" \
--buildtype debugoptimized \
-Dlibmpv=true -Dlua=luajit \
-D{shaderc,spirv-cross,d3d11,libplacebo}=enabled

View File

@ -1,6 +1,8 @@
#!/bin/sh -e
meson setup build \
--werror \
-Dc_args="-Wno-error=deprecated -Wno-error=deprecated-declarations" \
-D cdda=enabled \
-D d3d-hwaccel=enabled \
-D d3d11=enabled \

View File

@ -2,6 +2,8 @@
set -e
meson setup build \
--werror \
-Dc_args="-Wno-error=deprecated -Wno-error=deprecated-declarations" \
-Db_sanitize=address,undefined \
-Dcdda=enabled \
-Ddvbin=enabled \

View File

@ -256,8 +256,6 @@ flags = ['-D_ISOC99_SOURCE', '-D_GNU_SOURCE',
link_flags = []
test_flags = ['-Werror=implicit-function-declaration',
'-Wno-error=deprecated-declarations',
'-Wno-error=unused-function',
'-Wempty-body',
'-Wdisabled-optimization',
'-Wstrict-prototypes',