From a16385ba1b9e906b1115d06d2c7b50edc919973a Mon Sep 17 00:00:00 2001 From: Johannes Schneider Date: Sun, 6 Apr 2025 16:21:47 +0200 Subject: [PATCH] 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 --- .github/workflows/linux.yaml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/.github/workflows/linux.yaml b/.github/workflows/linux.yaml index 03c7405..673f0ef 100644 --- a/.github/workflows/linux.yaml +++ b/.github/workflows/linux.yaml @@ -57,6 +57,28 @@ jobs: run: | cmake -DCMAKE_BUILD_TYPE=${{matrix.build_type}} \ -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 - name: Build