Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
checker-buildbot.sh: Disable warnings that aren't explicitly static a…
…nalysis.
  • Loading branch information
icculus committed Nov 25, 2016
1 parent d1c35fe commit ff56c7b
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions build-scripts/checker-buildbot.sh
Expand Up @@ -46,6 +46,10 @@ fi

echo "\$MAKE is '$MAKE'"

# Unset $MAKE so submakes don't use it.
MAKECOMMAND="$MAKE"
unset MAKE

set -x
set -e

Expand All @@ -60,17 +64,17 @@ fi
mkdir checker-buildbot
cd checker-buildbot

# We turn off deprecated declarations, because we don't care about these warnings during static analysis.
# The -Wno-liblto is new since our checker-279 upgrade, I think; checker otherwise warns "libLTO.dylib relative to clang installed dir not found"

# You might want to do this for CMake-backed builds instead...
PATH="$CHECKERDIR/bin:$PATH" scan-build -o analysis cmake -DCMAKE_BUILD_TYPE=Debug -DASSERTIONS=enabled ..
PATH="$CHECKERDIR/bin:$PATH" scan-build -o analysis cmake -Wno-dev -DCMAKE_BUILD_TYPE=Debug -DASSERTIONS=enabled -DCMAKE_C_FLAGS="-Wno-deprecated-declarations" -DCMAKE_SHARED_LINKER_FLAGS="-Wno-liblto" ..

# ...or run configure without the scan-build wrapper...
#CC="$CHECKERDIR/libexec/ccc-analyzer" CFLAGS="-O0" ../configure --enable-assertions=enabled

# ...but this works for our buildbots just fine (EXCEPT ON LATEST MAC OS X).
#CFLAGS="-O0" PATH="$CHECKERDIR/bin:$PATH" scan-build -o analysis ../configure --enable-assertions=enabled
#CC="$CHECKERDIR/libexec/ccc-analyzer" CFLAGS="-O0 -Wno-deprecated-declarations" LDFLAGS="-Wno-liblto" ../configure --enable-assertions=enabled

rm -rf analysis
PATH="$CHECKERDIR/bin:$PATH" scan-build -o analysis $MAKE
PATH="$CHECKERDIR/bin:$PATH" scan-build -o analysis $MAKECOMMAND

if [ `ls -A analysis |wc -l` == 0 ] ; then
mkdir analysis/zarro
Expand Down

0 comments on commit ff56c7b

Please sign in to comment.