aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Storsjo <martin@martin.st>2023-10-06 12:44:05 +0300
committerMartin Storsjo <martin@martin.st>2023-10-06 14:04:10 +0300
commit48255d057aa61fde685b20492850043e37d8cb34 (patch)
tree5aeff6c610ba330fddd5e06246ce651332eedb4f
parent23b030f80e99459166bdc22282c2c96f4f384368 (diff)
downloadfdk-aac-48255d057aa61fde685b20492850043e37d8cb34.tar.gz
fdk-aac-48255d057aa61fde685b20492850043e37d8cb34.tar.bz2
fdk-aac-48255d057aa61fde685b20492850043e37d8cb34.zip
github: Add -Wno-stringop-overflow to the GCC/CMake builds
CMake builds with -O3 by default, while autotools builds with -O2. When optimizing in -O3 mode, GCC finds things to warn about with -Wno-stringop-overflow that it doesn't find in -O2 mode. (This happens at least with GCC 11, found in Ubuntu 22.04.)
-rw-r--r--.github/workflows/ci.yml4
1 files changed, 2 insertions, 2 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 9c406fc..baf261a 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -20,7 +20,7 @@ jobs:
uses: actions/checkout@v4
- name: Build
run: |
- cmake . -B build -DCMAKE_BUILD_TYPE=Release -DBUILD_PROGRAMS=YES -DCMAKE_C_FLAGS="-Werror" -DCMAKE_CXX_FLAGS="-Werror"
+ cmake . -B build -DCMAKE_BUILD_TYPE=Release -DBUILD_PROGRAMS=YES -DCMAKE_C_FLAGS="-Werror" -DCMAKE_CXX_FLAGS="-Werror -Wno-stringop-overflow"
cmake --build build
macos-autotools:
@@ -71,7 +71,7 @@ jobs:
uses: actions/checkout@v4
- name: Build
run: |
- cmake . -B build -DCMAKE_BUILD_TYPE=Release -DBUILD_PROGRAMS=YES -DCMAKE_C_COMPILER=x86_64-w64-mingw32-gcc -DCMAKE_CXX_COMPILER=x86_64-w64-mingw32-g++ -DCMAKE_CROSSCOMPILING=TRUE -DCMAKE_SYSTEM_NAME=Windows -DCMAKE_C_FLAGS="-Werror" -DCMAKE_CXX_FLAGS="-Werror"
+ cmake . -B build -DCMAKE_BUILD_TYPE=Release -DBUILD_PROGRAMS=YES -DCMAKE_C_COMPILER=x86_64-w64-mingw32-gcc -DCMAKE_CXX_COMPILER=x86_64-w64-mingw32-g++ -DCMAKE_CROSSCOMPILING=TRUE -DCMAKE_SYSTEM_NAME=Windows -DCMAKE_C_FLAGS="-Werror" -DCMAKE_CXX_FLAGS="-Werror -Wno-stringop-overflow"
cmake --build build
msys-cmake: