Commit 5d7767e7 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

Check for warnings during configure and ckprg. Ignore a few more

warnings during make.
parent db43cd29
......@@ -264,18 +264,31 @@ log Begin response assembly
timeecho Collecting results
# Check for warnings
if test -f r/cfg.pass
then
egrep -i 'warning|\(w\)' r/cfglog.txt \
> r/cfgwarn.txt
if test `wc -l < r/cfgwarn.txt` -gt 0
then
mv r/cfg.pass r/cfg.warn
fi
fi
if test -f r/make.pass
then
egrep -i 'warning|\(w\)' r/makelog.txt \
| grep -v regex\\.c \
| grep -v 'aux-item-def-scan\.c:.*: warning: .* defined but not used' \
| grep -v 'getopt.h:.*: warning: function declaration isn.t a prototype' \
| grep -v '/usr/include/bits/socket.h:.*: warning: cast increases required alignment of target type' \
| grep -v '/usr/include/sys/vnode.h:.*: warning: declaration of .free. shadows global declaration' \
| grep -v '".*1506-112 .W. Duplicate type qualifier "volatile" ignored.' \
| grep -v 'sigflags.h:3[06]: warning: duplicate .volatile.' \
| grep -v 'sigflags.h:3[06]: warning: duplicate .volatile.' \
| grep -v 'connections.c:.*: warning: duplicate .volatile.' \
|grep -v '".*1506-112 .W. Duplicate type qualifier "volatile" ignored.' \
|grep -v '/usr/include/bits/socket.h:.*: warning: cast increases required alignment of target type' \
|grep -v '/usr/include/sys/vnode.h:.*: warning: declaration of .free. shadows global declaration' \
|grep -v 'aux-item-def-scan\.c:.*: warning: .* defined but not used' \
|grep -v 'connections.c:.*: warning: duplicate .volatile.' \
|grep -v 'getopt1?.[hc]:.*: warning: function declaration isn.t a prototype' \
|grep -v 'getopt.c:451: warning: .indfound. might be used uninitialized in this function' \
|grep -v 'getopt.c:461: warning: comparison between signed and unsigned' \
|grep -v 'ramkomd.c:\(188\|305\): warning: function declaration isn.t a prototype' \
|grep -v 'sigflags.h:3[06]: warning: duplicate .volatile.' \
|grep -v regex\\.c \
> r/makewarn.txt
if test `wc -l < r/makewarn.txt` -gt 0
then
......@@ -283,6 +296,20 @@ then
fi
fi
if test -f r/ckprg.pass
then
egrep -i 'warning|\(w\)' r/ckprglog.txt \
|grep -v 'WARNING: Couldn.t find the global config file.' \
|grep -v 'WARNING: Couldn.t find tool init file' \
> r/ckprgwarn.txt
if test `wc -l < r/ckprgwarn.txt` -gt 0
then
mv r/ckprg.pass r/ckprg.warn
fi
fi
# Collect stuff.
cp $BASE/config.cache r/configcache.txt
cp $BASE/config.h r/config-h.txt
for file in $BASE/src/server/testsuite/*.log
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment