-
Notifications
You must be signed in to change notification settings - Fork 49
/
Copy pathwarn_gcc.mak
51 lines (43 loc) · 1021 Bytes
/
warn_gcc.mak
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
CFLAGS_WARN_GCC_4_5 = \
CFLAGS_WARN_GCC_6 = \
-Waddress \
-Waggressive-loop-optimizations \
-Wattributes \
-Wbool-compare \
-Wcast-align \
-Wcomment \
-Wdiv-by-zero \
-Wduplicated-cond \
-Wformat-contains-nul \
-Winit-self \
-Wint-to-pointer-cast \
-Wunused \
-Wunused-macros \
# -Wno-strict-aliasing
CFLAGS_WARN_GCC_9 = \
-Waddress \
-Waddress-of-packed-member \
-Waggressive-loop-optimizations \
-Wattributes \
-Wbool-compare \
-Wbool-operation \
-Wcast-align \
-Wcast-align=strict \
-Wcomment \
-Wdangling-else \
-Wdiv-by-zero \
-Wduplicated-branches \
-Wduplicated-cond \
-Wformat-contains-nul \
-Wimplicit-fallthrough=5 \
-Winit-self \
-Wint-in-bool-context \
-Wint-to-pointer-cast \
-Wunused \
-Wunused-macros \
-Wconversion \
# -Wno-sign-conversion \
CFLAGS_WARN_GCC_PPMD_UNALIGNED = \
-Wno-strict-aliasing \
CFLAGS_WARN = $(CFLAGS_WARN_GCC_9) \
# $(CFLAGS_WARN_GCC_PPMD_UNALIGNED)