From 7bdc01345223b9a78dc173f160329766f6066ba5 Mon Sep 17 00:00:00 2001 From: qurious-pixel <62252937+qurious-pixel@users.noreply.github.com> Date: Wed, 30 Dec 2020 12:25:13 -0800 Subject: [PATCH] fix warnings as errors --- .github/workflows/docker.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docker.sh b/.github/workflows/docker.sh index c2df5040f..5bb3f364d 100644 --- a/.github/workflows/docker.sh +++ b/.github/workflows/docker.sh @@ -9,9 +9,14 @@ title="yuzu Early Access $ver" yuzupatch=( $(ls -d patches/* ) ) for i in "${yuzupatch[@]}"; do patch -p1 < "$i"; done +find . -name "CMakeLists.txt" -exec sed -i 's/^.*-Werror$/-W/g' {} + +find . -name "CMakeLists.txt" -exec sed -i 's/^.*-Werror=.*)$/ )/g' {} + +find . -name "CMakeLists.txt" -exec sed -i 's/^.*-Werror=.*$/ /g' {} + +find . -name "CMakeLists.txt" -exec sed -i 's/-Werror/-W/g' {} + + mkdir build && cd build -cmake .. -G Ninja -DCMAKE_CXX_FLAGS="-W" -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=/usr/lib/ccache/gcc -DCMAKE_CXX_COMPILER=/usr/lib/ccache/g++ -DTITLE_BAR_FORMAT_IDLE="$title" -DTITLE_BAR_FORMAT_RUNNING="$title | {3}" -DENABLE_COMPATIBILITY_LIST_DOWNLOAD=ON -DGIT_BRANCH="HEAD" -DGIT_DESC="$msvc" -DUSE_DISCORD_PRESENCE=ON +cmake .. -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=/usr/lib/ccache/gcc -DCMAKE_CXX_COMPILER=/usr/lib/ccache/g++ -DTITLE_BAR_FORMAT_IDLE="$title" -DTITLE_BAR_FORMAT_RUNNING="$title | {3}" -DENABLE_COMPATIBILITY_LIST_DOWNLOAD=ON -DGIT_BRANCH="HEAD" -DGIT_DESC="$msvc" -DUSE_DISCORD_PRESENCE=ON ninja