Browse Source

adds -Werror=implicit-function-declaration

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@1022 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
3.0
Xuefer 9 years ago
parent
commit
3fea07c7fa
  1. 9
      devel/run

9
devel/run

@ -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

Loading…
Cancel
Save