From 716f237b518d36f29c5c8aeae89fea02e34221bc Mon Sep 17 00:00:00 2001 From: Alfi Maulana Date: Tue, 17 Jan 2023 13:06:32 +0700 Subject: [PATCH] disable warning as error on MSVC test --- .github/workflows/test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0a1ddd0..664d181 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -53,8 +53,8 @@ jobs: with: source-dir: test targets: test_c test_cpp - c-flags: ${{ matrix.compiler == 'msvc' && '/w' || '-Wno-unused-variable' }} - cxx-flags: ${{ matrix.compiler == 'msvc' && '/w' || '-Wno-unused-variable' }} + c-flags: ${{ matrix.compiler == 'msvc' && '/w /WX-' || '-Wno-unused-variable' }} + cxx-flags: ${{ matrix.compiler == 'msvc' && '/w /WX-' || '-Wno-unused-variable' }} args: -D CHECK_SURPASS_WARNING=ON - name: Run the build results