File tree Expand file tree Collapse file tree 1 file changed +31
-0
lines changed
Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Original file line number Diff line number Diff line change @@ -24,10 +24,41 @@ if( UNIX )
2424 set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} \
2525 -Wall -Wextra \
2626 -Wno-unused-parameter \
27+ -Wpedantic \
28+ -Wshadow \
29+ -Wpointer-arith \
30+ -Wstrict-overflow=5 \
31+ -Wcast-align \
32+ -Wwrite-strings \
33+ -Wswitch-enum \
34+ -Wredundant-decls \
35+ -Wformat=2 \
36+ -Winit-self \
37+ -Wstrict-aliasing=2 \
38+ -Wnull-dereference \
39+ -Wold-style-definition \
40+ -Wmissing-prototypes \
41+ -Wmissing-declarations \
42+ -Wnoc11-extensions \
2743 -Wno-cast-function-type \
2844 -Wsign-compare -Werror" )
2945 set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} \
3046 -Wall -Wextra \
47+ -Wpedantic \
48+ -Wshadow \
49+ -Wpointer-arith \
50+ -Wstrict-overflow=5 \
51+ -Wcast-align \
52+ -Wwrite-strings \
53+ -Wswitch-enum \
54+ -Wredundant-decls \
55+ -Wformat=2 \
56+ -Winit-self \
57+ -Wstrict-aliasing=2 \
58+ -Wnull-dereference \
59+ -Wold-style-definition \
60+ -Wmissing-prototypes \
61+ -Wmissing-declarations \
3162 -Wno-unused-parameter \
3263 -Wno-cast-function-type \
3364 -Wsign-compare -Werror" )
You can’t perform that action at this time.
0 commit comments