Commit 59001a69 authored by rl1987's avatar rl1987
Browse files

Address SC2086 in scan-build.sh

We can safely silence SC2086 warning on $CHECKERS, as contents of that
is hardcoded into script, and we don't want to require Bash to use Bash
array here. Double-quote $OUTPUTARG, as it's value depends on environment
variable.
parent d6eafd06
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -54,6 +54,7 @@ else
   OUTPUTARG=""
fi

# shellcheck disable=SC2086
scan-build \
    $CHECKERS \
    ./configure
@@ -63,13 +64,15 @@ scan-build \

# Make this not get scanned for dead assignments, since it has lots of
# dead assignments we don't care about.
# shellcheck disable=SC2086
scan-build \
    $CHECKERS \
    -disable-checker deadcode.DeadStores \
    make -j5 -k ./src/ext/ed25519/ref10/libed25519_ref10.a

# shellcheck disable=SC2086
scan-build \
    $CHECKERS $OUTPUTARG \
    $CHECKERS "$OUTPUTARG" \
    make -j5 -k

CHECKERS="\