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:
parent
94b7584972
commit
b9b58f122b
@ -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 \
|
||||
|
@ -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
|
||||
|
@ -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 \
|
||||
|
@ -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 \
|
||||
|
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user