aboutsummaryrefslogtreecommitdiff
path: root/C/warn_gcc.mak
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--C/warn_gcc.mak51
1 files changed, 51 insertions, 0 deletions
diff --git a/C/warn_gcc.mak b/C/warn_gcc.mak
new file mode 100644
index 0000000..7aab7a4
--- /dev/null
+++ b/C/warn_gcc.mak
@@ -0,0 +1,51 @@
1CFLAGS_WARN_GCC_4_5 = \
2
3CFLAGS_WARN_GCC_6 = \
4 -Waddress \
5 -Waggressive-loop-optimizations \
6 -Wattributes \
7 -Wbool-compare \
8 -Wcast-align \
9 -Wcomment \
10 -Wdiv-by-zero \
11 -Wduplicated-cond \
12 -Wformat-contains-nul \
13 -Winit-self \
14 -Wint-to-pointer-cast \
15 -Wunused \
16 -Wunused-macros \
17
18# -Wno-strict-aliasing
19
20CFLAGS_WARN_GCC_9 = \
21 -Waddress \
22 -Waddress-of-packed-member \
23 -Waggressive-loop-optimizations \
24 -Wattributes \
25 -Wbool-compare \
26 -Wbool-operation \
27 -Wcast-align \
28 -Wcast-align=strict \
29 -Wcomment \
30 -Wdangling-else \
31 -Wdiv-by-zero \
32 -Wduplicated-branches \
33 -Wduplicated-cond \
34 -Wformat-contains-nul \
35 -Wimplicit-fallthrough=5 \
36 -Winit-self \
37 -Wint-in-bool-context \
38 -Wint-to-pointer-cast \
39 -Wunused \
40 -Wunused-macros \
41 -Wconversion \
42
43# -Wno-sign-conversion \
44
45CFLAGS_WARN_GCC_PPMD_UNALIGNED = \
46 -Wno-strict-aliasing \
47
48
49CFLAGS_WARN = $(CFLAGS_WARN_GCC_9) \
50
51# $(CFLAGS_WARN_GCC_PPMD_UNALIGNED)