summaryrefslogtreecommitdiff
path: root/other/analysis/run-gcc
blob: ffd42f4e4b804413515d5af863cc921263386ea7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#!/bin/sh

. other/analysis/gen-file.sh

put auto_tests/lan_discovery_test.c

# TODO(iphydf): Get rid of all VLAs, then enable -fstack-protector -Wstack-protector
gcc -O3 -c -o /dev/null test.c $CPPFLAGS	\
	-std=c99				\
	-pedantic				\
	-Wall					\
	-Wextra					\
	-Wno-aggregate-return			\
	-Wno-aggressive-loop-optimizations	\
	-Wno-float-conversion			\
	-Wno-format-signedness			\
	-Wno-missing-field-initializers		\
	-Wno-padded				\
	-Wno-sign-compare			\
	-Wno-sign-conversion			\
	-Wno-switch-default			\
	-Wno-unused-parameter			\
	-Wstrict-aliasing=0			\
	-Wstrict-overflow=1			\
        					\
	-Wbad-function-cast			\
	-Wmissing-declarations			\
	-Wmissing-parameter-type		\
	-Wmissing-prototypes			\
	-Wnested-externs 			\
	-Wold-style-declaration			\
	-Wold-style-definition			\
	-Wstrict-prototypes			\
	-Wbool-compare				\
	-Wc99-c11-compat			\
	-Wc++-compat				\
	-Wcast-align				\
	-Wcast-qual				\
	-Wchar-subscripts			\
	-Wdouble-promotion			\
	-Wduplicated-cond			\
	-Wempty-body				\
	-Wenum-compare				\
	-Wfloat-equal				\
	-Wformat=2				\
	-Wframe-address				\
	-Wframe-larger-than=133168		\
	-Wjump-misses-init			\
	-Wignored-qualifiers			\
	-Wignored-attributes			\
	-Wincompatible-pointer-types		\
	-Winit-self				\
	-Winline				\
	-Wlarger-than=133120			\
	-Wmaybe-uninitialized			\
	-Wmemset-transposed-args		\
	-Wmisleading-indentation		\
	-Wnonnull				\
	-Wnonnull-compare			\
	-Wnull-dereference			\
	-Wodr					\
	-Wredundant-decls			\
	-Wreturn-type				\
	-Wshadow				\
	-Wsuggest-attribute=format		\
	-Wundef					\
	-Wunsafe-loop-optimizations		\
	-Wunused-label				\
	-Wunused-local-typedefs			\
	-Wunused-value				\
	-Wunused-but-set-parameter		\
	-Wunused-but-set-variable		\