Skip to content

Commit a77a7c3

Browse files
committed
CI: Fail on any warnings with gcc 13
1 parent f2dc578 commit a77a7c3

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -493,9 +493,9 @@ jobs:
493493
- { gcc: 9, std: 20 }
494494
- { gcc: 10, std: 17 }
495495
- { gcc: 10, std: 20 }
496-
- { gcc: 13, std: 20 }
496+
- { gcc: 13, std: 20, cxx_flags: "-Wall -Wextra -Wwrite-strings -Wunreachable-code -Wpointer-arith -Wredundant-decls" }
497497

498-
name: "🐍 3 • GCC ${{ matrix.gcc }} • C++${{ matrix.std }}• x64"
498+
name: "🐍 3 • GCC ${{ matrix.gcc }} • C++${{ matrix.std }} • x64${{ matrix.cxx_flags && ' • cxx_flags' || '' }}"
499499
container: "gcc:${{ matrix.gcc }}"
500500

501501
steps:
@@ -517,6 +517,7 @@ jobs:
517517
-DPYBIND11_WERROR=ON
518518
-DDOWNLOAD_CATCH=ON
519519
-DCMAKE_CXX_STANDARD=${{ matrix.std }}
520+
-DCMAKE_CXX_FLAGS="${{ matrix.cxx_flags }}"
520521
-DPYTHON_EXECUTABLE=$(python3 -c "import sys; print(sys.executable)")
521522
522523
- name: Build

0 commit comments

Comments
 (0)