Skip to content

Commit a16385b

Browse files
authored
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
1 parent 0183545 commit a16385b

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/linux.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,28 @@ jobs:
5757
run: |
5858
cmake -DCMAKE_BUILD_TYPE=${{matrix.build_type}} \
5959
-DVMA_BUILD_SAMPLES=YES \
60+
-DCMAKE_CXX_FLAGS="-Wall
61+
-Wextra
62+
-Wpedantic
63+
-Wconversion
64+
-Wsign-conversion
65+
-Wshadow
66+
-Wnull-dereference
67+
-Wdouble-promotion
68+
-Wformat=2
69+
-Wimplicit-fallthrough
70+
-Wundef
71+
-Wcast-align
72+
-Woverloaded-virtual
73+
-Wnon-virtual-dtor
74+
-Wstrict-overflow=5
75+
-Wuseless-cast
76+
-Wduplicated-cond
77+
-Wduplicated-branches
78+
-Wlogical-op
79+
-Wredundant-decls
80+
-Wstrict-null-sentinel
81+
-Wold-style-cast"
6082
$GITHUB_WORKSPACE
6183
6284
- name: Build

0 commit comments

Comments
 (0)