*** empty log message ***
[dana/urxvt.git] / src / gcc-Wall
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 ------------------------------------------------------------------------------