Enable all gcc and clang warnings for testing the CI (#478)

* Enable all gcc and clang warnings for testing the CI

* Enable all gcc and clang warnings through GitHub workflow instead of CMake
This commit is contained in:
Johannes Schneider 2025-04-06 16:21:47 +02:00 committed by GitHub
parent 0183545f02
commit a16385ba1b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -57,6 +57,28 @@ jobs:
run: | run: |
cmake -DCMAKE_BUILD_TYPE=${{matrix.build_type}} \ cmake -DCMAKE_BUILD_TYPE=${{matrix.build_type}} \
-DVMA_BUILD_SAMPLES=YES \ -DVMA_BUILD_SAMPLES=YES \
-DCMAKE_CXX_FLAGS="-Wall
-Wextra
-Wpedantic
-Wconversion
-Wsign-conversion
-Wshadow
-Wnull-dereference
-Wdouble-promotion
-Wformat=2
-Wimplicit-fallthrough
-Wundef
-Wcast-align
-Woverloaded-virtual
-Wnon-virtual-dtor
-Wstrict-overflow=5
-Wuseless-cast
-Wduplicated-cond
-Wduplicated-branches
-Wlogical-op
-Wredundant-decls
-Wstrict-null-sentinel
-Wold-style-cast"
$GITHUB_WORKSPACE $GITHUB_WORKSPACE
- name: Build - name: Build