Skip to content

Commit 6e59459

Browse files
committed
CI: build with -Werror
... so that we can easily catch warnings both from Clang or GCC.
1 parent 50bb2ae commit 6e59459

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ jobs:
1919
runs-on: ubuntu-${{ matrix.version }}
2020
env:
2121
CC: ${{ matrix.compiler }}
22+
CFLAGS: -Werror
2223

2324
steps:
2425
- name: Checkout repository
@@ -36,7 +37,7 @@ jobs:
3637
if: matrix.version >= 22.04
3738
run: |
3839
# Use ASAN and UBSAN
39-
CFLAGS="-fsanitize=address,undefined"
40+
CFLAGS="$CFLAGS -fsanitize=address,undefined"
4041
# Recommended for better error traces
4142
CFLAGS="$CFLAGS -fno-omit-frame-pointer"
4243
# Make UBSAN reports fatal

0 commit comments

Comments
 (0)