CI: Add warnings & error on warnings

This commit is contained in:
Jonathan Schwartz
2025-03-28 17:35:26 +00:00
committed by Kyle Schwarz
parent 52e98af9fd
commit 2209e348a3
12 changed files with 93 additions and 92 deletions
+2 -1
View File
@@ -1,5 +1,6 @@
#!/bin/sh
export CFLAGS="-Wall -Werror"
export CXXFLAGS="-Wall -Werror"
cmake -GNinja -Bbuild -DCMAKE_BUILD_TYPE=Release -DLIBICSNEO_BUILD_EXAMPLES=ON \
-DLIBICSNEO_BUILD_UNIT_TESTS=ON -DLIBICSNEO_ENABLE_TCP=OFF || exit 1
+2 -2
View File
@@ -4,8 +4,8 @@ mkdir build
REM build
cd build
set CFLAGS=/WX
set CXXFLAGS=/WX
set CFLAGS=/WX /W4 /wd4127
set CXXFLAGS=/WX /W4 /wd4127
cmake -GNinja -DCMAKE_BUILD_TYPE=RelWithDebInfo -DLIBICSNEO_BUILD_UNIT_TESTS=ON -DLIBICSNEO_ENABLE_TCP=ON ..
if %errorlevel% neq 0 exit /b %errorlevel%
cmake --build .