Commit c49ef64c authored by Per Cederqvist's avatar Per Cederqvist
Browse files

Moved large sed script to warnings.sed.

parent d74e6d90
......@@ -130,24 +130,7 @@ cfgwarn () {
makewarn () {
egrep -i 'warning|\(w\)' r/makelog.txt \
|sed \
-e '/".*1506-112 .W. Duplicate type qualifier "volatile" ignored./d' \
-e '/\/usr\/include\/bits\/socket.h:.*: warning: cast increases required alignment of target type/d' \
-e '/\/usr\/include\/sys\/vnode.h:.*: warning: declaration of .free. shadows global declaration/d' \
-e '/aux-item-def-scan\.c:.*: warning: .* defined but not used/d' \
-e '/connections.c:.*: warning: duplicate .volatile./d' \
-e '/cc: 1501-245 Warning: Hard ulimit has been reduced to less than RLIM_INFINITY. There may not be enough space to complete the compilation./d' \
-e '/"format" is an unrecognized __declspec attribute/d' \
-e '/getopt.[hc]:.*: warning: function declaration isn.t a prototype/d' \
-e '/getopt.c:451: warning: .indfound. might be used uninitialized in this function/d' \
-e '/getopt.c:461: warning: comparison between signed and unsigned/d' \
-e '/getopt1.c:.*: warning: function declaration isn.t a prototype/d' \
-e '/ramkomd.c:156: warning: function declaration isn.t a prototype/d' \
-e '/sigflags.h:3[06]: warning: duplicate .volatile./d' \
-e '/regex\.c/d' \
-e '# glibc-2.1.2/gcc-2.95.2 on gratia'
-e '/\/usr\/include\/inttypes.h:427: warning: function returns an aggregate/d' \
-e '/\/usr\/include\/inttypes.h:428: warning: function call has aggregate value/d' \
| sed -f $BASE/scripts/warnings.sed \
> r/makewarn.txt
warnings=`wc -l < r/makewarn.txt`
if test $warnings -gt 0
......
Supports Markdown
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