diff options
author | Igor Pavlov <87184205+ip7z@users.noreply.github.com> | 2021-12-27 00:00:00 +0000 |
---|---|---|
committer | Igor Pavlov <87184205+ip7z@users.noreply.github.com> | 2022-03-18 15:35:13 +0500 |
commit | f19f813537c7aea1c20749c914e756b54a9c3cf5 (patch) | |
tree | 816ba62ca7c0fa19f2eb46d9e9d6f7dd7c3a744d /C/warn_gcc.mak | |
parent | 98e06a519b63b81986abe76d28887f6984a7732b (diff) | |
download | 7zip-21.07.tar.gz 7zip-21.07.tar.bz2 7zip-21.07.zip |
'21.07'21.07
Diffstat (limited to 'C/warn_gcc.mak')
-rw-r--r-- | C/warn_gcc.mak | 51 |
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 @@ | |||
1 | CFLAGS_WARN_GCC_4_5 = \ | ||
2 | |||
3 | CFLAGS_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 | |||
20 | CFLAGS_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 | |||
45 | CFLAGS_WARN_GCC_PPMD_UNALIGNED = \ | ||
46 | -Wno-strict-aliasing \ | ||
47 | |||
48 | |||
49 | CFLAGS_WARN = $(CFLAGS_WARN_GCC_9) \ | ||
50 | |||
51 | # $(CFLAGS_WARN_GCC_PPMD_UNALIGNED) | ||