Revision: | 1.1 |
Committed: | Mon Nov 24 17:28:08 2003 UTC (20 years, 6 months ago) by pcg |
Branch: | MAIN |
CVS Tags: | rel-2_1_0, rxvt-2-0, rel-4_0, rel-4_1, rel-4_2, rel-4_3, rel-3_7, rel-3_6, rel-3_5, rel-3_4, rel-3_3, rel-3_2, rel-2_8, rel-3_0, rel-2_7, rel-2_4, rel-2_5, rel-2_2, rel-2_3, rel-2_0, rel-3_8, rel-1-9, stable, rel-1-3, rel-1-2, rel-1_9, before_astyle, after_astyle |
Log Message: | *** empty log message *** |
# | User | Rev | Content |
---|---|---|---|
1 | pcg | 1.1 | #!/bin/sh |
2 | # gcc -Wall plus other important warnings not included in -Wall | ||
3 | |||
4 | for arg | ||
5 | do | ||
6 | case $arg in | ||
7 | -O*) Wuninitialized=-Wuninitialized;; # only makes sense with `-O' | ||
8 | esac | ||
9 | done | ||
10 | |||
11 | exec gcc \ | ||
12 | -Wall $Wuninitialized \ | ||
13 | -Wwrite-strings \ | ||
14 | -Wcast-qual \ | ||
15 | -Wbad-function-cast \ | ||
16 | -Wpointer-arith \ | ||
17 | -Wstrict-prototypes \ | ||
18 | -Wmissing-prototypes \ | ||
19 | -Wmissing-declarations \ | ||
20 | -Wnested-externs \ | ||
21 | -Wtraditional \ | ||
22 | -Wconversion \ | ||
23 | -Wcomment \ | ||
24 | -Wcast-align \ | ||
25 | -Winline \ | ||
26 | -Wshadow \ | ||
27 | -Wredundant-decls \ | ||
28 | -Wid-clash-31 \ | ||
29 | "$@" | ||
30 | |||
31 | # -Wall implies: | ||
32 | # -Wimplicit | ||
33 | # -Wreturn-type | ||
34 | # -Wunused | ||
35 | # -Wswitch | ||
36 | # -Wformat | ||
37 | # -Wchar-subscripts | ||
38 | # -Wparentheses | ||
39 | # -Wmissing-braces | ||
40 | ------------------------------------------------------------------------------ |