File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -40,17 +40,25 @@ jobs:
4040 matrix :
4141 os : [ ubuntu-latest, macOS-latest ]
4242 cxx : [ g++, clang++ ]
43+ cxxflags : [ '-Werror' ]
4344 include :
44- - os : windows-2022
45+ - os : windows-latest
4546 target : x86_64-pc-windows-msvc
46- - os : windows-2022
47- target : x86_64-pc-windows-msvc
48- cxx : clang++
49- - os : windows-2022
47+ # msvc's `-Werror` is `/WX`
48+ cxxflags : ' /WX'
49+ - os : windows-latest
5050 target : x86_64-pc-windows-gnu
51+ cxx : g++
52+ cxxflags : ' -Werror'
53+ - os : windows-latest
54+ target : x86_64-pc-windows-gnullvm
55+ cxx : clang++
56+ cxxflags : ' -Werror'
5157 runs-on : ${{ matrix.os }}
5258 env :
5359 CXX : ${{ matrix.cxx }}
60+ # error on compiler warnings in CI
61+ CXXFLAGS : ${{ matrix.cxxflags }}
5462 steps :
5563 - uses : actions/checkout@v4
5664 with :
Original file line number Diff line number Diff line change @@ -126,7 +126,6 @@ fn main() {
126126 . flag ( "-Wno-missing-field-initializers" )
127127 . flag ( "-Wno-stringop-overflow" )
128128 . flag ( "-Wno-array-bounds" )
129- . flag ( "-Werror" )
130129 . flag ( "-std=c++17" )
131130 . flag ( "-fno-exceptions" )
132131 . flag ( "-fno-rtti" )
@@ -144,7 +143,6 @@ fn main() {
144143 . flag ( "-Wnon-virtual-dtor" )
145144 . flag ( "-Wno-missing-field-initializers" )
146145 . flag ( "-Wno-self-assign" )
147- . flag ( "-Werror" )
148146 . flag ( "-std=c++17" )
149147 . flag ( "-fno-exceptions" )
150148 . flag ( "-fno-rtti" )
You can’t perform that action at this time.
0 commit comments