Skip to content

Commit aedf53b

Browse files
committed
CI: Fail on any warnings with clang 18
1 parent c316cf3 commit aedf53b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/ci.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -360,9 +360,10 @@ jobs:
360360
container_suffix: "-bookworm"
361361
- clang: 18
362362
std: 20
363+
cxx_flags: "-Werror -Wall -Wextra -Wwrite-strings -Wunreachable-code -Wpointer-arith -Wredundant-decls"
363364
container_suffix: "-bookworm"
364365

365-
name: "🐍 3 • Clang ${{ matrix.clang }} • C++${{ matrix.std }} • x64"
366+
name: "🐍 3 • Clang ${{ matrix.clang }} • C++${{ matrix.std }} • x64${{ matrix.cxx_flags && ' • cxx_flags' || '' }}"
366367
container: "silkeh/clang:${{ matrix.clang }}${{ matrix.container_suffix }}"
367368

368369
steps:
@@ -378,6 +379,7 @@ jobs:
378379
-DPYBIND11_WERROR=ON
379380
-DDOWNLOAD_CATCH=ON
380381
-DCMAKE_CXX_STANDARD=${{ matrix.std }}
382+
-DCMAKE_CXX_FLAGS="${{ matrix.cxx_flags }}"
381383
-DPYTHON_EXECUTABLE=$(python3 -c "import sys; print(sys.executable)")
382384
383385
- name: Build

0 commit comments

Comments
 (0)