diff options
Diffstat (limited to 'C/warn_clang.mak')
-rw-r--r-- | C/warn_clang.mak | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/C/warn_clang.mak b/C/warn_clang.mak new file mode 100644 index 0000000..ed4f908 --- /dev/null +++ b/C/warn_clang.mak | |||
@@ -0,0 +1,37 @@ | |||
1 | CFLAGS_WARN_CLANG_3_8_UNIQ = \ | ||
2 | -Wno-reserved-id-macro \ | ||
3 | -Wno-old-style-cast \ | ||
4 | -Wno-c++11-long-long \ | ||
5 | -Wno-unused-macros \ | ||
6 | |||
7 | CFLAGS_WARN_CLANG_3_8 = \ | ||
8 | $(CFLAGS_WARN_CLANG_3_8_UNIQ) \ | ||
9 | -Weverything \ | ||
10 | -Wno-extra-semi \ | ||
11 | -Wno-sign-conversion \ | ||
12 | -Wno-language-extension-token \ | ||
13 | -Wno-global-constructors \ | ||
14 | -Wno-non-virtual-dtor \ | ||
15 | -Wno-switch-enum \ | ||
16 | -Wno-covered-switch-default \ | ||
17 | -Wno-cast-qual \ | ||
18 | -Wno-padded \ | ||
19 | -Wno-exit-time-destructors \ | ||
20 | -Wno-weak-vtables \ | ||
21 | |||
22 | CFLAGS_WARN_CLANG_12= $(CFLAGS_WARN_CLANG_3_8) \ | ||
23 | -Wno-extra-semi-stmt \ | ||
24 | -Wno-zero-as-null-pointer-constant \ | ||
25 | -Wno-deprecated-dynamic-exception-spec \ | ||
26 | -Wno-c++98-compat-pedantic \ | ||
27 | -Wno-atomic-implicit-seq-cst \ | ||
28 | -Wconversion \ | ||
29 | -Wno-sign-conversion \ | ||
30 | |||
31 | CFLAGS_WARN_1 = \ | ||
32 | -Wno-deprecated-copy-dtor \ | ||
33 | |||
34 | |||
35 | |||
36 | |||
37 | CFLAGS_WARN = $(CFLAGS_WARN_CLANG_12) $(CFLAGS_WARN_1) | ||