Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms.
This commit is contained in:
parent
226d80b821
commit
cbeb0b26e4
492 changed files with 3218 additions and 3167 deletions
4
bin/9c
4
bin/9c
|
|
@ -8,6 +8,8 @@ usegcc()
|
|||
-O2 \
|
||||
-c \
|
||||
-Wall \
|
||||
-ansi \
|
||||
-pedantic \
|
||||
-Wno-parentheses \
|
||||
-Wno-missing-braces \
|
||||
-Wno-switch \
|
||||
|
|
@ -67,7 +69,7 @@ xtmp=/tmp/9c.$$.$USER.out
|
|||
$cc -DPLAN9PORT -I$PLAN9/include $cflags "$@" 2>$xtmp
|
||||
status=$?
|
||||
grep -v '__p9l_autolib_' $xtmp |
|
||||
egrep -v ': error: .Each undeclared identifier|: error: for each function it appears|is dangerous, better use|is almost always misused|: In function |: At top level:' |
|
||||
egrep -v ': error: .Each undeclared identifier|: error: for each function it appears|is dangerous, better use|is almost always misused|: In function |: At top level:|support .long long.|In file included from| from|use of C99 long long|ISO C forbids conversion' |
|
||||
sed 's/ .first use in this function.$//; s/\"\([^\"][^\"]*\)\", line \([0-9][0-9]*\)/\1:\2/g' |
|
||||
uniq 1>&2
|
||||
rm -f $xtmp $xtmp.status
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue