Fixed buildbot's static analysis script to enable assertions.
authorRyan C. Gordon <icculus@icculus.org>
Fri, 08 Jan 2016 07:21:15 -0500
changeset 10046 4b62fb588d22
parent 10045 e1f07cbb3c86
child 10047 281d1bfdacb1
Fixed buildbot's static analysis script to enable assertions. This removes false positives. Apparently someone forced the default CMake builds to use -O3, turning these off by default. :/
build-scripts/checker-buildbot.sh
--- a/build-scripts/checker-buildbot.sh	Thu Jan 07 19:58:00 2016 -0500
+++ b/build-scripts/checker-buildbot.sh	Fri Jan 08 07:21:15 2016 -0500
@@ -61,13 +61,13 @@
 cd checker-buildbot
 
 # You might want to do this for CMake-backed builds instead...
-PATH="$CHECKERDIR:$PATH" scan-build -o analysis cmake -DCMAKE_BUILD_TYPE=Debug ..
+PATH="$CHECKERDIR:$PATH" scan-build -o analysis cmake -DCMAKE_BUILD_TYPE=Debug -DASSERTIONS=enabled ..
 
 # ...or run configure without the scan-build wrapper...
-#CC="$CHECKERDIR/libexec/ccc-analyzer" CFLAGS="-O0" ../configure
+#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:$PATH" scan-build -o analysis ../configure
+#CFLAGS="-O0" PATH="$CHECKERDIR:$PATH" scan-build -o analysis ../configure --enable-assertions=enabled
 
 rm -rf analysis
 PATH="$CHECKERDIR:$PATH" scan-build -o analysis $MAKE