]> The Tcpdump Group git mirrors - tcpdump/commitdiff
CI: Add missing SC2006 squelch directives. [skip ci]
authorDenis Ovsienko <[email protected]>
Fri, 23 Jul 2021 13:05:18 +0000 (14:05 +0100)
committerDenis Ovsienko <[email protected]>
Fri, 23 Jul 2021 13:05:18 +0000 (14:05 +0100)
build.sh
build_common.sh
build_matrix.sh

index 7f3931ba4bd56505a8ed94645188c4408b9a73ea..b5f205890de02ade7264666d6c8e66d4448f316e 100755 (executable)
--- a/build.sh
+++ b/build.sh
@@ -13,6 +13,7 @@
 . ./build_common.sh
 # Install directory prefix
 if [ -z "$PREFIX" ]; then
+    # shellcheck disable=SC2006
     PREFIX=`mktempdir tcpdump_build`
     echo "PREFIX set to '$PREFIX'"
 fi
@@ -51,11 +52,13 @@ run_after_echo make -s clean
 # are not warning-free for one or another reason. If you manage to fix one of
 # these cases, please remember to raise the bar here so if the warnings appear
 # again, it will trigger an error.
+# shellcheck disable=SC2006
 case `uname -s` in
     AIX)
         CFLAGS=
         ;;
     SunOS)
+        # shellcheck disable=SC2006
         case `uname -r` in
         5.10|5.11)
             CFLAGS=-Werror
index 0209806e982ffed691557e5f2e041c6c8fb050ba..50fcc388534f09314eac086a0e8e0628af283fbf 100644 (file)
@@ -105,6 +105,7 @@ run_after_echo() {
 }
 
 print_so_deps() {
+    # shellcheck disable=SC2006
     case `uname -s` in
     Darwin)
         run_after_echo otool -L "${1:?}"
index 2ee596b98f79ecd266e3c20aa3401a5dfa689680..42bbaa99a71bd2f7147476c76a02d11fca67451d 100755 (executable)
@@ -18,6 +18,7 @@
 print_sysinfo
 # Install directory prefix
 if [ -z "$PREFIX" ]; then
+    # shellcheck disable=SC2006
     PREFIX=`mktempdir tcpdump_build_matrix`
     echo "PREFIX set to '$PREFIX'"
     export PREFIX
@@ -28,6 +29,7 @@ build_tcpdump() {
     for CC in $MATRIX_CC; do
         export CC
         # Exclude gcc on macOS (it is just an alias for clang).
+        # shellcheck disable=SC2006
         if [ "$CC" = gcc ] && [ "`uname -s`" = Darwin ]; then
             echo '(skipped)'
             continue
@@ -38,6 +40,7 @@ build_tcpdump() {
                 export CRYPTO
                 for SMB in $MATRIX_SMB; do
                     export SMB
+                    # shellcheck disable=SC2006
                     COUNT=`increment $COUNT`
                     echo_magenta "===== SETUP $COUNT: BUILD_LIBPCAP=$BUILD_LIBPCAP REMOTE=${REMOTE:-?} CC=$CC CMAKE=$CMAKE CRYPTO=$CRYPTO SMB=$SMB ====="
                     # Run one build with setup environment variables: