Skip to content

Commit 98b6a8c

Browse files
committed
Enable more warnings
1 parent 9c30d0c commit 98b6a8c

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

cmake/configure.cmake

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff 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")

0 commit comments

Comments
 (0)