From 1eb6c2461af6f2f9f4f6682ff28a0642d892eacf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Claudio=20Andr=C3=A9?= Date: Tue, 3 Dec 2024 06:25:32 -0300 Subject: [PATCH] ci: enable -Werror when possible (#676) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Enable the -Werror flag which transforms warnings into errors. Signed-off-by: Claudio André --- .clusterfuzzlite/build.sh | 4 ++-- .github/actions/spelling/expect.txt | 1 + deploy/Mac_ARM-Delivery.yml | 2 +- deploy/Windows-Delivery.yml | 4 ++-- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.clusterfuzzlite/build.sh b/.clusterfuzzlite/build.sh index e173679f..f171b418 100755 --- a/.clusterfuzzlite/build.sh +++ b/.clusterfuzzlite/build.sh @@ -29,7 +29,7 @@ source ../helper.sh if [[ "$SANITIZER" == "address" ]]; then # Asan - ./configure --enable-asan + ./configure --enable-werror --enable-asan make -sj4 cp ../run/john "$OUT"/ @@ -44,7 +44,7 @@ fi if [[ "$SANITIZER" == "undefined" ]]; then # Ubsan - ./configure --enable-ubsan + ./configure --enable-werror --enable-ubsan make -sj4 cp ../run/john "$OUT"/ diff --git a/.github/actions/spelling/expect.txt b/.github/actions/spelling/expect.txt index df11451f..e96289f3 100644 --- a/.github/actions/spelling/expect.txt +++ b/.github/actions/spelling/expect.txt @@ -266,6 +266,7 @@ vmactions vnc vncpcap vpc +werror wordlist worg woria diff --git a/deploy/Mac_ARM-Delivery.yml b/deploy/Mac_ARM-Delivery.yml index d59a3fd3..51b78b3f 100644 --- a/deploy/Mac_ARM-Delivery.yml +++ b/deploy/Mac_ARM-Delivery.yml @@ -29,7 +29,7 @@ macOS_task: env: CIRRUS_CLONE_DEPTH: "10" - BUILD_OPS: "--build=aarch64-apple-darwin" + BUILD_OPS: "--build=aarch64-apple-darwin --enable-werror" CC: "clang" MAKE_FLAGS: "-sj4" TARGET_ARCH: "macOS ARM" diff --git a/deploy/Windows-Delivery.yml b/deploy/Windows-Delivery.yml index f642e2d2..fa626048 100644 --- a/deploy/Windows-Delivery.yml +++ b/deploy/Windows-Delivery.yml @@ -87,8 +87,8 @@ steps: # + CategoryInfo : NotSpecified: (ar: creating aes.a:String) [], RemoteException # + FullyQualifiedErrorId : NativeCommandError # #### - $EXE_NORMAL = "--disable-native-tests" - $EXE_NO_OMP = "--disable-native-tests --disable-openmp" + $EXE_NORMAL = "--enable-werror --disable-native-tests" + $EXE_NO_OMP = "--enable-werror --disable-native-tests --disable-openmp" # CPU (OMP and extensions fallback) shell "./configure $EXE_NO_OMP --enable-simd=avx && make -s clean && make -sj2 2>&1 && make -s strip && mv ../run/john ../run/john-avx"