Test for HEAD method.
[darkhttpd] / devel / warns
1 #!/bin/sh
2 #
3 # Build with pretty-much all GCC warnings enabled.
4 #
5
6 # from FreeBSD's src/share/examples/etc/make.conf,v 1.279.10.3.2.1
7 BDECFLAGS="-W -Wall -pedantic -Wbad-function-cast -Wcast-align \
8 -Wcast-qual -Wchar-subscripts -Winline \
9 -Wmissing-prototypes -Wnested-externs -Wpointer-arith \
10 -Wredundant-decls -Wshadow -Wstrict-prototypes -Wwrite-strings"
11 # local change: removed -ansi above
12
13 # disabling:
14 # -Wunreachable-code
15 # -Wconversion
16 #
17 # (usually wrong, too noisy, complain about macros from system headers)
18
19 gcc -std=c99 $BDECFLAGS \
20 -Wextra -Waddress -Waggregate-return \
21 -Warray-bounds \
22 -Wclobbered \
23 -Wcomment -Wcoverage-mismatch \
24 -Wdisabled-optimization \
25 -Wempty-body \
26 -Wfloat-equal -Wformat -Wformat=2 \
27 -Wformat-nonliteral \
28 -Wformat-security -Wformat-y2k \
29 -Wignored-qualifiers -Wimplicit \
30 -Winit-self \
31 -Winvalid-pch \
32 -Wunsafe-loop-optimizations -Wlogical-op -Wlong-long -Wmain \
33 -Wmissing-braces -Wmissing-field-initializers -Wmissing-format-attribute \
34 -Wmissing-include-dirs -Wmissing-noreturn \
35 -Woverlength-strings -Wpacked \
36 -Wpacked-bitfield-compat -Wpadded -Wparentheses \
37 -Wreturn-type -Wsequence-point -Wsign-compare \
38 -Wsign-conversion -Wstack-protector -Wstrict-aliasing \
39 -Wstrict-overflow -Wstrict-overflow=5 -Wswitch \
40 -Wswitch-default -Wswitch-enum -Wsync-nand -Wtrigraphs \
41 -Wtype-limits -Wundef -Wuninitialized -Wunknown-pragmas \
42 -Wunused -Wunused-function -Wunused-label \
43 -Wunused-parameter -Wunused-value -Wunused-variable \
44 -Wvariadic-macros -Wvla -Wvolatile-register-var \
45 -Wabi \
46 -O -pipe -fstrict-aliasing ../darkhttpd.c
47
48 echo errcode: $?
49 rm -f a.out