Skip to content

Commit b448feb

Browse files
authored
Reducing Warnings - Address division by zero warnings by scan-build (#1063)
* Exclude bundled zlib from scan-build analysis
1 parent a949c2a commit b448feb

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.evergreen/compile-unix.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,11 @@ if [ "$ANALYZE" = "ON" ]; then
259259
else
260260
SCAN_BUILD_COMMAND="scan-build-3.9"
261261
fi
262+
263+
# Do not include bundled zlib in scan-build analysis.
264+
# scan-build `--exclude`` flag is not available on all Evergreen variants.
265+
CONFIGURE_FLAGS="$CONFIGURE_FLAGS -DENABLE_ZLIB=OFF"
266+
262267
$SCAN_BUILD_COMMAND $CMAKE $CONFIGURE_FLAGS .
263268

264269
# Put clang static analyzer results in scan/ and fail build if warnings found.

0 commit comments

Comments
 (0)