Skip to content

Commit

Permalink
ci: enable -Werror when possible (openwall#676)
Browse files Browse the repository at this point in the history
Enable the -Werror flag which transforms warnings into errors.

Signed-off-by: Claudio André <[email protected]>
  • Loading branch information
claudioandre-br committed Dec 7, 2024
1 parent 83c0cce commit 1eb6c24
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .clusterfuzzlite/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"/

Expand All @@ -44,7 +44,7 @@ fi

if [[ "$SANITIZER" == "undefined" ]]; then
# Ubsan
./configure --enable-ubsan
./configure --enable-werror --enable-ubsan
make -sj4
cp ../run/john "$OUT"/

Expand Down
1 change: 1 addition & 0 deletions .github/actions/spelling/expect.txt
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,7 @@ vmactions
vnc
vncpcap
vpc
werror
wordlist
worg
woria
Expand Down
2 changes: 1 addition & 1 deletion deploy/Mac_ARM-Delivery.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions deploy/Windows-Delivery.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 1eb6c24

Please sign in to comment.