diff options
Diffstat (limited to 'other/analysis/run-gcc')
-rwxr-xr-x | other/analysis/run-gcc | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/other/analysis/run-gcc b/other/analysis/run-gcc new file mode 100755 index 00000000..ffd42f4e --- /dev/null +++ b/other/analysis/run-gcc | |||
@@ -0,0 +1,72 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | . other/analysis/gen-file.sh | ||
4 | |||
5 | put auto_tests/lan_discovery_test.c | ||
6 | |||
7 | # TODO(iphydf): Get rid of all VLAs, then enable -fstack-protector -Wstack-protector | ||
8 | gcc -O3 -c -o /dev/null test.c $CPPFLAGS \ | ||
9 | -std=c99 \ | ||
10 | -pedantic \ | ||
11 | -Wall \ | ||
12 | -Wextra \ | ||
13 | -Wno-aggregate-return \ | ||
14 | -Wno-aggressive-loop-optimizations \ | ||
15 | -Wno-float-conversion \ | ||
16 | -Wno-format-signedness \ | ||
17 | -Wno-missing-field-initializers \ | ||
18 | -Wno-padded \ | ||
19 | -Wno-sign-compare \ | ||
20 | -Wno-sign-conversion \ | ||
21 | -Wno-switch-default \ | ||
22 | -Wno-unused-parameter \ | ||
23 | -Wstrict-aliasing=0 \ | ||
24 | -Wstrict-overflow=1 \ | ||
25 | \ | ||
26 | -Wbad-function-cast \ | ||
27 | -Wmissing-declarations \ | ||
28 | -Wmissing-parameter-type \ | ||
29 | -Wmissing-prototypes \ | ||
30 | -Wnested-externs \ | ||
31 | -Wold-style-declaration \ | ||
32 | -Wold-style-definition \ | ||
33 | -Wstrict-prototypes \ | ||
34 | -Wbool-compare \ | ||
35 | -Wc99-c11-compat \ | ||
36 | -Wc++-compat \ | ||
37 | -Wcast-align \ | ||
38 | -Wcast-qual \ | ||
39 | -Wchar-subscripts \ | ||
40 | -Wdouble-promotion \ | ||
41 | -Wduplicated-cond \ | ||
42 | -Wempty-body \ | ||
43 | -Wenum-compare \ | ||
44 | -Wfloat-equal \ | ||
45 | -Wformat=2 \ | ||
46 | -Wframe-address \ | ||
47 | -Wframe-larger-than=133168 \ | ||
48 | -Wjump-misses-init \ | ||
49 | -Wignored-qualifiers \ | ||
50 | -Wignored-attributes \ | ||
51 | -Wincompatible-pointer-types \ | ||
52 | -Winit-self \ | ||
53 | -Winline \ | ||
54 | -Wlarger-than=133120 \ | ||
55 | -Wmaybe-uninitialized \ | ||
56 | -Wmemset-transposed-args \ | ||
57 | -Wmisleading-indentation \ | ||
58 | -Wnonnull \ | ||
59 | -Wnonnull-compare \ | ||
60 | -Wnull-dereference \ | ||
61 | -Wodr \ | ||
62 | -Wredundant-decls \ | ||
63 | -Wreturn-type \ | ||
64 | -Wshadow \ | ||
65 | -Wsuggest-attribute=format \ | ||
66 | -Wundef \ | ||
67 | -Wunsafe-loop-optimizations \ | ||
68 | -Wunused-label \ | ||
69 | -Wunused-local-typedefs \ | ||
70 | -Wunused-value \ | ||
71 | -Wunused-but-set-parameter \ | ||
72 | -Wunused-but-set-variable \ | ||