aboutsummaryrefslogtreecommitdiff
path: root/C/warn_gcc.mak
diff options
context:
space:
mode:
authorIgor Pavlov <87184205+ip7z@users.noreply.github.com>2021-12-27 00:00:00 +0000
committerIgor Pavlov <87184205+ip7z@users.noreply.github.com>2022-03-18 15:35:13 +0500
commitf19f813537c7aea1c20749c914e756b54a9c3cf5 (patch)
tree816ba62ca7c0fa19f2eb46d9e9d6f7dd7c3a744d /C/warn_gcc.mak
parent98e06a519b63b81986abe76d28887f6984a7732b (diff)
download7zip-21.07.tar.gz
7zip-21.07.tar.bz2
7zip-21.07.zip
'21.07'21.07
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)