Skip to content

Commit 989a176

Browse files
authored
Enable extra warnings for clang and gcc in CMake (#481)
1 parent e298b6e commit 989a176

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/linux.yaml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,45 @@ jobs:
5757
run: |
5858
cmake -DCMAKE_BUILD_TYPE=${{matrix.build_type}} \
5959
-DVMA_BUILD_SAMPLES=YES \
60+
-DCMAKE_CXX_FLAGS="$CXXFLAGS \
61+
-Wall \
62+
-Wextra \
63+
-Wpedantic \
64+
-Wconversion \
65+
-Wsign-conversion \
66+
-Wshadow \
67+
-Wnull-dereference \
68+
-Wdouble-promotion \
69+
-Wformat=2 \
70+
-Wimplicit-fallthrough \
71+
-Wundef \
72+
-Wcast-align \
73+
-Woverloaded-virtual \
74+
-Wnon-virtual-dtor \
75+
-Wstrict-overflow=5 \
76+
-Wuseless-cast \
77+
-Wduplicated-cond \
78+
-Wduplicated-branches \
79+
-Wlogical-op \
80+
-Wredundant-decls \
81+
-Wstrict-null-sentinel \
82+
-Wold-style-cast" \
83+
-Wcast-qual \
84+
-Wconversion-extra \
85+
-Wstack-usage=2048 \
86+
-Wsuggest-final-types \
87+
-Wsuggest-final-methods \
88+
-Wsuggest-override \
89+
-Wvector-operation-performance \
90+
-Wzero-as-null-pointer-constant \
91+
-Wextra-semi \
92+
-Wmissing-declarations \
93+
-Wmissing-include-dirs \
94+
-Winit-self \
95+
-Wuninitialized \
96+
-Wunused \
97+
-Wunused-parameter \
98+
-Wshadow=local \
6099
$GITHUB_WORKSPACE
61100
62101
- name: Build

0 commit comments

Comments
 (0)