1
0
Fork 0

adds -Werror=implicit-function-declaration

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@1022 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
This commit is contained in:
Xuefer 2012-07-22 03:28:21 +00:00
parent 8600576265
commit 3fea07c7fa
1 changed files with 6 additions and 3 deletions

View File

@ -130,14 +130,15 @@ phpize)
export PATH=$PHPDIRS/$phpbasename/bin:$PATH
phpize --clean \
&& phpize \
&& CFLAGS="-Wall -Wno-unused -W -Wshadow -std=gnu99" ./configure \
&& CFLAGS="-Wall -Wno-unused -W -Wshadow -Werror=implicit-function-declaration -std=gnu99" ./configure \
--enable-xcache-cacher \
--enable-xcache-optimizer \
--enable-xcache-encoder \
--enable-xcache-decoder \
--enable-xcache-disassembler \
--enable-xcache-coverager \
--enable-xcache-test --enable-xcache-constant
--enable-xcache-test \
--enable-xcache-constant
exit
;;
make)
@ -145,7 +146,9 @@ make)
;;
esac
LANG=C /usr/bin/make $MAKEOPTS "${MAKEARGS[@]}" 2>&1 | hi error implicit warn FAIL
LANG=C /usr/bin/make $MAKEOPTS "${MAKEARGS[@]}" 2>&1 \
| sed -ur 's#Werror=implicit-function-declaration#We/rror=i/mplicit-function-declaration#' \
| hi error implicit warn FAIL
ret=${PIPESTATUS[0]}
if [[ $ret -ne 0 || $type = make ]]; then
exit $ret