ci: Disable warnings about deprecated functions on macOS

macOS has marked the function vsprintf deprecated; this is used in
FDKsprintf with a number of uses in the codebase, that aren't
entirely trivial to move over to vsnprintf.
This commit is contained in:
Martin Storsjo 2023-10-06 12:29:42 +03:00
parent fc773cca67
commit 23b030f80e
1 changed files with 2 additions and 2 deletions

View File

@ -35,7 +35,7 @@ jobs:
run: | run: |
./autogen.sh ./autogen.sh
./configure --enable-example ./configure --enable-example
make -j$(sysctl -n hw.ncpu) CFLAGS="-g -O2 -Werror" CXXFLAGS="-g -O2 -Werror" make -j$(sysctl -n hw.ncpu) CFLAGS="-g -O2 -Werror" CXXFLAGS="-g -O2 -Werror -Wno-deprecated-declarations"
macos-cmake: macos-cmake:
runs-on: macos-latest runs-on: macos-latest
@ -44,7 +44,7 @@ jobs:
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Build - name: Build
run: | run: |
cmake . -B build -DCMAKE_BUILD_TYPE=Release -DBUILD_PROGRAMS=YES -DCMAKE_OSX_ARCHITECTURES="arm64;x86_64" -DCMAKE_C_FLAGS="-Werror" -DCMAKE_CXX_FLAGS="-Werror" cmake . -B build -DCMAKE_BUILD_TYPE=Release -DBUILD_PROGRAMS=YES -DCMAKE_OSX_ARCHITECTURES="arm64;x86_64" -DCMAKE_C_FLAGS="-Werror" -DCMAKE_CXX_FLAGS="-Werror -Wno-deprecated-declarations"
cmake --build build cmake --build build
mingw-cross-autotools: mingw-cross-autotools: