# SDL: codechecker-buildbot.sh: Don't fail if a static analysis issue is reported.

**URL:** <https://discourse.libsdl.org/t/sdl-codechecker-buildbot-sh-dont-fail-if-a-static-analysis-issue-is-reported/32680>\
**Category:** SDL Commits\
**Created:** [August 27, 2021, 5:04am UTC](https://discourse.libsdl.org/t/sdl-codechecker-buildbot-sh-dont-fail-if-a-static-analysis-issue-is-reported/32680 "2021-08-27T05:04:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![SDLPushPostBot](https://discourse.libsdl.org/user_avatar/discourse.libsdl.org/sdlpushpostbot/32/4370_2.png) [@SDLPushPostBot](https://discourse.libsdl.org/u/SDLPushPostBot)\
**Post date:** [August 27, 2021, 5:04am UTC](https://discourse.libsdl.org/t/sdl-codechecker-buildbot-sh-dont-fail-if-a-static-analysis-issue-is-reported/32680/1 "2021-08-27T05:04:01Z")

</div>

> <https://github.com/libsdl-org/SDL/commit/a47f59bbe542e5cc21174208047916029cb18128>

```diff
From a47f59bbe542e5cc21174208047916029cb18128 Mon Sep 17 00:00:00 2001
From: "Ryan C. Gordon" <[EMAIL REDACTED]>
Date: Fri, 27 Aug 2021 01:03:14 -0400
Subject: [PATCH] codechecker-buildbot.sh: Don't fail if a static analysis
 issue is reported.

---
 build-scripts/codechecker-buildbot.sh | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/build-scripts/codechecker-buildbot.sh b/build-scripts/codechecker-buildbot.sh
index f39c08b8a1..e8c0a4cc30 100755
--- a/build-scripts/codechecker-buildbot.sh
+++ b/build-scripts/codechecker-buildbot.sh
@@ -31,7 +31,13 @@ perl -w -pi -e 's/\-arch\s+.*?\s+//g;' compile_commands.json
 
 rm -rf ../analysis
 CodeChecker analyze compile_commands.json -o ./reports
+
+# "parse" returns 2 if there was a static analysis issue to report, but this
+# does not signify an error in the parsing (that would be error code 1). Turn
+# off the abort-on-error flag.
+set +e
 CodeChecker parse ./reports -e html -o ../analysis
+set -e
 
 cd ..
 chmod -R a+r analysis

```
