From 6e206663f61e8a0c8c0827a2af3f1559a4c5ca0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Szczerbi=C5=84ski?= Date: Tue, 26 Nov 2024 11:06:37 +0100 Subject: [PATCH 01/15] SNOW-1825584: Cache deps to speed up the builds (#781) --- .github/workflows/build-test.yml | 57 ++++++++++++++++++++++++++++++++ ci/build/build.sh | 13 +++++++- ci/build_win.bat | 15 ++++++++- scripts/_init.sh | 1 + scripts/utils.bat | 8 ----- scripts/utils.sh | 17 ++++++++-- 6 files changed, 99 insertions(+), 12 deletions(-) diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml index 94f4f15e5c..f71e7f1093 100644 --- a/.github/workflows/build-test.yml +++ b/.github/workflows/build-test.yml @@ -21,11 +21,25 @@ jobs: cloud_provider: [ 'AWS', 'AZURE', 'GCP' ] steps: - uses: actions/checkout@v1 + - name: Restore cached deps + id: cache-restore-deps + uses: actions/cache/restore@v4 + with: + path: dep-cache + key: ${{ matrix.build_type }}-${{ github.event.pull_request.base.sha }}-Linux-dep-cache + if: github.event_name == 'pull_request' - name: Build shell: bash env: BUILD_TYPE: ${{ matrix.build_type }} run: ci/build_linux.sh + - name: Cache deps + id: cache-save-deps + uses: actions/cache/save@v4 + with: + path: dep-cache + key: ${{ matrix.build_type }}-${{ github.sha }}-Linux-dep-cache + if: github.ref_name == github.event.repository.default_branch && matrix.cloud_provider == 'AWS' - uses: actions/setup-python@v1 with: python-version: '3.7' @@ -37,6 +51,7 @@ jobs: CLOUD_PROVIDER: ${{ matrix.cloud_provider }} PARAMETERS_SECRET: ${{ secrets.PARAMETERS_SECRET }} run: ci/test_linux.sh + build-test-win: name: Build-Test-Win runs-on: windows-2019 @@ -49,6 +64,13 @@ jobs: cloud_provider: [ 'AWS', 'AZURE', 'GCP' ] steps: - uses: actions/checkout@v1 + - name: Restore cached deps + id: cache-restore-deps + uses: actions/cache/restore@v4 + with: + path: dep-cache + key: ${{ matrix.build_type }}-${{ matrix.platform }}-${{ matrix.vs_version }}-${{ github.event.pull_request.base.sha }}-Win-dep-cache + if: github.event_name == 'pull_request' - name: Build shell: cmd env: @@ -56,6 +78,13 @@ jobs: BUILD_TYPE: ${{ matrix.build_type }} VS_VERSION: ${{ matrix.vs_version }} run: ci\build_win.bat + - name: Cache deps + id: cache-save-deps + uses: actions/cache/save@v4 + with: + path: dep-cache + key: ${{ matrix.build_type }}-${{ matrix.platform }}-${{ matrix.vs_version }}-${{ github.sha }}-Win-dep-cache + if: github.ref_name == github.event.repository.default_branch && matrix.cloud_provider == 'AWS' - uses: actions/setup-python@v1 with: python-version: '3.7' @@ -81,6 +110,13 @@ jobs: cloud_provider: [ 'AWS', 'AZURE', 'GCP' ] steps: - uses: actions/checkout@v1 + - name: Restore cached deps + id: cache-restore-deps + uses: actions/cache/restore@v4 + with: + path: dep-cache + key: ${{ matrix.build_type }}-${{ matrix.platform }}-${{ matrix.vs_version }}-${{ github.event.pull_request.base.sha }}-Win-dep-cache + if: github.event_name == 'pull_request' - name: Build shell: cmd env: @@ -88,6 +124,13 @@ jobs: BUILD_TYPE: ${{ matrix.build_type }} VS_VERSION: ${{ matrix.vs_version }} run: ci\build_win.bat + - name: Cache deps + id: cache-save-deps + uses: actions/cache/save@v4 + with: + path: dep-cache + key: ${{ matrix.build_type }}-${{ matrix.platform }}-${{ matrix.vs_version }}-${{ github.sha }}-Win-dep-cache + if: github.ref_name == github.event.repository.default_branch && matrix.cloud_provider == 'AWS' - uses: actions/setup-python@v1 with: python-version: '3.7' @@ -114,11 +157,25 @@ jobs: - name: Install Homebrew Bash shell: bash run: brew install bash + - name: Restore cached deps + id: cache-restore-deps + uses: actions/cache/restore@v4 + with: + path: dep-cache + key: ${{ matrix.build_type }}-${{ github.event.pull_request.base.sha }}-Mac-dep-cache + if: github.event_name == 'pull_request' - name: Build shell: bash env: BUILD_TYPE: ${{ matrix.build_type }} run: ./ci/build_mac.sh + - name: Cache deps + id: cache-save-deps + uses: actions/cache/save@v4 + with: + path: dep-cache + key: ${{ matrix.build_type }}-${{ github.sha }}-Mac-dep-cache + if: github.ref_name == github.event.repository.default_branch && matrix.cloud_provider == 'AWS' - name: Test shell: bash env: diff --git a/ci/build/build.sh b/ci/build/build.sh index 256be4a3e9..e42206d14b 100755 --- a/ci/build/build.sh +++ b/ci/build/build.sh @@ -23,7 +23,17 @@ function download_build_component() local component_version=$($component_script -v) local zip_file_name=$(get_zip_file_name $component_name $component_version $build_type) if [[ -n "$GITHUB_ACTIONS" ]]; then - "$component_script" -t "$build_type" + if cp "$CACHE_DIR/$zip_file_name" "$ARTIFACTS_DIR"; + then + echo "=== using cached: $component_name ===" + pushd $DEPENDENCY_DIR >& /dev/null + tar xvfz $ARTIFACTS_DIR/$zip_file_name + popd >& /dev/null + else + echo "=== building dep: $component_name ===" + "$component_script" -t "$build_type" + cache_dependency $component_name $component_version $build_type + fi else echo "=== download or build $component_name ===" ret="$(check_directory $component_name $build_type)" @@ -63,6 +73,7 @@ function build_component() echo "=== build: $component_name ===" "$component_script" -t "$build_type" "$other_args" local component_version=$("$component_script" -v) + if [[ -z "$GITHUB_ACTIONS" ]] && [[ -n "$GIT_BRANCH" ]]; then upload_to_sfc_jenkins $component_name $component_version $build_type if [[ "$GIT_BRANCH" == "origin/master" || "$GIT_BRANCH" == "master" ]]; then diff --git a/ci/build_win.bat b/ci/build_win.bat index 58fb19422e..67fb0e9ff5 100644 --- a/ci/build_win.bat +++ b/ci/build_win.bat @@ -82,7 +82,20 @@ goto :EOF call %build_script% :get_version call %utils_script% :get_zip_file_name %component_name% %version% if defined GITHUB_ACTIONS ( - call %build_script% :build %platform% %build_type% %vs_version% %dynamic_runtime% + cmd /c copy %curdir%\dep-cache\%zip_file_name% %curdir%\artifacts\ + if !ERRORLEVEL! NEQ 0 ( + call %build_script% :build %platform% %build_type% %vs_version% %dynamic_runtime% + echo === copying %curdir%\artifacts\%zip_file_name% === + if not exist "%curdir%\dep-cache" md "%curdir%\dep-cache" + cmd /c copy "artifacts\%zip_file_name%" "%curdir%\dep-cache\" + ) else ( + if not exist deps-build\%arcdir%\%vsdir%\%build_type% md deps-build\%arcdir%\%vsdir%\%build_type% + pushd deps-build\%arcdir%\%vsdir%\%build_type% + if !ERRORLEVEL! NEQ 0 goto :error + rd /s /q %component_name% + 7z x "%curdir%\artifacts\%zip_file_name%" + popd + ) if !ERRORLEVEL! NEQ 0 goto :error ) else ( echo === download or build: %component_name% === diff --git a/scripts/_init.sh b/scripts/_init.sh index 4fee10d77a..534a8a488f 100755 --- a/scripts/_init.sh +++ b/scripts/_init.sh @@ -10,6 +10,7 @@ export TERM=vt100 DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" DEPS_DIR=$(cd $DIR/../deps && pwd) ARTIFACTS_DIR=$DIR/../artifacts +CACHE_DIR="$DIR/../dep-cache" mkdir -p $ARTIFACTS_DIR PLATFORM=$(echo $(uname) | tr '[:upper:]' '[:lower:]') diff --git a/scripts/utils.bat b/scripts/utils.bat index d9919cbf36..7ada8f3944 100644 --- a/scripts/utils.bat +++ b/scripts/utils.bat @@ -75,10 +75,6 @@ goto :EOF :zip_file setlocal - if not defined JENKINS_URL ( - echo === No zip file is created if not Jenkins - goto :EOF - ) set component_name=%~1 set component_version=%~2 if not exist artifacts md artifacts @@ -94,10 +90,6 @@ goto :EOF :zip_files setlocal - if not defined JENKINS_URL ( - echo === No zip file is created if not Jenkins - goto :EOF - ) set component_name=%~1 set component_version=%~2 set files=%~3 diff --git a/scripts/utils.sh b/scripts/utils.sh index 449cfbfbda..5617ce6e31 100755 --- a/scripts/utils.sh +++ b/scripts/utils.sh @@ -65,7 +65,7 @@ function zip_file() local zip_file_name=$(get_zip_file_name "$component_name" "$component_version" "$build_type") - if [[ -z "$GITHUB_ACTIONS" ]] && [[ -n "$GIT_BRANCH" ]]; then + if [[ -n "$GIT_BRANCH" ]]; then local f=$UTILS_DIR/../artifacts/$zip_file_name rm -f $f pushd $DEPENDENCY_DIR/ @@ -85,7 +85,7 @@ function zip_files() local zip_file_name=$(get_zip_file_name "$component_name" "$component_version" "$build_type") - if [[ -z "$GITHUB_ACTIONS" ]] && [[ -n "$GIT_BRANCH" ]]; then + if [[ -n "$GIT_BRANCH" ]]; then local f=$UTILS_DIR/../artifacts/$zip_file_name rm -f $f pushd $DEPENDENCY_DIR/ @@ -117,6 +117,18 @@ function upload_to_sfc_dev1_data() aws s3 cp --only-show-errors $UTILS_DIR/../artifacts/$zip_file_name $DEP_URL_PREFIX/$component_name/ } +function cache_dependency() +{ + + local component_name=$1 + local component_version=$2 + local build_type=$3 + + local zip_file_name=$(get_zip_file_name $component_name $component_version $build_type) + mkdir -p $CACHE_DIR + cp $UTILS_DIR/../artifacts/$zip_file_name "$CACHE_DIR/" +} + function upload_to_sfc_jenkins() { local component_name=$1 @@ -180,3 +192,4 @@ function set_parameters() exit 1 fi } + From 870660435d9bba371a1a61c9fc58b5d7b4176ddb Mon Sep 17 00:00:00 2001 From: Dominik Przybysz <132913826+sfc-gh-dprzybysz@users.noreply.github.com> Date: Tue, 26 Nov 2024 15:59:49 +0100 Subject: [PATCH 02/15] SNOW-1825712: Update GH actions versions (#780) --- .github/workflows/build-test.yml | 20 ++++++++++---------- .github/workflows/jira_close.yml | 2 +- .github/workflows/jira_issue.yml | 2 +- .github/workflows/snyk-issue.yml | 2 +- .github/workflows/snyk-pr.yml | 4 ++-- 5 files changed, 15 insertions(+), 15 deletions(-) diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml index f71e7f1093..51f90af704 100644 --- a/.github/workflows/build-test.yml +++ b/.github/workflows/build-test.yml @@ -20,7 +20,7 @@ jobs: build_type: [ 'Debug', 'Release' ] cloud_provider: [ 'AWS', 'AZURE', 'GCP' ] steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v4 - name: Restore cached deps id: cache-restore-deps uses: actions/cache/restore@v4 @@ -40,7 +40,7 @@ jobs: path: dep-cache key: ${{ matrix.build_type }}-${{ github.sha }}-Linux-dep-cache if: github.ref_name == github.event.repository.default_branch && matrix.cloud_provider == 'AWS' - - uses: actions/setup-python@v1 + - uses: actions/setup-python@v5 with: python-version: '3.7' architecture: 'x64' @@ -63,7 +63,7 @@ jobs: vs_version: [ 'VS16' ] cloud_provider: [ 'AWS', 'AZURE', 'GCP' ] steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v4 - name: Restore cached deps id: cache-restore-deps uses: actions/cache/restore@v4 @@ -85,7 +85,7 @@ jobs: path: dep-cache key: ${{ matrix.build_type }}-${{ matrix.platform }}-${{ matrix.vs_version }}-${{ github.sha }}-Win-dep-cache if: github.ref_name == github.event.repository.default_branch && matrix.cloud_provider == 'AWS' - - uses: actions/setup-python@v1 + - uses: actions/setup-python@v5 with: python-version: '3.7' architecture: 'x64' @@ -109,7 +109,7 @@ jobs: vs_version: [ 'VS17' ] cloud_provider: [ 'AWS', 'AZURE', 'GCP' ] steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v4 - name: Restore cached deps id: cache-restore-deps uses: actions/cache/restore@v4 @@ -131,7 +131,7 @@ jobs: path: dep-cache key: ${{ matrix.build_type }}-${{ matrix.platform }}-${{ matrix.vs_version }}-${{ github.sha }}-Win-dep-cache if: github.ref_name == github.event.repository.default_branch && matrix.cloud_provider == 'AWS' - - uses: actions/setup-python@v1 + - uses: actions/setup-python@v5 with: python-version: '3.7' architecture: 'x64' @@ -153,7 +153,7 @@ jobs: build_type: [ 'Debug', 'Release' ] cloud_provider: [ 'AWS', 'AZURE', 'GCP' ] steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v4 - name: Install Homebrew Bash shell: bash run: brew install bash @@ -192,14 +192,14 @@ jobs: matrix: build_type: [ 'Release' ] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Build shell: bash env: BUILD_TYPE: ${{ matrix.build_type }} CLIENT_CODE_COVERAGE: 1 run: ci/build_linux.sh - - uses: actions/setup-python@v1 + - uses: actions/setup-python@v5 with: python-version: '3.7' architecture: 'x64' @@ -220,7 +220,7 @@ jobs: PARAMETERS_SECRET: ${{ secrets.PARAMETERS_SECRET }} run: ci/test_linux.sh - name: Upload coverage reports to Codecov - uses: codecov/codecov-action@v3 + uses: codecov/codecov-action@v5 with: # without the token code cov may fail because of Github limits https://github.com/codecov/codecov-action/issues/557 token: ${{ secrets.CODE_COV_UPLOAD_TOKEN }} diff --git a/.github/workflows/jira_close.yml b/.github/workflows/jira_close.yml index dfcb8bc73f..0dacf7fab6 100644 --- a/.github/workflows/jira_close.yml +++ b/.github/workflows/jira_close.yml @@ -9,7 +9,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: repository: snowflakedb/gh-actions ref: jira_v1 diff --git a/.github/workflows/jira_issue.yml b/.github/workflows/jira_issue.yml index f318699ff4..700cf4059e 100644 --- a/.github/workflows/jira_issue.yml +++ b/.github/workflows/jira_issue.yml @@ -14,7 +14,7 @@ jobs: if: ((github.event_name == 'issue_comment' && github.event.comment.body == 'recreate jira' && github.event.comment.user.login == 'sfc-gh-mkeller') || (github.event_name == 'issues' && github.event.pull_request.user.login != 'whitesource-for-github-com[bot]')) steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: repository: snowflakedb/gh-actions ref: jira_v1 diff --git a/.github/workflows/snyk-issue.yml b/.github/workflows/snyk-issue.yml index 13455aa5af..9adc7e280a 100644 --- a/.github/workflows/snyk-issue.yml +++ b/.github/workflows/snyk-issue.yml @@ -16,7 +16,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout Action - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: snowflakedb/whitesource-actions token: ${{ secrets.WHITESOURCE_ACTION_TOKEN }} diff --git a/.github/workflows/snyk-pr.yml b/.github/workflows/snyk-pr.yml index 10e975fc16..fa51aec337 100644 --- a/.github/workflows/snyk-pr.yml +++ b/.github/workflows/snyk-pr.yml @@ -15,13 +15,13 @@ jobs: if: ${{ github.event.pull_request.user.login == 'sfc-gh-snyk-sca-sa' }} steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: ref: ${{ github.event.pull_request.head.ref }} fetch-depth: 0 - name: Checkout Action - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: snowflakedb/whitesource-actions token: ${{ secrets.WHITESOURCE_ACTION_TOKEN }} From 5bb0bd7d08b3748cb2e86b6fe0fa59cdf0cdf0d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Szczerbi=C5=84ski?= Date: Wed, 27 Nov 2024 07:06:20 +0100 Subject: [PATCH 03/15] NO-SNOW: Cancel old workflows (#783) --- .github/workflows/build-test.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml index 51f90af704..ae11ecc52d 100644 --- a/.github/workflows/build-test.yml +++ b/.github/workflows/build-test.yml @@ -10,6 +10,11 @@ on: branches: - '**' +concurrency: + # older builds for the same pull request numer or branch should be cancelled + cancel-in-progress: true + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + jobs: build-test-linux: name: Build-Test-Linux From 6283bf58b4c57750842eff2c98dcd342d4021b33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miko=C5=82aj=20Kubik?= Date: Wed, 27 Nov 2024 18:08:47 +0100 Subject: [PATCH 04/15] SNOW-1831184 Exclude nghttp2 from curl build on unix (#786) --- scripts/build_azuresdk.sh | 2 +- scripts/build_curl.sh | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/build_azuresdk.sh b/scripts/build_azuresdk.sh index 58399f547b..594096b429 100755 --- a/scripts/build_azuresdk.sh +++ b/scripts/build_azuresdk.sh @@ -12,7 +12,7 @@ function usage() { set -o pipefail AZURE_SRC_VERSION=0.1.20 -AZURE_BUILD_VERSION=12 +AZURE_BUILD_VERSION=13 AZURE_DIR=azure-storage-cpplite-$AZURE_SRC_VERSION AZURE_VERSION=$AZURE_SRC_VERSION.$AZURE_BUILD_VERSION diff --git a/scripts/build_curl.sh b/scripts/build_curl.sh index 10e38e4a09..8b2462dd82 100755 --- a/scripts/build_curl.sh +++ b/scripts/build_curl.sh @@ -13,7 +13,7 @@ function usage() { set -o pipefail CURL_SRC_VERSION=8.10.1 -CURL_BUILD_VERSION=2 +CURL_BUILD_VERSION=3 CURL_VERSION=${CURL_SRC_VERSION}.${CURL_BUILD_VERSION} DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" @@ -51,6 +51,7 @@ curl_configure_opts+=( "--without-brotli" "--without-zstd" "--without-libpsl" + "--without-nghttp2" "--disable-rtsp" "--disable-ldap" "--disable-ldaps" From bee0e58f984a08797a227a0f368a1f48c0ed6f63 Mon Sep 17 00:00:00 2001 From: Harry Xi Date: Wed, 4 Dec 2024 02:06:40 -0800 Subject: [PATCH 05/15] SNOW-1789750: support GCS regional endpoint (#788) --- cpp/SnowflakeGCSClient.cpp | 33 +++++++++++++++- cpp/SnowflakeGCSClient.hpp | 2 + cpp/SnowflakeS3Client.cpp | 8 +++- cpp/StatementPutGet.cpp | 14 ++++--- include/snowflake/PutGetParseResponse.hpp | 16 ++++++-- lib/client.c | 7 +++- lib/client_int.h | 9 ++++- tests/test_unit_put_get_gcs.cpp | 48 ++++++++++++++++++++++- 8 files changed, 120 insertions(+), 17 deletions(-) diff --git a/cpp/SnowflakeGCSClient.cpp b/cpp/SnowflakeGCSClient.cpp index 774ad54432..074a3ff055 100644 --- a/cpp/SnowflakeGCSClient.cpp +++ b/cpp/SnowflakeGCSClient.cpp @@ -21,7 +21,12 @@ namespace static const std::string GCS_TOKEN_KEY = "GCS_ACCESS_TOKEN"; // followings are from GCS documentation, XML API // https://cloud.google.com/storage/docs - static const std::string GCS_ENDPOINT = "https://storage.googleapis.com"; + static const std::string GCS_ENDPOINT = "storage.googleapis.com"; + static const std::string GCS_REGIONAL_ENDPOINT = "storage.%s.rep.googleapis.com"; + // me-central2 GCS region always use regional urls + // TODO SNOW-1818804: the value is hardcoded now, but it should be server driven + static const std::string GCS_REGION_ME_CENTRAL_2 = "me-central2"; + static const size_t URL_MAX_LEN = 2048; static const std::string GCS_AUTH_HEADER = "Authorization: Bearer "; } @@ -41,11 +46,35 @@ SnowflakeGCSClient::SnowflakeGCSClient(StageInfo *stageInfo, unsigned int parall CXX_LOG_INFO("Using GCS down scoped token."); } + if (!m_stageInfo) + { + CXX_LOG_INFO("Internal error: invalid stage info"); + return; + } + //Ensure the stage location ended with / if ((!m_stageInfo->location.empty()) && (m_stageInfo->location.back() != '/')) { m_stageInfo->location.push_back('/'); } + + m_stageEndpoint = GCS_ENDPOINT; + if (!m_stageInfo->endPoint.empty()) + { + m_stageEndpoint = m_stageInfo->endPoint; + } + else + { + bool isMeCentral2 = (0 == sf_strncasecmp(GCS_REGION_ME_CENTRAL_2.c_str(), + m_stageInfo->region.c_str(), + GCS_REGION_ME_CENTRAL_2.size())); + if (isMeCentral2 || m_stageInfo->useRegionalUrl) + { + char buf[URL_MAX_LEN + 1]; + sf_sprintf(buf, sizeof(buf), GCS_REGIONAL_ENDPOINT.c_str(), m_stageInfo->region.c_str()); + m_stageEndpoint = buf; + } + } } SnowflakeGCSClient::~SnowflakeGCSClient() @@ -274,7 +303,7 @@ void SnowflakeGCSClient::buildGcsRequest(const std::string& filePathFull, object = encodeUrlName(object); // https://storage.googleapis.com//BUCKET_NAME/OBJECT_NAME - url = GCS_ENDPOINT + "/" + bucket + "/" + object; + url = "https://" + m_stageEndpoint + "/" + bucket + "/" + object; CXX_LOG_DEBUG("Build GCS request for file %s as URL: %s", filePathFull.c_str(), url.c_str()); return; diff --git a/cpp/SnowflakeGCSClient.hpp b/cpp/SnowflakeGCSClient.hpp index 4ac4aed72c..4d32fc8084 100644 --- a/cpp/SnowflakeGCSClient.hpp +++ b/cpp/SnowflakeGCSClient.hpp @@ -112,6 +112,8 @@ class SnowflakeGCSClient : public Snowflake::Client::IStorageClient IStatementPutGet* m_statement; std::string m_gcsAccessToken; + + std::string m_stageEndpoint; }; } } diff --git a/cpp/SnowflakeS3Client.cpp b/cpp/SnowflakeS3Client.cpp index 2ecce44678..858b20334c 100755 --- a/cpp/SnowflakeS3Client.cpp +++ b/cpp/SnowflakeS3Client.cpp @@ -140,10 +140,14 @@ SnowflakeS3Client::SnowflakeS3Client(StageInfo *stageInfo, clientConfiguration.connectTimeoutMs = 30000; // FIPS mode check - if (!(m_stageInfo->endPoint.empty())) { + if (!(m_stageInfo->endPoint.empty())) + { // FIPS mode is enabled, use the endpoint provided by GS directly clientConfiguration.endpointOverride = Aws::String(stageInfo->endPoint); - } else if (transferConfig != nullptr && transferConfig->useS3regionalUrl) { + } + else if ((transferConfig != nullptr && transferConfig->useS3regionalUrl) || + (m_stageInfo->useS3RegionalUrl) || (m_stageInfo->useRegionalUrl)) + { clientConfiguration.endpointOverride = Aws::String("s3.") + Aws::String(clientConfiguration.region) + Aws::String(".") diff --git a/cpp/StatementPutGet.cpp b/cpp/StatementPutGet.cpp index 989affbf89..a92f22b1cb 100755 --- a/cpp/StatementPutGet.cpp +++ b/cpp/StatementPutGet.cpp @@ -82,14 +82,18 @@ bool StatementPutGet::parsePutGetCommand(std::string *sql, putGetParseResponse->stageInfo.location = response->stage_info->location; putGetParseResponse->stageInfo.path = response->stage_info->path; + if (response->stage_info->region != NULL) + { + putGetParseResponse->stageInfo.region = response->stage_info->region; + } + if (response->stage_info->endPoint != NULL) { + putGetParseResponse->stageInfo.endPoint = response->stage_info->endPoint; + } + putGetParseResponse->stageInfo.useRegionalUrl = response->stage_info->useRegionalUrl; if (sf_strncasecmp(response->stage_info->location_type, "s3", 2) == 0) { putGetParseResponse->stageInfo.stageType = StageType::S3; - putGetParseResponse->stageInfo.region = response->stage_info->region; - // FIPS Support - if (response->stage_info->endPoint != NULL) { - putGetParseResponse->stageInfo.endPoint = response->stage_info->endPoint; - } + putGetParseResponse->stageInfo.useS3RegionalUrl = (SF_BOOLEAN_TRUE == response->stage_info->useS3RegionalUrl); putGetParseResponse->stageInfo.credentials = { {"AWS_KEY_ID", response->stage_info->stage_cred->aws_key_id}, {"AWS_SECRET_KEY", response->stage_info->stage_cred->aws_secret_key}, diff --git a/include/snowflake/PutGetParseResponse.hpp b/include/snowflake/PutGetParseResponse.hpp index dd0f16b846..64ffcf892f 100755 --- a/include/snowflake/PutGetParseResponse.hpp +++ b/include/snowflake/PutGetParseResponse.hpp @@ -54,12 +54,20 @@ struct StageInfo std::string path; - // required by s3 client - std::string region; + std::string region; // S3/GCS region - std::string storageAccount; //Required by Azure + // An endpoint (Azure, AWS FIPS and GCS custom endpoint override) + std::string endPoint; + + // whether to use s3 regional URL (AWS Only) + // TODO SNOW-1818804: this field will be deprecated when the server returns {@link + // #useRegionalUrl} + bool useS3RegionalUrl; - std::string endPoint; //Required by Azure & for S3 FIPS + // whether to use regional URL (AWS and GCS only) + bool useRegionalUrl; + + std::string storageAccount; //Required by Azure std::string presignedUrl; //Required by GCS for uploading diff --git a/lib/client.c b/lib/client.c index 587cdb1692..6b818a4fb6 100644 --- a/lib/client.c +++ b/lib/client.c @@ -2188,6 +2188,12 @@ SF_STATUS STDCALL _snowflake_execute_ex(SF_STMT *sfstmt, stage_info, "storageAccount"); json_copy_string(&sfstmt->put_get_response->stage_info->endPoint, stage_info, "endPoint"); + sf_bool useS3RegionalUrl = SF_BOOLEAN_FALSE; + json_copy_bool(&useS3RegionalUrl, stage_info, "useS3RegionalUrl"); + sfstmt->put_get_response->stage_info->useS3RegionalUrl = useS3RegionalUrl; + sf_bool useRegionalURL = SF_BOOLEAN_FALSE; + json_copy_bool(&useRegionalURL, stage_info, "useRegionalUrl"); + sfstmt->put_get_response->stage_info->useRegionalUrl = useRegionalURL; json_copy_string( &sfstmt->put_get_response->stage_info->stage_cred->aws_secret_key, stage_cred, "AWS_SECRET_KEY"); @@ -2203,7 +2209,6 @@ SF_STATUS STDCALL _snowflake_execute_ex(SF_STMT *sfstmt, json_copy_string( &sfstmt->put_get_response->localLocation, data, "localLocation"); - } else { // Set Database info _mutex_lock(&sfstmt->connection->mutex_parameters); diff --git a/lib/client_int.h b/lib/client_int.h index ed6b46c5a2..5a93a9a72c 100644 --- a/lib/client_int.h +++ b/lib/client_int.h @@ -92,8 +92,15 @@ typedef struct SF_STAGE_INFO { char *location; char *path; char *region; - char *storageAccount; // For Azure only + // An endpoint (Azure, AWS FIPS and GCS custom endpoint override) char *endPoint; //For FIPS and Azure support + // whether to use s3 regional URL (AWS Only) + // TODO SNOW-1818804: this field will be deprecated when the server returns {@link + // #useRegionalUrl} + sf_bool useS3RegionalUrl; + // whether to use regional URL (AWS and GCS only) + sf_bool useRegionalUrl; + char* storageAccount; // For Azure only SF_STAGE_CRED * stage_cred; } SF_STAGE_INFO; diff --git a/tests/test_unit_put_get_gcs.cpp b/tests/test_unit_put_get_gcs.cpp index 53872e9ff2..b0e88770eb 100644 --- a/tests/test_unit_put_get_gcs.cpp +++ b/tests/test_unit_put_get_gcs.cpp @@ -31,17 +31,24 @@ using namespace ::Snowflake::Client; class MockedGCSStatement : public Snowflake::Client::IStatementPutGet { public: - MockedGCSStatement(bool useGcsToken) + MockedGCSStatement(bool useGcsToken, + bool useRegionalUrl = false, + std::string region = "", + std::string endpoint = "", + std::string expectedEndpoint = "storage.googleapis.com") : m_useGcsToken(useGcsToken), m_firstTime(true), m_isPut(false), Snowflake::Client::IStatementPutGet() { m_stageInfo.stageType = Snowflake::Client::StageType::GCS; + m_stageInfo.useRegionalUrl = useRegionalUrl; + m_stageInfo.region = region; + m_stageInfo.endPoint = endpoint; if (m_useGcsToken) { m_stageInfo.credentials = { { "GCS_ACCESS_TOKEN", (char*)"fake gcs token"} }; - m_expectedUrl = "https://storage.googleapis.com/FakeGcsLocation/small_file.csv.gz"; + m_expectedUrl = std::string("https://") + expectedEndpoint + "/FakeGcsLocation/small_file.csv.gz"; } else { @@ -226,6 +233,25 @@ void get_gcs_test_core(bool useGcsToken) } } +// test helper for regional url +void gcs_regional_url_test_core(bool useRegionalUrl, std::string region, std::string endpoint, std::string expectedEndpoint) +{ + std::string cmd = std::string("put file://small_file.csv.gz @odbctestStage AUTO_COMPRESS=false"); + + MockedGCSStatement mockedStatementPut(true, useRegionalUrl, region, endpoint, expectedEndpoint); + + Snowflake::Client::FileTransferAgent agent(&mockedStatementPut); + + ITransferResult* result = agent.execute(&cmd); + + std::string put_status; + while (result->next()) + { + result->getColumnAsString(6, put_status); + assert_string_equal("UPLOADED", put_status.c_str()); + } +} + /** * Simple put test case with gcs token */ @@ -258,6 +284,21 @@ void test_simple_get_gcs_with_presignedurl(void ** unused) get_gcs_test_core(false); } +void test_gcs_use_regional_url(void** unused) +{ + gcs_regional_url_test_core(true, "testregion", "", "storage.testregion.rep.googleapis.com"); +} + +void test_gcs_use_me2_region(void** unused) +{ + gcs_regional_url_test_core(false, "me-central2", "", "storage.me-central2.rep.googleapis.com"); +} + +void test_gcs_override_endpoint(void** unused) +{ + gcs_regional_url_test_core(false, "testregion", "testendpoint.googleapis.com", "testendpoint.googleapis.com"); +} + static int gr_setup(void **unused) { initialize_test(SF_BOOLEAN_FALSE); @@ -270,6 +311,9 @@ int main(void) { cmocka_unit_test(test_simple_get_gcs_with_token), cmocka_unit_test(test_simple_put_gcs_with_presignedurl), cmocka_unit_test(test_simple_get_gcs_with_presignedurl), + cmocka_unit_test(test_gcs_use_regional_url), + cmocka_unit_test(test_gcs_use_me2_region), + cmocka_unit_test(test_gcs_override_endpoint), }; int ret = cmocka_run_group_tests(tests, gr_setup, NULL); return ret; From 2ff27d5dfb2e823946344b18bd461ce292f3d549 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Szczerbi=C5=84ski?= Date: Thu, 5 Dec 2024 14:56:30 +0100 Subject: [PATCH 06/15] SNOW-1812871: Setup pipeline with warnings (#777) --- .github/workflows/code-quality.yml | 76 + .gitignore | 1 + CMakeLists.txt | 90 +- ci/build_linux.sh | 1 + ci/scripts/generate_warning_report.py | 152 + ci/scripts/warning_report.sh | 13 + ci/scripts/warnings_baseline.json | 4079 +++++++++++++++++++++++++ cmake/flags.cmake | 41 + cmake/platform.cmake | 28 + scripts/build_libsnowflakeclient.sh | 6 +- tests/CMakeLists.txt | 4 - tests/unit_test_ocsp/CMakeLists.txt | 3 +- tests/unit_test_ocsp/test_ocsp.c | 2 +- 13 files changed, 4412 insertions(+), 84 deletions(-) create mode 100644 .github/workflows/code-quality.yml create mode 100644 ci/scripts/generate_warning_report.py create mode 100755 ci/scripts/warning_report.sh create mode 100644 ci/scripts/warnings_baseline.json create mode 100644 cmake/flags.cmake create mode 100644 cmake/platform.cmake diff --git a/.github/workflows/code-quality.yml b/.github/workflows/code-quality.yml new file mode 100644 index 0000000000..1f6a5d629b --- /dev/null +++ b/.github/workflows/code-quality.yml @@ -0,0 +1,76 @@ +name: Code quality + +on: + push: + branches: + - master + tags: + - v* + pull_request: + branches: + - '**' + +jobs: + check-warnings: + name: Extra-Warnings-Linux + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + build_type: [ 'Release' ] + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: '3.13' + architecture: 'x64' + - name: Restore cached deps + id: cache-restore-deps + uses: actions/cache/restore@v4 + with: + path: dep-cache + key: ${{ matrix.build_type }}-${{ github.event.pull_request.base.sha }}-Linux-dep-cache + if: github.event_name == 'pull_request' + - name: Build + shell: bash + env: + USE_EXTRA_WARNINGS: "true" + BUILD_TYPE: ${{ matrix.build_type }} + run: ci/build_linux.sh + - name: Restore cached warnings + id: cache-restore-warnings + uses: actions/cache/restore@v4 + with: + path: warnings.json + key: ${{ github.event.pull_request.base.sha }}-compile-warnings + if: github.event_name == 'pull_request' + - name: Use cached warnings as a baseline + shell: bash + run: cp warnings.json ./ci/scripts/warnings_baseline.json + if: steps.cache-restore-warnings.outputs.cache-hit == true + - name: Warning report + shell: bash + run: ci/scripts/warning_report.sh + - name: Upload build log + uses: actions/upload-artifact@v4 + with: + name: build log + path: build.log + - name: Upload warning report + uses: actions/upload-artifact@v4 + with: + name: report + path: report.md + - name: Upload warnings + uses: actions/upload-artifact@v4 + with: + name: warnings + path: warnings.json + - name: Cache warnings + id: cache-save-warnings + uses: actions/cache/save@v4 + with: + path: warnings.json + key: ${{ github.event.pull_request.base.sha }}-compile-warnings + if: github.ref_name == github.event.repository.default_branch + diff --git a/.gitignore b/.gitignore index 709f8cff53..db7bae3fdb 100644 --- a/.gitignore +++ b/.gitignore @@ -33,3 +33,4 @@ venv/ wss-*-agent.config wss-unified-agent.jar whitesource/ +build.log diff --git a/CMakeLists.txt b/CMakeLists.txt index 56d07e3ff8..75e013d98f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -4,93 +4,26 @@ # cmake_minimum_required(VERSION 3.17) project(snowflakeclient) - -if (CLIENT_CODE_COVERAGE) # Only when code coverage is enabled - # set(CMAKE_CXX_OUTPUT_EXTENSION_REPLACE 1) - message("Code coverage is enabled CLIENT_CODE_COVERAGE=" ${CLIENT_CODE_COVERAGE}) - set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} --coverage -fprofile-arcs -ftest-coverage -O0") - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} --coverage -fprofile-arcs -ftest-coverage -O0 -fno-elide-constructors -fno-inline -fno-inline-small-functions -fno-default-inline") -else() - message("Code coverage is disabled CLIENT_CODE_COVERAGE=" ${CLIENT_CODE_COVERAGE}) -endif () +include(cmake/platform.cmake) +include(cmake/flags.cmake) # Enabling tests by Ctest. Don't use INCLUDE(Ctest) as # we don't need Dart and other tools. enable_testing() -add_definitions(-DLOG_USE_COLOR) +add_compile_definitions(LOG_USE_COLOR) option(BUILD_TESTS "True if build tests" on) option(MOCK "True if mock should be used" off) set(OPENSSL_VERSION_NUMBER 0x11100000L) + # Developers can uncomment this to enable mock builds on their local VMs #set(MOCK TRUE) # Generates compile_commands.json file for clangd to parse. set(CMAKE_EXPORT_COMPILE_COMMANDS ON) - -if (MOCK) - set(MOCK_OBJECT_WRAPPER_FLAGS -Wl,--wrap=http_perform) - add_definitions(-DMOCK_ENABLED) -else() - set(MOCK_OBJECT_WRAPPER_FLAGS ) -endif () - -if (UNIX AND NOT APPLE) - set(LINUX TRUE) -endif () - -if (LINUX) - set(PLATFORM linux) - message("Platform: Linux") -endif () -if (APPLE) - set(PLATFORM darwin) - message("Platform: Apple OSX") -endif () -if ("${CMAKE_VS_PLATFORM_NAME}" STREQUAL "x64") - set(PLATFORM win64) - message("Platform: Windows 64bit") -endif () -if ("${CMAKE_VS_PLATFORM_NAME}" STREQUAL "Win32") - set(PLATFORM win32) - message("Platform: Windows 32bit") - if ("${CMAKE_BUILD_TYPE}" STREQUAL "Debug") - set (WIN32_DEBUG ON) - message("WIN32_DEBUG: ${WIN32_DEBUG}") - endif () -endif () - set(CMAKE_VERBOSE_MAKEFILE ON) -if (UNIX) - # Linux and OSX - set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99 -std=gnu99 -g -fPIC -Werror -Wno-error=deprecated-declarations -D_LARGEFILE64_SOURCE ${MOCK_OBJECT_WRAPPER_FLAGS}") - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17 -std=gnu++17 -fPIC -Werror -Wno-error=deprecated-declarations ${MOCK_OBJECT_WRAPPER_FLAGS}") -else() - # Windows - set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /ZH:SHA_256 /guard:cf /Qspectre /sdl") - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /ZH:SHA_256 /guard:cf /Qspectre /sdl") - if ($ENV{ARROW_FROM_SOURCE}) - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /std:c++17 /D_SILENCE_STDEXT_ARR_ITERS_DEPRECATION_WARNING") - endif () -endif () -if (LINUX) - # Linux. MacOS doesn't require pthread option - set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -pthread") -endif () - -if (LINUX) - # Profiler for Linux - if (NOT "$ENV{BUILD_WITH_PROFILE_OPTION}" STREQUAL "") - set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -pg") - endif () - - # Code coverage for Linux - if (NOT "$ENV{BUILD_WITH_GCOV_OPTION}" STREQUAL "") - set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fprofile-arcs -ftest-coverage") - set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -gp -fprofile-arcs -ftest-coverage") - endif () -endif () +set(CMAKE_POSITION_INDEPENDENT_CODE ON) set(SOURCE_FILES include/snowflake/basic_types.h @@ -340,8 +273,6 @@ if (WIN32) find_library(AWS_C_SDKUTILS_LIB aws-c-sdkutils.lib PATHS deps-build/${PLATFORM}/${VSDIR}/${CMAKE_BUILD_TYPE}/aws/lib/ REQUIRED NO_DEFAULT_PATH) find_library(AZURE_STORAGE_LITE_LIB azure-storage-lite.lib PATHS deps-build/${PLATFORM}/${VSDIR}/${CMAKE_BUILD_TYPE}/azure/lib/ REQUIRED NO_DEFAULT_PATH) if ($ENV{ARROW_FROM_SOURCE}) - set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DBOOST_ALL_NO_LIB") - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DBOOST_ALL_NO_LIB") find_library(BOOST_FILESYSTEM_LIB libboost_filesystem.lib PATHS deps-build/${PLATFORM}/${VSDIR}/${CMAKE_BUILD_TYPE}/boost/lib/ REQUIRED NO_DEFAULT_PATH) find_library(BOOST_REGEX_LIB libboost_regex.lib PATHS deps-build/${PLATFORM}/${VSDIR}/${CMAKE_BUILD_TYPE}/boost/lib/ REQUIRED NO_DEFAULT_PATH) find_library(BOOST_SYSTEM_LIB libboost_system.lib PATHS deps-build/${PLATFORM}/${VSDIR}/${CMAKE_BUILD_TYPE}/boost/lib/ REQUIRED NO_DEFAULT_PATH) @@ -459,9 +390,16 @@ if (MOCK) endif () add_library(snowflakeclient STATIC ${SOURCE_FILES} ${SOURCE_FILES_PUT_GET} ${SOURCE_FILES_CPP_WRAPPER}) +target_compile_features(snowflakeclient PUBLIC cxx_std_17) +target_compile_features(snowflakeclient PUBLIC c_std_99) +if (UNIX) + target_compile_definitions(snowflakeclient PUBLIC _LARGEFILE64_SOURCE) +endif () -set_target_properties(snowflakeclient PROPERTIES LINKER_LANGUAGE CXX) -set_property(TARGET snowflakeclient PROPERTY C_STANDARD 99) +if (LINUX) + target_compile_options(snowflakeclient PUBLIC -pthread) + target_link_options(snowflakeclient PUBLIC -pthread) +endif () #set (CMAKE_CXX_STANDARD 11) if(LINUX) diff --git a/ci/build_linux.sh b/ci/build_linux.sh index d42ec7c84b..368aec7693 100755 --- a/ci/build_linux.sh +++ b/ci/build_linux.sh @@ -44,6 +44,7 @@ docker run \ -e GITHUB_EVENT_NAME \ -e GITHUB_REF \ -e CLIENT_CODE_COVERAGE \ + -e USE_EXTRA_WARNINGS \ -w /mnt/host \ "${BUILD_IMAGE_NAME}" \ "/mnt/host/ci/build/build.sh" diff --git a/ci/scripts/generate_warning_report.py b/ci/scripts/generate_warning_report.py new file mode 100644 index 0000000000..ae597ed68a --- /dev/null +++ b/ci/scripts/generate_warning_report.py @@ -0,0 +1,152 @@ +import re +import enum +from dataclasses import dataclass +from sys import stderr +from typing import Optional, List +import dataclasses +import json +import argparse + +""" +Regexes for matching warnings: +/tmp/libsnowflakeclient/include/snowflake/SF_CRTFunctionSafe.h:223:16: warning: unused parameter 'in_sizeOfBuffer' [-Wunused-parameter] <- message + 223 | size_t in_sizeOfBuffer, <- snippet +""" +message_re = re.compile(r"""(?P[^:]*):(?P\d+):(?:(?P\d+):)?\s+warning:(?P.*)\[(?P.*)\]""") + +class ParserState(enum.Enum): + MESSAGE = "MESSAGE" + SNIPPET = "SNIPPET" + +@dataclass +class CompilerWarning: + file_path: str + line: int + column: Optional[int] + message: str + flag: str + snippet: Optional[str] + source: str + def key(self): + return self.file_path, self.message, self.flag + +@dataclass +class WarningDiff: + new: List[CompilerWarning] + old: List[CompilerWarning] + +""" +Parses warnings from compiler output +""" +def parse_warnings(path: str) -> List[CompilerWarning]: + warnings = [] + state = ParserState.MESSAGE + with open(path, "r") as f: + lines = f.readlines() + for line in lines: + if state == ParserState.MESSAGE: + m_match = message_re.match(line) + if not m_match: + continue + + col = m_match.group("col") + if col: + col = int(col) + + warning = CompilerWarning( + file_path=m_match.group("file_path"), + line=int(m_match.group("line")), + column=col, + message=m_match.group("message"), + flag=m_match.group("flag"), + snippet=None, + source=line + ) + + warnings.append(warning) + state = ParserState.SNIPPET + continue + + if state == ParserState.SNIPPET: + warning.snippet = line + warning.source += line + + state = ParserState.MESSAGE + continue + + result = [] + for w in warnings: + if w not in result: + result.append(w) + return result + +def dump_warnings(warnings: List[CompilerWarning]) -> str: + warnings_as_dict = [dataclasses.asdict(w) for w in warnings] + return json.dumps(warnings_as_dict, indent=2) + +def load_warnings(warnings_json: str) -> List[CompilerWarning]: + warnings_as_dict = json.loads(warnings_json) + return [CompilerWarning(**w) for w in warnings_as_dict] + +def write(path: str, data: str): + with open(path, "w") as f: + f.write(data) + +def read(path: str) -> str: + with open(path, "r") as f: + return f.read() + +def generate_report(path: str, new_warnings: List[CompilerWarning], old_warnings: List[CompilerWarning]): + with open(path, "w") as f: + diff = {} + for nw in new_warnings: + if nw.key() not in diff: + diff[nw.key()] = WarningDiff(new=[], old=[]) + + diff[nw.key()].new.append(nw) + + for ow in old_warnings: + if ow.key() not in diff: + diff[ow.key()] = WarningDiff(new=[], old=[]) + + diff[ow.key()].old.append(ow) + + failed = False + for d in diff.values(): + if len(d.new) > len(d.old): + failed = True + + if failed: + f.write("### Failed\n\n") + else: + f.write("### Succeeded\n\n") + + for d in diff.values(): + balance = len(d.new) - len(d.old) + if balance < 0: + f.write("- Removed {} compiler warnings from {} [{}].\n".format(-balance, d.old[0].file_path, d.old[0].flag)) + + if balance > 0: + f.write("- Added {} compiler warnings to {} [{}]. Please remove following warnings:\n".format(balance, d.new[0].file_path, d.new[0].flag)) + for w in d.new: + f.write("```\n") + f.write(w.source) + f.write("```\n") + +parser = argparse.ArgumentParser( + prog='generate_warning_report', + description='Generate compiler warning report', + epilog='Text at the bottom of help' +) + +parser.add_argument('--build-log', required=True) # option that takes a value +parser.add_argument('--load-warnings', required=True) +parser.add_argument('--dump-warnings', required=True) +parser.add_argument('--report', required=True) +args = parser.parse_args() + +new_warnings = parse_warnings(args.build_log) +old_warnings = load_warnings(read(args.load_warnings)) +generate_report(args.report, new_warnings, old_warnings) +write(args.dump_warnings, dump_warnings(new_warnings)) + diff --git a/ci/scripts/warning_report.sh b/ci/scripts/warning_report.sh new file mode 100755 index 0000000000..97a9584526 --- /dev/null +++ b/ci/scripts/warning_report.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +python3 ci/scripts/generate_warning_report.py --build-log build.log --load-warnings ci/scripts/warnings_baseline.json --dump-warnings warnings.json --report report.md + +if [[ -n "${GITHUB_STEP_SUMMARY}" ]]; +then + cat report.md >> "$GITHUB_STEP_SUMMARY" +fi + +if [[ "$(head -n 1 report.md)" == "### Failed" ]]; +then + exit 1 +fi diff --git a/ci/scripts/warnings_baseline.json b/ci/scripts/warnings_baseline.json new file mode 100644 index 0000000000..36afa5f3ab --- /dev/null +++ b/ci/scripts/warnings_baseline.json @@ -0,0 +1,4079 @@ +[ + { + "file_path": "/mnt/host/include/snowflake/SF_CRTFunctionSafe.h", + "line": 95, + "column": 65, + "message": " operand of ?: changes signedness from 'long long int' to 'size_t' {aka 'long unsigned int'} due to unsignedness of other operand ", + "flag": "-Wsign-compare", + "snippet": " const size_t copyLen = (srclen < 0) ? strlen(src) + 1 : srclen;\n", + "source": "/mnt/host/include/snowflake/SF_CRTFunctionSafe.h:95:65: warning: operand of ?: changes signedness from 'long long int' to 'size_t' {aka 'long unsigned int'} due to unsignedness of other operand [-Wsign-compare]\n const size_t copyLen = (srclen < 0) ? strlen(src) + 1 : srclen;\n" + }, + { + "file_path": "/mnt/host/include/snowflake/SF_CRTFunctionSafe.h", + "line": 108, + "column": 37, + "message": " comparison of unsigned expression < 0 is always false ", + "flag": "-Wtype-limits", + "snippet": " src, srclen < 0 ? strlen(src) + 1 : srclen);\n", + "source": "/mnt/host/include/snowflake/SF_CRTFunctionSafe.h:108:37: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits]\n src, srclen < 0 ? strlen(src) + 1 : srclen);\n" + }, + { + "file_path": "/mnt/host/include/snowflake/SF_CRTFunctionSafe.h", + "line": 223, + "column": 16, + "message": " unused parameter 'in_sizeOfBuffer' ", + "flag": "-Wunused-parameter", + "snippet": " size_t in_sizeOfBuffer,\n", + "source": "/mnt/host/include/snowflake/SF_CRTFunctionSafe.h:223:16: warning: unused parameter 'in_sizeOfBuffer' [-Wunused-parameter]\n size_t in_sizeOfBuffer,\n" + }, + { + "file_path": "/mnt/host/lib/connection.h", + "line": 28, + "column": null, + "message": " ignoring #pragma comment ", + "flag": "-Wunknown-pragmas", + "snippet": " #pragma comment(lib, \"wldap32.lib\" )\n", + "source": "/mnt/host/lib/connection.h:28: warning: ignoring #pragma comment [-Wunknown-pragmas]\n #pragma comment(lib, \"wldap32.lib\" )\n" + }, + { + "file_path": "/mnt/host/lib/connection.h", + "line": 29, + "column": null, + "message": " ignoring #pragma comment ", + "flag": "-Wunknown-pragmas", + "snippet": " #pragma comment(lib, \"crypt32.lib\" )\n", + "source": "/mnt/host/lib/connection.h:29: warning: ignoring #pragma comment [-Wunknown-pragmas]\n #pragma comment(lib, \"crypt32.lib\" )\n" + }, + { + "file_path": "/mnt/host/lib/connection.h", + "line": 30, + "column": null, + "message": " ignoring #pragma comment ", + "flag": "-Wunknown-pragmas", + "snippet": " #pragma comment(lib, \"Ws2_32.lib\")\n", + "source": "/mnt/host/lib/connection.h:30: warning: ignoring #pragma comment [-Wunknown-pragmas]\n #pragma comment(lib, \"Ws2_32.lib\")\n" + }, + { + "file_path": "/mnt/host/lib/chunk_downloader.h", + "line": 12, + "column": null, + "message": " ignoring #pragma comment ", + "flag": "-Wunknown-pragmas", + "snippet": " #pragma comment(lib, \"wldap32.lib\" )\n", + "source": "/mnt/host/lib/chunk_downloader.h:12: warning: ignoring #pragma comment [-Wunknown-pragmas]\n #pragma comment(lib, \"wldap32.lib\" )\n" + }, + { + "file_path": "/mnt/host/lib/chunk_downloader.h", + "line": 13, + "column": null, + "message": " ignoring #pragma comment ", + "flag": "-Wunknown-pragmas", + "snippet": " #pragma comment(lib, \"crypt32.lib\" )\n", + "source": "/mnt/host/lib/chunk_downloader.h:13: warning: ignoring #pragma comment [-Wunknown-pragmas]\n #pragma comment(lib, \"crypt32.lib\" )\n" + }, + { + "file_path": "/mnt/host/lib/chunk_downloader.h", + "line": 14, + "column": null, + "message": " ignoring #pragma comment ", + "flag": "-Wunknown-pragmas", + "snippet": " #pragma comment(lib, \"Ws2_32.lib\")\n", + "source": "/mnt/host/lib/chunk_downloader.h:14: warning: ignoring #pragma comment [-Wunknown-pragmas]\n #pragma comment(lib, \"Ws2_32.lib\")\n" + }, + { + "file_path": "/mnt/host/lib/client.c", + "line": 136, + "column": 33, + "message": " unused parameter 'udata' ", + "flag": "-Wunused-parameter", + "snippet": " static void log_lock_func(void *udata, int lock) {\n", + "source": "/mnt/host/lib/client.c:136:33: warning: unused parameter 'udata' [-Wunused-parameter]\n static void log_lock_func(void *udata, int lock) {\n" + }, + { + "file_path": "/mnt/host/lib/client.c", + "line": 307, + "column": 10, + "message": " unused variable 'strerror_buf' ", + "flag": "-Wunused-variable", + "snippet": " char strerror_buf[SF_ERROR_BUFSIZE];\n", + "source": "/mnt/host/lib/client.c:307:10: warning: unused variable 'strerror_buf' [-Wunused-variable]\n char strerror_buf[SF_ERROR_BUFSIZE];\n" + }, + { + "file_path": "/mnt/host/lib/client.c", + "line": 1896, + "column": 12, + "message": " unused variable 'raw_row_result' ", + "flag": "-Wunused-variable", + "snippet": " cJSON *raw_row_result;\n", + "source": "/mnt/host/lib/client.c:1896:12: warning: unused variable 'raw_row_result' [-Wunused-variable]\n cJSON *raw_row_result;\n" + }, + { + "file_path": "/mnt/host/lib/client.c", + "line": 1895, + "column": 12, + "message": " unused variable 'row' ", + "flag": "-Wunused-variable", + "snippet": " cJSON *row = NULL;\n", + "source": "/mnt/host/lib/client.c:1895:12: warning: unused variable 'row' [-Wunused-variable]\n cJSON *row = NULL;\n" + }, + { + "file_path": "/mnt/host/lib/client.c", + "line": 1893, + "column": 12, + "message": " unused variable 'i' ", + "flag": "-Wunused-variable", + "snippet": " size_t i;\n", + "source": "/mnt/host/lib/client.c:1893:12: warning: unused variable 'i' [-Wunused-variable]\n size_t i;\n" + }, + { + "file_path": "/mnt/host/lib/client.c", + "line": 3180, + "column": 79, + "message": " unused parameter 'fmt' ", + "flag": "-Wunused-parameter", + "snippet": " SF_STATUS STDCALL snowflake_timestamp_to_string(SF_TIMESTAMP *ts, const char *fmt, char **buffer_ptr,\n", + "source": "/mnt/host/lib/client.c:3180:79: warning: unused parameter 'fmt' [-Wunused-parameter]\n SF_STATUS STDCALL snowflake_timestamp_to_string(SF_TIMESTAMP *ts, const char *fmt, char **buffer_ptr,\n" + }, + { + "file_path": "/mnt/host/lib/client.c", + "line": 40, + "column": 14, + "message": " 'LOG_FP' defined but not used ", + "flag": "-Wunused-variable", + "snippet": " static FILE *LOG_FP = NULL;\n", + "source": "/mnt/host/lib/client.c:40:14: warning: 'LOG_FP' defined but not used [-Wunused-variable]\n static FILE *LOG_FP = NULL;\n" + }, + { + "file_path": "/mnt/host/lib/memory.h", + "line": 28, + "column": 30, + "message": " 'global_hooks' defined but not used ", + "flag": "-Wunused-variable", + "snippet": " static SF_INTERNAL_MEM_HOOKS global_hooks = {malloc, free, realloc, calloc};\n", + "source": "/mnt/host/lib/memory.h:28:30: warning: 'global_hooks' defined but not used [-Wunused-variable]\n static SF_INTERNAL_MEM_HOOKS global_hooks = {malloc, free, realloc, calloc};\n" + }, + { + "file_path": "/mnt/host/lib/rbtree.c", + "line": 135, + "column": 19, + "message": " unused variable 'temp_node' ", + "flag": "-Wunused-variable", + "snippet": " RedBlackNode *temp_node = NULL;\n", + "source": "/mnt/host/lib/rbtree.c:135:19: warning: unused variable 'temp_node' [-Wunused-variable]\n RedBlackNode *temp_node = NULL;\n" + }, + { + "file_path": "/mnt/host/lib/rbtree.c", + "line": 134, + "column": 19, + "message": " unused variable 'parent' ", + "flag": "-Wunused-variable", + "snippet": " RedBlackNode *parent = NULL;\n", + "source": "/mnt/host/lib/rbtree.c:134:19: warning: unused variable 'parent' [-Wunused-variable]\n RedBlackNode *parent = NULL;\n" + }, + { + "file_path": "/mnt/host/lib/memory.c", + "line": 152, + "column": 37, + "message": " unused parameter 'file' ", + "flag": "-Wunused-parameter", + "snippet": " void sf_free(void *ptr, const char *file, int line) {\n", + "source": "/mnt/host/lib/memory.c:152:37: warning: unused parameter 'file' [-Wunused-parameter]\n void sf_free(void *ptr, const char *file, int line) {\n" + }, + { + "file_path": "/mnt/host/lib/memory.c", + "line": 152, + "column": 47, + "message": " unused parameter 'line' ", + "flag": "-Wunused-parameter", + "snippet": " void sf_free(void *ptr, const char *file, int line) {\n", + "source": "/mnt/host/lib/memory.c:152:47: warning: unused parameter 'line' [-Wunused-parameter]\n void sf_free(void *ptr, const char *file, int line) {\n" + }, + { + "file_path": "/mnt/host/lib/connection.c", + "line": 124, + "column": 15, + "message": " 'uimax' defined but not used ", + "flag": "-Wunused-function", + "snippet": " static uint32 uimax(uint32 a, uint32 b) {\n", + "source": "/mnt/host/lib/connection.c:124:15: warning: 'uimax' defined but not used [-Wunused-function]\n static uint32 uimax(uint32 a, uint32 b) {\n" + }, + { + "file_path": "/mnt/host/lib/connection.c", + "line": 82, + "column": 5, + "message": " 'my_trace' defined but not used ", + "flag": "-Wunused-function", + "snippet": " int my_trace(CURL *handle, curl_infotype type,\n", + "source": "/mnt/host/lib/connection.c:82:5: warning: 'my_trace' defined but not used [-Wunused-function]\n int my_trace(CURL *handle, curl_infotype type,\n" + }, + { + "file_path": "/mnt/host/lib/results.c", + "line": 133, + "column": 54, + "message": " unused parameter 'precision' ", + "flag": "-Wunused-parameter", + "snippet": " SF_C_TYPE snowflake_to_c_type(SF_DB_TYPE type, int64 precision, int64 scale) {\n", + "source": "/mnt/host/lib/results.c:133:54: warning: unused parameter 'precision' [-Wunused-parameter]\n SF_C_TYPE snowflake_to_c_type(SF_DB_TYPE type, int64 precision, int64 scale) {\n" + }, + { + "file_path": "/mnt/host/lib/chunk_downloader.c", + "line": 161, + "column": 19, + "message": " comparison of integer expressions of different signedness: 'int' and 'uint64' {aka 'long long unsigned int'} ", + "flag": "-Wsign-compare", + "snippet": " for (i = 0; i < chunk_downloader->queue_size; i++) {\n", + "source": "/mnt/host/lib/chunk_downloader.c:161:19: warning: comparison of integer expressions of different signedness: 'int' and 'uint64' {aka 'long long unsigned int'} [-Wsign-compare]\n for (i = 0; i < chunk_downloader->queue_size; i++) {\n" + }, + { + "file_path": "/mnt/host/lib/chunk_downloader.c", + "line": 334, + "column": 19, + "message": " comparison of integer expressions of different signedness: 'int' and 'uint64' {aka 'long long unsigned int'} ", + "flag": "-Wsign-compare", + "snippet": " for (i = 0; i < thread_count; i++) {\n", + "source": "/mnt/host/lib/chunk_downloader.c:334:19: warning: comparison of integer expressions of different signedness: 'int' and 'uint64' {aka 'long long unsigned int'} [-Wsign-compare]\n for (i = 0; i < thread_count; i++) {\n" + }, + { + "file_path": "/mnt/host/lib/chunk_downloader.c", + "line": 77, + "column": 21, + "message": " 'set_error' defined but not used ", + "flag": "-Wunused-function", + "snippet": " static void STDCALL set_error(struct SF_CHUNK_DOWNLOADER *chunk_downloader, sf_bool value) {\n", + "source": "/mnt/host/lib/chunk_downloader.c:77:21: warning: 'set_error' defined but not used [-Wunused-function]\n static void STDCALL set_error(struct SF_CHUNK_DOWNLOADER *chunk_downloader, sf_bool value) {\n" + }, + { + "file_path": "/mnt/host/lib/http_perform.c", + "line": 380, + "column": 74, + "message": " comparison of integer expressions of different signedness: 'uint64' {aka 'long long unsigned int'} and 'int8' {aka 'char'} ", + "flag": "-Wsign-compare", + "snippet": " if (res == CURLE_COULDNT_CONNECT && curl_retry_ctx.retry_count <\n", + "source": "/mnt/host/lib/http_perform.c:380:74: warning: comparison of integer expressions of different signedness: 'uint64' {aka 'long long unsigned int'} and 'int8' {aka 'char'} [-Wsign-compare]\n if (res == CURLE_COULDNT_CONNECT && curl_retry_ctx.retry_count <\n" + }, + { + "file_path": "/mnt/host/lib/http_perform.c", + "line": 430, + "column": 52, + "message": " comparison of integer expressions of different signedness: 'time_t' {aka 'long int'} and 'uint64' {aka 'long long unsigned int'} ", + "flag": "-Wsign-compare", + "snippet": " ((time(NULL) - elapsedRetryTime) < curl_retry_ctx.retry_timeout) &&\n", + "source": "/mnt/host/lib/http_perform.c:430:52: warning: comparison of integer expressions of different signedness: 'time_t' {aka 'long int'} and 'uint64' {aka 'long long unsigned int'} [-Wsign-compare]\n ((time(NULL) - elapsedRetryTime) < curl_retry_ctx.retry_timeout) &&\n" + }, + { + "file_path": "/mnt/host/lib/http_perform.c", + "line": 431, + "column": 74, + "message": " comparison of integer expressions of different signedness: 'uint64' {aka 'long long unsigned int'} and 'int8' {aka 'char'} ", + "flag": "-Wsign-compare", + "snippet": " ((retry_max_count <= 0) || (curl_retry_ctx.retry_count < retry_max_count)))\n", + "source": "/mnt/host/lib/http_perform.c:431:74: warning: comparison of integer expressions of different signedness: 'uint64' {aka 'long long unsigned int'} and 'int8' {aka 'char'} [-Wsign-compare]\n ((retry_max_count <= 0) || (curl_retry_ctx.retry_count < retry_max_count)))\n" + }, + { + "file_path": "/mnt/host/include/snowflake/IStatementPutGet.hpp", + "line": 46, + "column": 44, + "message": " unused parameter 'url' ", + "flag": "-Wunused-parameter", + "snippet": " virtual bool http_put(std::string const& url,\n", + "source": "/mnt/host/include/snowflake/IStatementPutGet.hpp:46:44: warning: unused parameter 'url' [-Wunused-parameter]\n virtual bool http_put(std::string const& url,\n" + }, + { + "file_path": "/mnt/host/include/snowflake/IStatementPutGet.hpp", + "line": 47, + "column": 57, + "message": " unused parameter 'headers' ", + "flag": "-Wunused-parameter", + "snippet": " std::vector const& headers,\n", + "source": "/mnt/host/include/snowflake/IStatementPutGet.hpp:47:57: warning: unused parameter 'headers' [-Wunused-parameter]\n std::vector const& headers,\n" + }, + { + "file_path": "/mnt/host/include/snowflake/IStatementPutGet.hpp", + "line": 48, + "column": 52, + "message": " unused parameter 'payload' ", + "flag": "-Wunused-parameter", + "snippet": " std::basic_iostream& payload,\n", + "source": "/mnt/host/include/snowflake/IStatementPutGet.hpp:48:52: warning: unused parameter 'payload' [-Wunused-parameter]\n std::basic_iostream& payload,\n" + }, + { + "file_path": "/mnt/host/include/snowflake/IStatementPutGet.hpp", + "line": 49, + "column": 32, + "message": " unused parameter 'payloadLen' ", + "flag": "-Wunused-parameter", + "snippet": " size_t payloadLen,\n", + "source": "/mnt/host/include/snowflake/IStatementPutGet.hpp:49:32: warning: unused parameter 'payloadLen' [-Wunused-parameter]\n size_t payloadLen,\n" + }, + { + "file_path": "/mnt/host/include/snowflake/IStatementPutGet.hpp", + "line": 50, + "column": 38, + "message": " unused parameter 'responseHeaders' ", + "flag": "-Wunused-parameter", + "snippet": " std::string& responseHeaders)\n", + "source": "/mnt/host/include/snowflake/IStatementPutGet.hpp:50:38: warning: unused parameter 'responseHeaders' [-Wunused-parameter]\n std::string& responseHeaders)\n" + }, + { + "file_path": "/mnt/host/include/snowflake/IStatementPutGet.hpp", + "line": 66, + "column": 44, + "message": " unused parameter 'url' ", + "flag": "-Wunused-parameter", + "snippet": " virtual bool http_get(std::string const& url,\n", + "source": "/mnt/host/include/snowflake/IStatementPutGet.hpp:66:44: warning: unused parameter 'url' [-Wunused-parameter]\n virtual bool http_get(std::string const& url,\n" + }, + { + "file_path": "/mnt/host/include/snowflake/IStatementPutGet.hpp", + "line": 67, + "column": 57, + "message": " unused parameter 'headers' ", + "flag": "-Wunused-parameter", + "snippet": " std::vector const& headers,\n", + "source": "/mnt/host/include/snowflake/IStatementPutGet.hpp:67:57: warning: unused parameter 'headers' [-Wunused-parameter]\n std::vector const& headers,\n" + }, + { + "file_path": "/mnt/host/include/snowflake/IStatementPutGet.hpp", + "line": 68, + "column": 52, + "message": " unused parameter 'payload' ", + "flag": "-Wunused-parameter", + "snippet": " std::basic_iostream* payload,\n", + "source": "/mnt/host/include/snowflake/IStatementPutGet.hpp:68:52: warning: unused parameter 'payload' [-Wunused-parameter]\n std::basic_iostream* payload,\n" + }, + { + "file_path": "/mnt/host/include/snowflake/IStatementPutGet.hpp", + "line": 69, + "column": 38, + "message": " unused parameter 'responseHeaders' ", + "flag": "-Wunused-parameter", + "snippet": " std::string& responseHeaders,\n", + "source": "/mnt/host/include/snowflake/IStatementPutGet.hpp:69:38: warning: unused parameter 'responseHeaders' [-Wunused-parameter]\n std::string& responseHeaders,\n" + }, + { + "file_path": "/mnt/host/include/snowflake/IStatementPutGet.hpp", + "line": 70, + "column": 30, + "message": " unused parameter 'headerOnly' ", + "flag": "-Wunused-parameter", + "snippet": " bool headerOnly)\n", + "source": "/mnt/host/include/snowflake/IStatementPutGet.hpp:70:30: warning: unused parameter 'headerOnly' [-Wunused-parameter]\n bool headerOnly)\n" + }, + { + "file_path": "/mnt/host/include/snowflake/IFileTransferAgent.hpp", + "line": 76, + "column": 44, + "message": " unused parameter 'useUrand' ", + "flag": "-Wunused-parameter", + "snippet": " virtual void setRandomDeviceAsUrand(bool useUrand){};\n", + "source": "/mnt/host/include/snowflake/IFileTransferAgent.hpp:76:44: warning: unused parameter 'useUrand' [-Wunused-parameter]\n virtual void setRandomDeviceAsUrand(bool useUrand){};\n" + }, + { + "file_path": "/mnt/host/include/snowflake/IFileTransferAgent.hpp", + "line": 86, + "column": 36, + "message": " unused parameter 'putFastFail' ", + "flag": "-Wunused-parameter", + "snippet": " virtual void setPutFastFail(bool putFastFail){};\n", + "source": "/mnt/host/include/snowflake/IFileTransferAgent.hpp:86:36: warning: unused parameter 'putFastFail' [-Wunused-parameter]\n virtual void setPutFastFail(bool putFastFail){};\n" + }, + { + "file_path": "/mnt/host/include/snowflake/IFileTransferAgent.hpp", + "line": 92, + "column": 37, + "message": " unused parameter 'maxRetries' ", + "flag": "-Wunused-parameter", + "snippet": " virtual void setPutMaxRetries(int maxRetries){};\n", + "source": "/mnt/host/include/snowflake/IFileTransferAgent.hpp:92:37: warning: unused parameter 'maxRetries' [-Wunused-parameter]\n virtual void setPutMaxRetries(int maxRetries){};\n" + }, + { + "file_path": "/mnt/host/include/snowflake/IFileTransferAgent.hpp", + "line": 98, + "column": 36, + "message": " unused parameter 'getFastFail' ", + "flag": "-Wunused-parameter", + "snippet": " virtual void setGetFastFail(bool getFastFail) {};\n", + "source": "/mnt/host/include/snowflake/IFileTransferAgent.hpp:98:36: warning: unused parameter 'getFastFail' [-Wunused-parameter]\n virtual void setGetFastFail(bool getFastFail) {};\n" + }, + { + "file_path": "/mnt/host/include/snowflake/IFileTransferAgent.hpp", + "line": 104, + "column": 37, + "message": " unused parameter 'maxRetries' ", + "flag": "-Wunused-parameter", + "snippet": " virtual void setGetMaxRetries(int maxRetries) {};\n", + "source": "/mnt/host/include/snowflake/IFileTransferAgent.hpp:104:37: warning: unused parameter 'maxRetries' [-Wunused-parameter]\n virtual void setGetMaxRetries(int maxRetries) {};\n" + }, + { + "file_path": "/mnt/host/cpp/IStorageClient.hpp", + "line": 53, + "column": 43, + "message": " unused parameter 'maxRetries' ", + "flag": "-Wunused-parameter", + "snippet": " virtual void setMaxRetries(unsigned int maxRetries) {};\n", + "source": "/mnt/host/cpp/IStorageClient.hpp:53:43: warning: unused parameter 'maxRetries' [-Wunused-parameter]\n virtual void setMaxRetries(unsigned int maxRetries) {};\n" + }, + { + "file_path": "/mnt/host/cpp/FileTransferAgent.hpp", + "line": 101, + "column": 17, + "message": " 'Snowflake::Client::RetryContext::m_putFileName' will be initialized after ", + "flag": "-Wreorder", + "snippet": " std::string m_putFileName;\n", + "source": "/mnt/host/cpp/FileTransferAgent.hpp:101:17: warning: 'Snowflake::Client::RetryContext::m_putFileName' will be initialized after [-Wreorder]\n std::string m_putFileName;\n" + }, + { + "file_path": "/mnt/host/cpp/FileTransferAgent.hpp", + "line": 96, + "column": 19, + "message": " 'long unsigned int Snowflake::Client::RetryContext::m_maxRetryCount' ", + "flag": "-Wreorder", + "snippet": " unsigned long m_maxRetryCount;\n", + "source": "/mnt/host/cpp/FileTransferAgent.hpp:96:19: warning: 'long unsigned int Snowflake::Client::RetryContext::m_maxRetryCount' [-Wreorder]\n unsigned long m_maxRetryCount;\n" + }, + { + "file_path": "/mnt/host/cpp/FileTransferAgent.hpp", + "line": 43, + "column": 5, + "message": " when initialized here ", + "flag": "-Wreorder", + "snippet": " RetryContext(const std::string &fileName, int maxRetries):\n", + "source": "/mnt/host/cpp/FileTransferAgent.hpp:43:5: warning: when initialized here [-Wreorder]\n RetryContext(const std::string &fileName, int maxRetries):\n" + }, + { + "file_path": "/mnt/host/cpp/FileCompressionType.cpp", + "line": 148, + "column": 26, + "message": " comparison of integer expressions of different signedness: 'size_t' {aka 'long unsigned int'} and 'const short int' ", + "flag": "-Wsign-compare", + "snippet": " if (strlen(header) >= m_magicBytes &&\n", + "source": "/mnt/host/cpp/FileCompressionType.cpp:148:26: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'long unsigned int'} and 'const short int' [-Wsign-compare]\n if (strlen(header) >= m_magicBytes &&\n" + }, + { + "file_path": "/mnt/host/cpp/util/ByteArrayStreamBuf.hpp", + "line": 31, + "column": 10, + "message": " type qualifiers ignored on function return type ", + "flag": "-Wignored-qualifiers", + "snippet": " inline const unsigned int getCapacity()\n", + "source": "/mnt/host/cpp/util/ByteArrayStreamBuf.hpp:31:10: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]\n inline const unsigned int getCapacity()\n" + }, + { + "file_path": "/mnt/host/cpp/util/ThreadPool.hpp", + "line": 50, + "column": 8, + "message": " 'Snowflake::Client::Util::ThreadPool::finished' will be initialized after ", + "flag": "-Wreorder", + "snippet": " bool finished;\n", + "source": "/mnt/host/cpp/util/ThreadPool.hpp:50:8: warning: 'Snowflake::Client::Util::ThreadPool::finished' will be initialized after [-Wreorder]\n bool finished;\n" + }, + { + "file_path": "/mnt/host/cpp/util/ThreadPool.hpp", + "line": 38, + "column": 22, + "message": " 'const unsigned int Snowflake::Client::Util::ThreadPool::threadCount' ", + "flag": "-Wreorder", + "snippet": " const unsigned int threadCount;\n", + "source": "/mnt/host/cpp/util/ThreadPool.hpp:38:22: warning: 'const unsigned int Snowflake::Client::Util::ThreadPool::threadCount' [-Wreorder]\n const unsigned int threadCount;\n" + }, + { + "file_path": "/mnt/host/cpp/util/ThreadPool.hpp", + "line": 137, + "column": 3, + "message": " when initialized here ", + "flag": "-Wreorder", + "snippet": " ThreadPool(unsigned int threadNum)\n", + "source": "/mnt/host/cpp/util/ThreadPool.hpp:137:3: warning: when initialized here [-Wreorder]\n ThreadPool(unsigned int threadNum)\n" + }, + { + "file_path": "/mnt/host/cpp/FileTransferAgent.hpp", + "line": 302, + "column": 27, + "message": " 'Snowflake::Client::FileTransferAgent::m_FileMetadataInitializer' will be initialized after ", + "flag": "-Wreorder", + "snippet": " FileMetadataInitializer m_FileMetadataInitializer;\n", + "source": "/mnt/host/cpp/FileTransferAgent.hpp:302:27: warning: 'Snowflake::Client::FileTransferAgent::m_FileMetadataInitializer' will be initialized after [-Wreorder]\n FileMetadataInitializer m_FileMetadataInitializer;\n" + }, + { + "file_path": "/mnt/host/cpp/FileTransferAgent.hpp", + "line": 296, + "column": 32, + "message": " 'Snowflake::Client::FileTransferExecutionResult* Snowflake::Client::FileTransferAgent::m_executionResults' ", + "flag": "-Wreorder", + "snippet": " FileTransferExecutionResult *m_executionResults;\n", + "source": "/mnt/host/cpp/FileTransferAgent.hpp:296:32: warning: 'Snowflake::Client::FileTransferExecutionResult* Snowflake::Client::FileTransferAgent::m_executionResults' [-Wreorder]\n FileTransferExecutionResult *m_executionResults;\n" + }, + { + "file_path": "/mnt/host/cpp/FileTransferAgent.cpp", + "line": 63, + "column": 1, + "message": " when initialized here ", + "flag": "-Wreorder", + "snippet": " Snowflake::Client::FileTransferAgent::FileTransferAgent(\n", + "source": "/mnt/host/cpp/FileTransferAgent.cpp:63:1: warning: when initialized here [-Wreorder]\n Snowflake::Client::FileTransferAgent::FileTransferAgent(\n" + }, + { + "file_path": "/mnt/host/cpp/FileTransferAgent.hpp", + "line": 296, + "column": 32, + "message": " 'Snowflake::Client::FileTransferAgent::m_executionResults' will be initialized after ", + "flag": "-Wreorder", + "snippet": " FileTransferExecutionResult *m_executionResults;\n", + "source": "/mnt/host/cpp/FileTransferAgent.hpp:296:32: warning: 'Snowflake::Client::FileTransferAgent::m_executionResults' will be initialized after [-Wreorder]\n FileTransferExecutionResult *m_executionResults;\n" + }, + { + "file_path": "/mnt/host/cpp/FileTransferAgent.hpp", + "line": 287, + "column": 20, + "message": " 'Snowflake::Client::IStorageClient* Snowflake::Client::FileTransferAgent::m_storageClient' ", + "flag": "-Wreorder", + "snippet": " IStorageClient * m_storageClient;\n", + "source": "/mnt/host/cpp/FileTransferAgent.hpp:287:20: warning: 'Snowflake::Client::IStorageClient* Snowflake::Client::FileTransferAgent::m_storageClient' [-Wreorder]\n IStorageClient * m_storageClient;\n" + }, + { + "file_path": "/mnt/host/cpp/FileTransferAgent.hpp", + "line": 328, + "column": 7, + "message": " 'Snowflake::Client::FileTransferAgent::m_maxPutRetries' will be initialized after ", + "flag": "-Wreorder", + "snippet": " int m_maxPutRetries;\n", + "source": "/mnt/host/cpp/FileTransferAgent.hpp:328:7: warning: 'Snowflake::Client::FileTransferAgent::m_maxPutRetries' will be initialized after [-Wreorder]\n int m_maxPutRetries;\n" + }, + { + "file_path": "/mnt/host/cpp/FileTransferAgent.hpp", + "line": 326, + "column": 8, + "message": " 'bool Snowflake::Client::FileTransferAgent::m_putFastFail' ", + "flag": "-Wreorder", + "snippet": " bool m_putFastFail;\n", + "source": "/mnt/host/cpp/FileTransferAgent.hpp:326:8: warning: 'bool Snowflake::Client::FileTransferAgent::m_putFastFail' [-Wreorder]\n bool m_putFastFail;\n" + }, + { + "file_path": "/mnt/host/cpp/FileTransferAgent.hpp", + "line": 333, + "column": 7, + "message": " 'Snowflake::Client::FileTransferAgent::m_maxGetRetries' will be initialized after ", + "flag": "-Wreorder", + "snippet": " int m_maxGetRetries;\n", + "source": "/mnt/host/cpp/FileTransferAgent.hpp:333:7: warning: 'Snowflake::Client::FileTransferAgent::m_maxGetRetries' will be initialized after [-Wreorder]\n int m_maxGetRetries;\n" + }, + { + "file_path": "/mnt/host/cpp/FileTransferAgent.hpp", + "line": 331, + "column": 8, + "message": " 'bool Snowflake::Client::FileTransferAgent::m_getFastFail' ", + "flag": "-Wreorder", + "snippet": " bool m_getFastFail;\n", + "source": "/mnt/host/cpp/FileTransferAgent.hpp:331:8: warning: 'bool Snowflake::Client::FileTransferAgent::m_getFastFail' [-Wreorder]\n bool m_getFastFail;\n" + }, + { + "file_path": "/mnt/host/cpp/FileTransferAgent.cpp", + "line": 924, + "column": 28, + "message": " comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string::size_type' {aka 'long unsigned int'} ", + "flag": "-Wsign-compare", + "snippet": " (localFilePathBeginIdx > FILE_PROTOCOL.length()) &&\n", + "source": "/mnt/host/cpp/FileTransferAgent.cpp:924:28: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string::size_type' {aka 'long unsigned int'} [-Wsign-compare]\n (localFilePathBeginIdx > FILE_PROTOCOL.length()) &&\n" + }, + { + "file_path": "/mnt/host/cpp/FileTransferAgent.cpp", + "line": 956, + "column": 32, + "message": " comparison of integer expressions of different signedness: 'std::__cxx11::basic_string::size_type' {aka 'long unsigned int'} and 'int' ", + "flag": "-Wsign-compare", + "snippet": " else if (std::string::npos == localFilePathEndIdx)\n", + "source": "/mnt/host/cpp/FileTransferAgent.cpp:956:32: warning: comparison of integer expressions of different signedness: 'std::__cxx11::basic_string::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]\n else if (std::string::npos == localFilePathEndIdx)\n" + }, + { + "file_path": "/mnt/host/cpp/FileTransferExecutionResult.cpp", + "line": 223, + "column": 18, + "message": " comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} ", + "flag": "-Wsign-compare", + "snippet": " for (int i=0; isize(); i++)\n", + "source": "/mnt/host/cpp/FileTransferExecutionResult.cpp:223:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare]\n for (int i=0; isize(); i++)\n" + }, + { + "file_path": "/mnt/host/cpp/SnowflakeS3Client.cpp", + "line": 547, + "column": 21, + "message": " comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} ", + "flag": "-Wsign-compare", + "snippet": " for (int i = 0; i < downloadParts.size(); i++)\n", + "source": "/mnt/host/cpp/SnowflakeS3Client.cpp:547:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare]\n for (int i = 0; i < downloadParts.size(); i++)\n" + }, + { + "file_path": "/mnt/host/cpp/SnowflakeAzureClient.hpp", + "line": 38, + "column": 33, + "message": " unused parameter 'uploadId' ", + "flag": "-Wunused-parameter", + "snippet": " MultiUploadCtx_a(std::string &uploadId,\n", + "source": "/mnt/host/cpp/SnowflakeAzureClient.hpp:38:33: warning: unused parameter 'uploadId' [-Wunused-parameter]\n MultiUploadCtx_a(std::string &uploadId,\n" + }, + { + "file_path": "/mnt/host/cpp/SnowflakeAzureClient.hpp", + "line": 39, + "column": 18, + "message": " unused parameter 'partNumber' ", + "flag": "-Wunused-parameter", + "snippet": " unsigned int partNumber,\n", + "source": "/mnt/host/cpp/SnowflakeAzureClient.hpp:39:18: warning: unused parameter 'partNumber' [-Wunused-parameter]\n unsigned int partNumber,\n" + }, + { + "file_path": "/mnt/host/cpp/SnowflakeAzureClient.hpp", + "line": 40, + "column": 18, + "message": " unused parameter 'key' ", + "flag": "-Wunused-parameter", + "snippet": " std::string &key,\n", + "source": "/mnt/host/cpp/SnowflakeAzureClient.hpp:40:18: warning: unused parameter 'key' [-Wunused-parameter]\n std::string &key,\n" + }, + { + "file_path": "/mnt/host/cpp/SnowflakeAzureClient.hpp", + "line": 41, + "column": 18, + "message": " unused parameter 'bucket' ", + "flag": "-Wunused-parameter", + "snippet": " std::string &bucket)\n", + "source": "/mnt/host/cpp/SnowflakeAzureClient.hpp:41:18: warning: unused parameter 'bucket' [-Wunused-parameter]\n std::string &bucket)\n" + }, + { + "file_path": "/mnt/host/cpp/SnowflakeAzureClient.cpp", + "line": 132, + "column": 58, + "message": " comparison of integer expressions of different signedness: 'long long int' and 'const size_t' {aka 'const long unsigned int'} ", + "flag": "-Wsign-compare", + "snippet": " if(fileMetadata->encryptionMetadata.cipherStreamSize <= m_uploadThreshold)\n", + "source": "/mnt/host/cpp/SnowflakeAzureClient.cpp:132:58: warning: comparison of integer expressions of different signedness: 'long long int' and 'const size_t' {aka 'const long unsigned int'} [-Wsign-compare]\n if(fileMetadata->encryptionMetadata.cipherStreamSize <= m_uploadThreshold)\n" + }, + { + "file_path": "/mnt/host/cpp/SnowflakeAzureClient.cpp", + "line": 181, + "column": 78, + "message": " unused parameter 'uploadCtx' ", + "flag": "-Wunused-parameter", + "snippet": " void Snowflake::Client::SnowflakeAzureClient::uploadParts(MultiUploadCtx_a * uploadCtx)\n", + "source": "/mnt/host/cpp/SnowflakeAzureClient.cpp:181:78: warning: unused parameter 'uploadCtx' [-Wunused-parameter]\n void Snowflake::Client::SnowflakeAzureClient::uploadParts(MultiUploadCtx_a * uploadCtx)\n" + }, + { + "file_path": "/mnt/host/cpp/SnowflakeAzureClient.cpp", + "line": 242, + "column": 10, + "message": " unused variable 'ivEncodeSize' ", + "flag": "-Wunused-variable", + "snippet": " size_t ivEncodeSize = Snowflake::Client::Util::Base64::encodedLength(\n", + "source": "/mnt/host/cpp/SnowflakeAzureClient.cpp:242:10: warning: unused variable 'ivEncodeSize' [-Wunused-variable]\n size_t ivEncodeSize = Snowflake::Client::Util::Base64::encodedLength(\n" + }, + { + "file_path": "/mnt/host/cpp/SnowflakeAzureClient.cpp", + "line": 289, + "column": 23, + "message": " comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} ", + "flag": "-Wsign-compare", + "snippet": " for (int i = 0; i < downloadParts.size(); i++)\n", + "source": "/mnt/host/cpp/SnowflakeAzureClient.cpp:289:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare]\n for (int i = 0; i < downloadParts.size(); i++)\n" + }, + { + "file_path": "/mnt/host/cpp/SnowflakeGCSClient.cpp", + "line": 33, + "column": 75, + "message": " unused parameter 'parallel' ", + "flag": "-Wunused-parameter", + "snippet": " SnowflakeGCSClient::SnowflakeGCSClient(StageInfo *stageInfo, unsigned int parallel,\n", + "source": "/mnt/host/cpp/SnowflakeGCSClient.cpp:33:75: warning: unused parameter 'parallel' [-Wunused-parameter]\n SnowflakeGCSClient::SnowflakeGCSClient(StageInfo *stageInfo, unsigned int parallel,\n" + }, + { + "file_path": "/mnt/host/cpp/SnowflakeGCSClient.cpp", + "line": 34, + "column": 20, + "message": " unused parameter 'transferConfig' ", + "flag": "-Wunused-parameter", + "snippet": " TransferConfig * transferConfig, IStatementPutGet* statement) :\n", + "source": "/mnt/host/cpp/SnowflakeGCSClient.cpp:34:20: warning: unused parameter 'transferConfig' [-Wunused-parameter]\n TransferConfig * transferConfig, IStatementPutGet* statement) :\n" + }, + { + "file_path": "/mnt/host/cpp/util/ByteArrayStreamBuf.hpp", + "line": 134, + "column": 7, + "message": " 'Snowflake::Client::Util::StreamAppender::m_totalPartNum' will be initialized after ", + "flag": "-Wreorder", + "snippet": " int m_totalPartNum;\n", + "source": "/mnt/host/cpp/util/ByteArrayStreamBuf.hpp:134:7: warning: 'Snowflake::Client::Util::StreamAppender::m_totalPartNum' will be initialized after [-Wreorder]\n int m_totalPartNum;\n" + }, + { + "file_path": "/mnt/host/cpp/util/ByteArrayStreamBuf.hpp", + "line": 131, + "column": 7, + "message": " 'int Snowflake::Client::Util::StreamAppender::m_parallel' ", + "flag": "-Wreorder", + "snippet": " int m_parallel;\n", + "source": "/mnt/host/cpp/util/ByteArrayStreamBuf.hpp:131:7: warning: 'int Snowflake::Client::Util::StreamAppender::m_parallel' [-Wreorder]\n int m_parallel;\n" + }, + { + "file_path": "/mnt/host/cpp/util/ByteArrayStreamBuf.cpp", + "line": 85, + "column": 1, + "message": " when initialized here ", + "flag": "-Wreorder", + "snippet": " Snowflake::Client::Util::StreamAppender::StreamAppender(\n", + "source": "/mnt/host/cpp/util/ByteArrayStreamBuf.cpp:85:1: warning: when initialized here [-Wreorder]\n Snowflake::Client::Util::StreamAppender::StreamAppender(\n" + }, + { + "file_path": "/mnt/host/cpp/crypto/CipherStreamBuf.hpp", + "line": 45, + "column": 10, + "message": " 'Snowflake::Client::Crypto::CipherStreamBuf::m_blockSize' will be initialized after ", + "flag": "-Wreorder", + "snippet": " size_t m_blockSize;\n", + "source": "/mnt/host/cpp/crypto/CipherStreamBuf.hpp:45:10: warning: 'Snowflake::Client::Crypto::CipherStreamBuf::m_blockSize' will be initialized after [-Wreorder]\n size_t m_blockSize;\n" + }, + { + "file_path": "/mnt/host/cpp/crypto/CipherStreamBuf.hpp", + "line": 38, + "column": 9, + "message": " 'char* Snowflake::Client::Crypto::CipherStreamBuf::m_srcBuffer' ", + "flag": "-Wreorder", + "snippet": " char *m_srcBuffer;\n", + "source": "/mnt/host/cpp/crypto/CipherStreamBuf.hpp:38:9: warning: 'char* Snowflake::Client::Crypto::CipherStreamBuf::m_srcBuffer' [-Wreorder]\n char *m_srcBuffer;\n" + }, + { + "file_path": "/mnt/host/cpp/crypto/CipherStreamBuf.cpp", + "line": 18, + "column": 1, + "message": " when initialized here ", + "flag": "-Wreorder", + "snippet": " CipherStreamBuf::CipherStreamBuf(::std::basic_streambuf *streambuf,\n", + "source": "/mnt/host/cpp/crypto/CipherStreamBuf.cpp:18:1: warning: when initialized here [-Wreorder]\n CipherStreamBuf::CipherStreamBuf(::std::basic_streambuf *streambuf,\n" + }, + { + "file_path": "/mnt/host/cpp/jwt/ClaimSet.hpp", + "line": 91, + "column": 37, + "message": " unused parameter 'format' ", + "flag": "-Wunused-parameter", + "snippet": " inline std::string serialize(bool format=true) override\n", + "source": "/mnt/host/cpp/jwt/ClaimSet.hpp:91:37: warning: unused parameter 'format' [-Wunused-parameter]\n inline std::string serialize(bool format=true) override\n" + }, + { + "file_path": "/mnt/host/cpp/jwt/Header.hpp", + "line": 74, + "column": 37, + "message": " unused parameter 'format' ", + "flag": "-Wunused-parameter", + "snippet": " inline std::string serialize(bool format=true) override\n", + "source": "/mnt/host/cpp/jwt/Header.hpp:74:37: warning: unused parameter 'format' [-Wunused-parameter]\n inline std::string serialize(bool format=true) override\n" + }, + { + "file_path": "/mnt/host/cpp/jwt/Jwt.cpp", + "line": 54, + "column": 44, + "message": " unused parameter 'format' ", + "flag": "-Wunused-parameter", + "snippet": " bool JWTObject::verify(EVP_PKEY *key, bool format)\n", + "source": "/mnt/host/cpp/jwt/Jwt.cpp:54:44: warning: unused parameter 'format' [-Wunused-parameter]\n bool JWTObject::verify(EVP_PKEY *key, bool format)\n" + }, + { + "file_path": "/mnt/host/cpp/lib/Connection.cpp", + "line": 27, + "column": 63, + "message": " unused parameter 'type_' ", + "flag": "-Wunused-parameter", + "snippet": " void Snowflake::Client::Connection::setAttribute(SF_ATTRIBUTE type_, const void *value_) {\n", + "source": "/mnt/host/cpp/lib/Connection.cpp:27:63: warning: unused parameter 'type_' [-Wunused-parameter]\n void Snowflake::Client::Connection::setAttribute(SF_ATTRIBUTE type_, const void *value_) {\n" + }, + { + "file_path": "/mnt/host/cpp/lib/Connection.cpp", + "line": 27, + "column": 82, + "message": " unused parameter 'value_' ", + "flag": "-Wunused-parameter", + "snippet": " void Snowflake::Client::Connection::setAttribute(SF_ATTRIBUTE type_, const void *value_) {\n", + "source": "/mnt/host/cpp/lib/Connection.cpp:27:82: warning: unused parameter 'value_' [-Wunused-parameter]\n void Snowflake::Client::Connection::setAttribute(SF_ATTRIBUTE type_, const void *value_) {\n" + }, + { + "file_path": "/mnt/host/cpp/lib/Column.cpp", + "line": 7, + "column": 51, + "message": " unused parameter 'column_desc_' ", + "flag": "-Wunused-parameter", + "snippet": " Snowflake::Client::Column::Column(SF_COLUMN_DESC *column_desc_) {}\n", + "source": "/mnt/host/cpp/lib/Column.cpp:7:51: warning: unused parameter 'column_desc_' [-Wunused-parameter]\n Snowflake::Client::Column::Column(SF_COLUMN_DESC *column_desc_) {}\n" + }, + { + "file_path": "/mnt/host/deps-build/linux/Release/arrow/include/arrow/device.h", + "line": 142, + "column": 67, + "message": " unused parameter 'flags' ", + "flag": "-Wunused-parameter", + "snippet": " virtual Result> MakeStream(unsigned int flags) {\n", + "source": "/mnt/host/deps-build/linux/Release/arrow/include/arrow/device.h:142:67: warning: unused parameter 'flags' [-Wunused-parameter]\n virtual Result> MakeStream(unsigned int flags) {\n" + }, + { + "file_path": "/mnt/host/deps-build/linux/Release/arrow/include/arrow/device.h", + "line": 152, + "column": 60, + "message": " unused parameter 'device_stream' ", + "flag": "-Wunused-parameter", + "snippet": " virtual Result> WrapStream(void* device_stream,\n", + "source": "/mnt/host/deps-build/linux/Release/arrow/include/arrow/device.h:152:60: warning: unused parameter 'device_stream' [-Wunused-parameter]\n virtual Result> WrapStream(void* device_stream,\n" + }, + { + "file_path": "/mnt/host/deps-build/linux/Release/arrow/include/arrow/device.h", + "line": 153, + "column": 75, + "message": " unused parameter 'release_fn' ", + "flag": "-Wunused-parameter", + "snippet": " Stream::release_fn_t release_fn) {\n", + "source": "/mnt/host/deps-build/linux/Release/arrow/include/arrow/device.h:153:75: warning: unused parameter 'release_fn' [-Wunused-parameter]\n Stream::release_fn_t release_fn) {\n" + }, + { + "file_path": "/mnt/host/deps-build/linux/Release/arrow/include/arrow/array/builder_base.h", + "line": 178, + "column": 52, + "message": " unused parameter 'array' ", + "flag": "-Wunused-parameter", + "snippet": " virtual Status AppendArraySlice(const ArraySpan& array, int64_t offset,\n", + "source": "/mnt/host/deps-build/linux/Release/arrow/include/arrow/array/builder_base.h:178:52: warning: unused parameter 'array' [-Wunused-parameter]\n virtual Status AppendArraySlice(const ArraySpan& array, int64_t offset,\n" + }, + { + "file_path": "/mnt/host/deps-build/linux/Release/arrow/include/arrow/array/builder_base.h", + "line": 178, + "column": 67, + "message": " unused parameter 'offset' ", + "flag": "-Wunused-parameter", + "snippet": " virtual Status AppendArraySlice(const ArraySpan& array, int64_t offset,\n", + "source": "/mnt/host/deps-build/linux/Release/arrow/include/arrow/array/builder_base.h:178:67: warning: unused parameter 'offset' [-Wunused-parameter]\n virtual Status AppendArraySlice(const ArraySpan& array, int64_t offset,\n" + }, + { + "file_path": "/mnt/host/deps-build/linux/Release/arrow/include/arrow/array/builder_base.h", + "line": 179, + "column": 43, + "message": " unused parameter 'length' ", + "flag": "-Wunused-parameter", + "snippet": " int64_t length) {\n", + "source": "/mnt/host/deps-build/linux/Release/arrow/include/arrow/array/builder_base.h:179:43: warning: unused parameter 'length' [-Wunused-parameter]\n int64_t length) {\n" + }, + { + "file_path": "/mnt/host/deps-build/linux/Release/arrow/include/arrow/array/builder_primitive.h", + "line": 35, + "column": 32, + "message": " unused parameter 'alignment' ", + "flag": "-Wunused-parameter", + "snippet": " int64_t alignment = kDefaultBufferAlignment)\n", + "source": "/mnt/host/deps-build/linux/Release/arrow/include/arrow/array/builder_primitive.h:35:32: warning: unused parameter 'alignment' [-Wunused-parameter]\n int64_t alignment = kDefaultBufferAlignment)\n" + }, + { + "file_path": "/mnt/host/deps-build/linux/Release/arrow/include/arrow/array/builder_primitive.h", + "line": 37, + "column": 57, + "message": " unused parameter 'type' ", + "flag": "-Wunused-parameter", + "snippet": " explicit NullBuilder(const std::shared_ptr& type,\n", + "source": "/mnt/host/deps-build/linux/Release/arrow/include/arrow/array/builder_primitive.h:37:57: warning: unused parameter 'type' [-Wunused-parameter]\n explicit NullBuilder(const std::shared_ptr& type,\n" + }, + { + "file_path": "/mnt/host/deps-build/linux/Release/arrow/include/arrow/array/builder_run_end.h", + "line": 77, + "column": 68, + "message": " unused parameter 'value' ", + "flag": "-Wunused-parameter", + "snippet": " virtual Status WillCloseRun(const std::shared_ptr& value,\n", + "source": "/mnt/host/deps-build/linux/Release/arrow/include/arrow/array/builder_run_end.h:77:68: warning: unused parameter 'value' [-Wunused-parameter]\n virtual Status WillCloseRun(const std::shared_ptr& value,\n" + }, + { + "file_path": "/mnt/host/deps-build/linux/Release/arrow/include/arrow/array/builder_run_end.h", + "line": 78, + "column": 39, + "message": " unused parameter 'length' ", + "flag": "-Wunused-parameter", + "snippet": " int64_t length) {\n", + "source": "/mnt/host/deps-build/linux/Release/arrow/include/arrow/array/builder_run_end.h:78:39: warning: unused parameter 'length' [-Wunused-parameter]\n int64_t length) {\n" + }, + { + "file_path": "/mnt/host/deps-build/linux/Release/arrow/include/arrow/array/builder_run_end.h", + "line": 89, + "column": 52, + "message": " unused parameter 'length' ", + "flag": "-Wunused-parameter", + "snippet": " virtual Status WillCloseRunOfEmptyValues(int64_t length) { return Status::OK(); }\n", + "source": "/mnt/host/deps-build/linux/Release/arrow/include/arrow/array/builder_run_end.h:89:52: warning: unused parameter 'length' [-Wunused-parameter]\n virtual Status WillCloseRunOfEmptyValues(int64_t length) { return Status::OK(); }\n" + }, + { + "file_path": "/mnt/host/deps-build/linux/Release/arrow/include/arrow/util/mutex.h", + "line": 40, + "column": 42, + "message": " unused parameter 'mutex' ", + "flag": "-Wunused-parameter", + "snippet": " Guard() : locked_(NULLPTR, [](Mutex* mutex) {}) {}\n", + "source": "/mnt/host/deps-build/linux/Release/arrow/include/arrow/util/mutex.h:40:42: warning: unused parameter 'mutex' [-Wunused-parameter]\n Guard() : locked_(NULLPTR, [](Mutex* mutex) {}) {}\n" + }, + { + "file_path": "/mnt/host/cpp/lib/ArrowChunkIterator.cpp", + "line": 62, + "column": 27, + "message": " comparison of integer expressions of different signedness: 'int' and 'uint32' {aka 'unsigned int'} ", + "flag": "-Wsign-compare", + "snippet": " for (int col = 0; col < m_columnCount; ++col) {\n", + "source": "/mnt/host/cpp/lib/ArrowChunkIterator.cpp:62:27: warning: comparison of integer expressions of different signedness: 'int' and 'uint32' {aka 'unsigned int'} [-Wsign-compare]\n for (int col = 0; col < m_columnCount; ++col) {\n" + }, + { + "file_path": "/mnt/host/cpp/lib/ArrowChunkIterator.cpp", + "line": 1094, + "column": 23, + "message": " comparison of integer expressions of different signedness: 'int' and 'uint32' {aka 'unsigned int'} ", + "flag": "-Wsign-compare", + "snippet": " for (int i = 0; i < m_columnCount; i++)\n", + "source": "/mnt/host/cpp/lib/ArrowChunkIterator.cpp:1094:23: warning: comparison of integer expressions of different signedness: 'int' and 'uint32' {aka 'unsigned int'} [-Wsign-compare]\n for (int i = 0; i < m_columnCount; i++)\n" + }, + { + "file_path": "/mnt/host/cpp/lib/result_set.cpp", + "line": 350, + "column": 20, + "message": " this statement may fall through ", + "flag": "-Wimplicit-fallthrough=", + "snippet": " rs_obj = static_cast(((rs_arrow_t *)rs)->rs_object);\n", + "source": "/mnt/host/cpp/lib/result_set.cpp:350:20: warning: this statement may fall through [-Wimplicit-fallthrough=]\n rs_obj = static_cast(((rs_arrow_t *)rs)->rs_object);\n" + }, + { + "file_path": "/mnt/host/cpp/lib/result_set.cpp", + "line": 352, + "column": 20, + "message": " this statement may fall through ", + "flag": "-Wimplicit-fallthrough=", + "snippet": " rs_obj = static_cast(((rs_json_t *)rs)->rs_object);\n", + "source": "/mnt/host/cpp/lib/result_set.cpp:352:20: warning: this statement may fall through [-Wimplicit-fallthrough=]\n rs_obj = static_cast(((rs_json_t *)rs)->rs_object);\n" + }, + { + "file_path": "/mnt/host/cpp/lib/result_set.cpp", + "line": 374, + "column": 20, + "message": " this statement may fall through ", + "flag": "-Wimplicit-fallthrough=", + "snippet": " rs_obj = static_cast(((rs_arrow_t *)rs)->rs_object);\n", + "source": "/mnt/host/cpp/lib/result_set.cpp:374:20: warning: this statement may fall through [-Wimplicit-fallthrough=]\n rs_obj = static_cast(((rs_arrow_t *)rs)->rs_object);\n" + }, + { + "file_path": "/mnt/host/cpp/lib/result_set.cpp", + "line": 376, + "column": 20, + "message": " this statement may fall through ", + "flag": "-Wimplicit-fallthrough=", + "snippet": " rs_obj = static_cast(((rs_json_t *)rs)->rs_object);\n", + "source": "/mnt/host/cpp/lib/result_set.cpp:376:20: warning: this statement may fall through [-Wimplicit-fallthrough=]\n rs_obj = static_cast(((rs_json_t *)rs)->rs_object);\n" + }, + { + "file_path": "/mnt/host/cpp/lib/ResultSet.hpp", + "line": 321, + "column": 10, + "message": " 'Snowflake::Client::ResultSet::m_isFirstChunk' will be initialized after ", + "flag": "-Wreorder", + "snippet": " bool m_isFirstChunk;\n", + "source": "/mnt/host/cpp/lib/ResultSet.hpp:321:10: warning: 'Snowflake::Client::ResultSet::m_isFirstChunk' will be initialized after [-Wreorder]\n bool m_isFirstChunk;\n" + }, + { + "file_path": "/mnt/host/cpp/lib/ResultSet.hpp", + "line": 311, + "column": 17, + "message": " 'std::__cxx11::string Snowflake::Client::ResultSet::m_tzString' ", + "flag": "-Wreorder", + "snippet": " std::string m_tzString;\n", + "source": "/mnt/host/cpp/lib/ResultSet.hpp:311:17: warning: 'std::__cxx11::string Snowflake::Client::ResultSet::m_tzString' [-Wreorder]\n std::string m_tzString;\n" + }, + { + "file_path": "/mnt/host/cpp/lib/ResultSet.cpp", + "line": 36, + "column": 1, + "message": " when initialized here ", + "flag": "-Wreorder", + "snippet": " ResultSet::ResultSet(\n", + "source": "/mnt/host/cpp/lib/ResultSet.cpp:36:1: warning: when initialized here [-Wreorder]\n ResultSet::ResultSet(\n" + }, + { + "file_path": "/mnt/host/cpp/lib/ResultSetArrow.cpp", + "line": 76, + "column": 27, + "message": " comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} ", + "flag": "-Wsign-compare", + "snippet": " for (int i = 0; i < m_totalColumnCount; i++)\n", + "source": "/mnt/host/cpp/lib/ResultSetArrow.cpp:76:27: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare]\n for (int i = 0; i < m_totalColumnCount; i++)\n" + }, + { + "file_path": "/mnt/host/cpp/lib/ResultSetArrow.cpp", + "line": 87, + "column": 23, + "message": " comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} ", + "flag": "-Wsign-compare", + "snippet": " for (int i = 0; i < m_totalColumnCount; i++)\n", + "source": "/mnt/host/cpp/lib/ResultSetArrow.cpp:87:23: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare]\n for (int i = 0; i < m_totalColumnCount; i++)\n" + }, + { + "file_path": "/mnt/host/cpp/lib/ResultSetArrow.cpp", + "line": 154, + "column": 13, + "message": " unused variable 'isNull' ", + "flag": "-Wunused-variable", + "snippet": " sf_bool isNull = SF_BOOLEAN_FALSE;\n", + "source": "/mnt/host/cpp/lib/ResultSetArrow.cpp:154:13: warning: unused variable 'isNull' [-Wunused-variable]\n sf_bool isNull = SF_BOOLEAN_FALSE;\n" + }, + { + "file_path": "/mnt/host/cpp/jwt/jwtWrapper.cpp", + "line": 147, + "column": 16, + "message": " unused variable 'temp_obj' ", + "flag": "-Wunused-variable", + "snippet": " IClaimSet *temp_obj = NULL;\n", + "source": "/mnt/host/cpp/jwt/jwtWrapper.cpp:147:16: warning: unused variable 'temp_obj' [-Wunused-variable]\n IClaimSet *temp_obj = NULL;\n" + }, + { + "file_path": "/mnt/host/cpp/util/CurlDescPool.cpp", + "line": 224, + "column": 42, + "message": " unused parameter 'handle' ", + "flag": "-Wunused-parameter", + "snippet": " void CurlDescPool::curlShareLock(CURL *handle, curl_lock_data data,\n", + "source": "/mnt/host/cpp/util/CurlDescPool.cpp:224:42: warning: unused parameter 'handle' [-Wunused-parameter]\n void CurlDescPool::curlShareLock(CURL *handle, curl_lock_data data,\n" + }, + { + "file_path": "/mnt/host/cpp/util/CurlDescPool.cpp", + "line": 225, + "column": 53, + "message": " unused parameter 'access' ", + "flag": "-Wunused-parameter", + "snippet": " curl_lock_access access, void *ctx)\n", + "source": "/mnt/host/cpp/util/CurlDescPool.cpp:225:53: warning: unused parameter 'access' [-Wunused-parameter]\n curl_lock_access access, void *ctx)\n" + }, + { + "file_path": "/mnt/host/cpp/util/CurlDescPool.cpp", + "line": 255, + "column": 44, + "message": " unused parameter 'handle' ", + "flag": "-Wunused-parameter", + "snippet": " void CurlDescPool::curlShareUnlock(CURL *handle, curl_lock_data data,\n", + "source": "/mnt/host/cpp/util/CurlDescPool.cpp:255:44: warning: unused parameter 'handle' [-Wunused-parameter]\n void CurlDescPool::curlShareUnlock(CURL *handle, curl_lock_data data,\n" + }, + { + "file_path": "/mnt/host/include/snowflake/CurlDescPool.hpp", + "line": 86, + "column": 13, + "message": " 'Snowflake::Client::CurlDescPool::SubPool::m_curlShareDesc' will be initialized after ", + "flag": "-Wreorder", + "snippet": " CURLSH *m_curlShareDesc;\n", + "source": "/mnt/host/include/snowflake/CurlDescPool.hpp:86:13: warning: 'Snowflake::Client::CurlDescPool::SubPool::m_curlShareDesc' will be initialized after [-Wreorder]\n CURLSH *m_curlShareDesc;\n" + }, + { + "file_path": "/mnt/host/include/snowflake/CurlDescPool.hpp", + "line": 76, + "column": 19, + "message": " 'Snowflake::Client::CurlDescPool& Snowflake::Client::CurlDescPool::SubPool::m_parentPool' ", + "flag": "-Wreorder", + "snippet": " CurlDescPool& m_parentPool;\n", + "source": "/mnt/host/include/snowflake/CurlDescPool.hpp:76:19: warning: 'Snowflake::Client::CurlDescPool& Snowflake::Client::CurlDescPool::SubPool::m_parentPool' [-Wreorder]\n CurlDescPool& m_parentPool;\n" + }, + { + "file_path": "/mnt/host/cpp/util/CurlDescPool.cpp", + "line": 345, + "column": 3, + "message": " when initialized here ", + "flag": "-Wreorder", + "snippet": " CurlDescPool::SubPool::SubPool(const std::string &endPointName,\n", + "source": "/mnt/host/cpp/util/CurlDescPool.cpp:345:3: warning: when initialized here [-Wreorder]\n CurlDescPool::SubPool::SubPool(const std::string &endPointName,\n" + }, + { + "file_path": "/mnt/host/tests/utils/test_setup.c", + "line": 155, + "column": 23, + "message": " comparison of integer expressions of different signedness: 'int' and 'long unsigned int' ", + "flag": "-Wsign-compare", + "snippet": " for (int i = 0; i < sizeof(uuid); i++)\n", + "source": "/mnt/host/tests/utils/test_setup.c:155:23: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare]\n for (int i = 0; i < sizeof(uuid); i++)\n" + }, + { + "file_path": "/mnt/host/tests/test_perf_type_conversion.c", + "line": 207, + "column": 44, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_col_conv_int64_type_arrow(void **unused) {\n", + "source": "/mnt/host/tests/test_perf_type_conversion.c:207:44: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_col_conv_int64_type_arrow(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_perf_type_conversion.c", + "line": 211, + "column": 43, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_col_conv_int64_type_json(void **unused) {\n", + "source": "/mnt/host/tests/test_perf_type_conversion.c:211:43: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_col_conv_int64_type_json(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_perf_type_conversion.c", + "line": 215, + "column": 46, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_col_conv_float64_type_arrow(void **unused) {\n", + "source": "/mnt/host/tests/test_perf_type_conversion.c:215:46: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_col_conv_float64_type_arrow(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_perf_type_conversion.c", + "line": 219, + "column": 45, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_col_conv_float64_type_json(void **unused) {\n", + "source": "/mnt/host/tests/test_perf_type_conversion.c:219:45: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_col_conv_float64_type_json(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_perf_type_conversion.c", + "line": 223, + "column": 42, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_col_conv_str_type_arrow(void **unused) {\n", + "source": "/mnt/host/tests/test_perf_type_conversion.c:223:42: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_col_conv_str_type_arrow(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_perf_type_conversion.c", + "line": 227, + "column": 41, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_col_conv_str_type_json(void **unused) {\n", + "source": "/mnt/host/tests/test_perf_type_conversion.c:227:41: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_col_conv_str_type_json(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_perf_type_conversion.c", + "line": 231, + "column": 48, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_col_conv_timestamp_type_arrow(void **unused) {\n", + "source": "/mnt/host/tests/test_perf_type_conversion.c:231:48: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_col_conv_timestamp_type_arrow(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_perf_type_conversion.c", + "line": 235, + "column": 47, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_col_conv_timestamp_type_json(void **unused) {\n", + "source": "/mnt/host/tests/test_perf_type_conversion.c:235:47: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_col_conv_timestamp_type_json(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_perf_type_conversion.c", + "line": 239, + "column": 44, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_col_conv_multi_type_arrow(void **unused) {\n", + "source": "/mnt/host/tests/test_perf_type_conversion.c:239:44: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_col_conv_multi_type_arrow(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_perf_type_conversion.c", + "line": 243, + "column": 43, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_col_conv_multi_type_json(void **unused) {\n", + "source": "/mnt/host/tests/test_perf_type_conversion.c:243:43: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_col_conv_multi_type_json(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_perf_type_conversion.c", + "line": 247, + "column": 53, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_col_conv_multi_types_per_row_arrow(void **unused) {\n", + "source": "/mnt/host/tests/test_perf_type_conversion.c:247:53: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_col_conv_multi_types_per_row_arrow(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_perf_type_conversion.c", + "line": 251, + "column": 52, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_col_conv_multi_types_per_row_json(void **unused) {\n", + "source": "/mnt/host/tests/test_perf_type_conversion.c:251:52: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_col_conv_multi_types_per_row_json(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_perf_column_evaluation.c", + "line": 199, + "column": 38, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_eval_all_cols_arrow(void **unused) {\n", + "source": "/mnt/host/tests/test_perf_column_evaluation.c:199:38: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_eval_all_cols_arrow(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_perf_column_evaluation.c", + "line": 203, + "column": 37, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_eval_all_cols_json(void **unused) {\n", + "source": "/mnt/host/tests/test_perf_column_evaluation.c:203:37: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_eval_all_cols_json(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_perf_column_evaluation.c", + "line": 207, + "column": 39, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_eval_half_cols_arrow(void **unused) {\n", + "source": "/mnt/host/tests/test_perf_column_evaluation.c:207:39: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_eval_half_cols_arrow(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_perf_column_evaluation.c", + "line": 211, + "column": 38, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_eval_half_cols_json(void **unused) {\n", + "source": "/mnt/host/tests/test_perf_column_evaluation.c:211:38: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_eval_half_cols_json(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_perf_column_evaluation.c", + "line": 215, + "column": 39, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_skip_rows_half_arrow(void **unused) {\n", + "source": "/mnt/host/tests/test_perf_column_evaluation.c:215:39: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_skip_rows_half_arrow(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_perf_column_evaluation.c", + "line": 219, + "column": 38, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_skip_rows_half_json(void **unused) {\n", + "source": "/mnt/host/tests/test_perf_column_evaluation.c:219:38: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_skip_rows_half_json(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_perf_column_evaluation.c", + "line": 223, + "column": 38, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_skip_all_rows_arrow(void **unused) {\n", + "source": "/mnt/host/tests/test_perf_column_evaluation.c:223:38: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_skip_all_rows_arrow(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_perf_column_evaluation.c", + "line": 227, + "column": 37, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_skip_all_rows_json(void **unused) {\n", + "source": "/mnt/host/tests/test_perf_column_evaluation.c:227:37: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_skip_all_rows_json(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_perf_column_evaluation.c", + "line": 231, + "column": 46, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_skip_all_rows_no_bind_arrow(void **unused) {\n", + "source": "/mnt/host/tests/test_perf_column_evaluation.c:231:46: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_skip_all_rows_no_bind_arrow(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_perf_column_evaluation.c", + "line": 235, + "column": 45, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_skip_all_rows_no_bind_json(void **unused) {\n", + "source": "/mnt/host/tests/test_perf_column_evaluation.c:235:45: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_skip_all_rows_no_bind_json(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_sfurl.cpp", + "line": 12, + "column": 31, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_parse_basic(void ** unused)\n", + "source": "/mnt/host/tests/test_unit_sfurl.cpp:12:31: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_parse_basic(void ** unused)\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_sfurl.cpp", + "line": 65, + "column": 35, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_parse_authority(void ** unused)\n", + "source": "/mnt/host/tests/test_unit_sfurl.cpp:65:35: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_parse_authority(void ** unused)\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_sfurl.cpp", + "line": 94, + "column": 29, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_construct(void ** unused)\n", + "source": "/mnt/host/tests/test_unit_sfurl.cpp:94:29: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_construct(void ** unused)\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_sfurl.cpp", + "line": 129, + "column": 31, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_error_parse(void ** unused)\n", + "source": "/mnt/host/tests/test_unit_sfurl.cpp:129:31: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_error_parse(void ** unused)\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_sfurl.cpp", + "line": 143, + "column": 28, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " static int gr_setup(void **unused)\n", + "source": "/mnt/host/tests/test_unit_sfurl.cpp:143:28: warning: unused parameter 'unused' [-Wunused-parameter]\n static int gr_setup(void **unused)\n" + }, + { + "file_path": "/mnt/host/tests/../cpp/IStorageClient.hpp", + "line": 53, + "column": 43, + "message": " unused parameter 'maxRetries' ", + "flag": "-Wunused-parameter", + "snippet": " virtual void setMaxRetries(unsigned int maxRetries) {};\n", + "source": "/mnt/host/tests/../cpp/IStorageClient.hpp:53:43: warning: unused parameter 'maxRetries' [-Wunused-parameter]\n virtual void setMaxRetries(unsigned int maxRetries) {};\n" + }, + { + "file_path": "/mnt/host/tests/../cpp/FileTransferAgent.hpp", + "line": 101, + "column": 17, + "message": " 'Snowflake::Client::RetryContext::m_putFileName' will be initialized after ", + "flag": "-Wreorder", + "snippet": " std::string m_putFileName;\n", + "source": "/mnt/host/tests/../cpp/FileTransferAgent.hpp:101:17: warning: 'Snowflake::Client::RetryContext::m_putFileName' will be initialized after [-Wreorder]\n std::string m_putFileName;\n" + }, + { + "file_path": "/mnt/host/tests/../cpp/FileTransferAgent.hpp", + "line": 96, + "column": 19, + "message": " 'long unsigned int Snowflake::Client::RetryContext::m_maxRetryCount' ", + "flag": "-Wreorder", + "snippet": " unsigned long m_maxRetryCount;\n", + "source": "/mnt/host/tests/../cpp/FileTransferAgent.hpp:96:19: warning: 'long unsigned int Snowflake::Client::RetryContext::m_maxRetryCount' [-Wreorder]\n unsigned long m_maxRetryCount;\n" + }, + { + "file_path": "/mnt/host/tests/../cpp/FileTransferAgent.hpp", + "line": 43, + "column": 5, + "message": " when initialized here ", + "flag": "-Wreorder", + "snippet": " RetryContext(const std::string &fileName, int maxRetries):\n", + "source": "/mnt/host/tests/../cpp/FileTransferAgent.hpp:43:5: warning: when initialized here [-Wreorder]\n RetryContext(const std::string &fileName, int maxRetries):\n" + }, + { + "file_path": "/mnt/host/tests/../cpp/util/ByteArrayStreamBuf.hpp", + "line": 31, + "column": 10, + "message": " type qualifiers ignored on function return type ", + "flag": "-Wignored-qualifiers", + "snippet": " inline const unsigned int getCapacity()\n", + "source": "/mnt/host/tests/../cpp/util/ByteArrayStreamBuf.hpp:31:10: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]\n inline const unsigned int getCapacity()\n" + }, + { + "file_path": "/mnt/host/tests/../cpp/util/ThreadPool.hpp", + "line": 50, + "column": 8, + "message": " 'Snowflake::Client::Util::ThreadPool::finished' will be initialized after ", + "flag": "-Wreorder", + "snippet": " bool finished;\n", + "source": "/mnt/host/tests/../cpp/util/ThreadPool.hpp:50:8: warning: 'Snowflake::Client::Util::ThreadPool::finished' will be initialized after [-Wreorder]\n bool finished;\n" + }, + { + "file_path": "/mnt/host/tests/../cpp/util/ThreadPool.hpp", + "line": 38, + "column": 22, + "message": " 'const unsigned int Snowflake::Client::Util::ThreadPool::threadCount' ", + "flag": "-Wreorder", + "snippet": " const unsigned int threadCount;\n", + "source": "/mnt/host/tests/../cpp/util/ThreadPool.hpp:38:22: warning: 'const unsigned int Snowflake::Client::Util::ThreadPool::threadCount' [-Wreorder]\n const unsigned int threadCount;\n" + }, + { + "file_path": "/mnt/host/tests/../cpp/util/ThreadPool.hpp", + "line": 137, + "column": 3, + "message": " when initialized here ", + "flag": "-Wreorder", + "snippet": " ThreadPool(unsigned int threadNum)\n", + "source": "/mnt/host/tests/../cpp/util/ThreadPool.hpp:137:3: warning: when initialized here [-Wreorder]\n ThreadPool(unsigned int threadNum)\n" + }, + { + "file_path": "/mnt/host/tests/../cpp/SnowflakeAzureClient.hpp", + "line": 38, + "column": 33, + "message": " unused parameter 'uploadId' ", + "flag": "-Wunused-parameter", + "snippet": " MultiUploadCtx_a(std::string &uploadId,\n", + "source": "/mnt/host/tests/../cpp/SnowflakeAzureClient.hpp:38:33: warning: unused parameter 'uploadId' [-Wunused-parameter]\n MultiUploadCtx_a(std::string &uploadId,\n" + }, + { + "file_path": "/mnt/host/tests/../cpp/SnowflakeAzureClient.hpp", + "line": 39, + "column": 18, + "message": " unused parameter 'partNumber' ", + "flag": "-Wunused-parameter", + "snippet": " unsigned int partNumber,\n", + "source": "/mnt/host/tests/../cpp/SnowflakeAzureClient.hpp:39:18: warning: unused parameter 'partNumber' [-Wunused-parameter]\n unsigned int partNumber,\n" + }, + { + "file_path": "/mnt/host/tests/../cpp/SnowflakeAzureClient.hpp", + "line": 40, + "column": 18, + "message": " unused parameter 'key' ", + "flag": "-Wunused-parameter", + "snippet": " std::string &key,\n", + "source": "/mnt/host/tests/../cpp/SnowflakeAzureClient.hpp:40:18: warning: unused parameter 'key' [-Wunused-parameter]\n std::string &key,\n" + }, + { + "file_path": "/mnt/host/tests/../cpp/SnowflakeAzureClient.hpp", + "line": 41, + "column": 18, + "message": " unused parameter 'bucket' ", + "flag": "-Wunused-parameter", + "snippet": " std::string &bucket)\n", + "source": "/mnt/host/tests/../cpp/SnowflakeAzureClient.hpp:41:18: warning: unused parameter 'bucket' [-Wunused-parameter]\n std::string &bucket)\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_azure_client.cpp", + "line": 55, + "column": 51, + "message": " unused parameter 'command' ", + "flag": "-Wunused-parameter", + "snippet": " virtual ITransferResult *execute(std::string *command)\n", + "source": "/mnt/host/tests/test_unit_azure_client.cpp:55:51: warning: unused parameter 'command' [-Wunused-parameter]\n virtual ITransferResult *execute(std::string *command)\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_azure_client.cpp", + "line": 61, + "column": 62, + "message": " unused parameter 'uploadStream' ", + "flag": "-Wunused-parameter", + "snippet": " virtual void setUploadStream(std::basic_iostream * uploadStream,\n", + "source": "/mnt/host/tests/test_unit_azure_client.cpp:61:62: warning: unused parameter 'uploadStream' [-Wunused-parameter]\n virtual void setUploadStream(std::basic_iostream * uploadStream,\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_azure_client.cpp", + "line": 62, + "column": 41, + "message": " unused parameter 'dataSize' ", + "flag": "-Wunused-parameter", + "snippet": " size_t dataSize)\n", + "source": "/mnt/host/tests/test_unit_azure_client.cpp:62:41: warning: unused parameter 'dataSize' [-Wunused-parameter]\n size_t dataSize)\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_azure_client.cpp", + "line": 95, + "column": 40, + "message": " unused parameter 'sql' ", + "flag": "-Wunused-parameter", + "snippet": " bool parsePutGetCommand(std::string *sql,\n", + "source": "/mnt/host/tests/test_unit_azure_client.cpp:95:40: warning: unused parameter 'sql' [-Wunused-parameter]\n bool parsePutGetCommand(std::string *sql,\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_azure_client.cpp", + "line": 154, + "column": 46, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_azure_cafile_path_too_long(void ** unused)\n", + "source": "/mnt/host/tests/test_unit_azure_client.cpp:154:46: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_azure_cafile_path_too_long(void ** unused)\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_azure_client.cpp", + "line": 171, + "column": 44, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_azure_empty_cafile_noenv(void ** unused)\n", + "source": "/mnt/host/tests/test_unit_azure_client.cpp:171:44: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_azure_empty_cafile_noenv(void ** unused)\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_azure_client.cpp", + "line": 208, + "column": 47, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_azure_empty_cafile_from_env(void ** unused)\n", + "source": "/mnt/host/tests/test_unit_azure_client.cpp:208:47: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_azure_empty_cafile_from_env(void ** unused)\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_azure_client.cpp", + "line": 242, + "column": 54, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_azure_empty_cafile_from_global_env(void ** unused)\n", + "source": "/mnt/host/tests/test_unit_azure_client.cpp:242:54: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_azure_empty_cafile_from_global_env(void ** unused)\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_azure_client.cpp", + "line": 276, + "column": 75, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_azure_cafile_path_too_long_from_env_transferconfig_null(void ** unused)\n", + "source": "/mnt/host/tests/test_unit_azure_client.cpp:276:75: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_azure_cafile_path_too_long_from_env_transferconfig_null(void ** unused)\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_azure_client.cpp", + "line": 310, + "column": 82, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_azure_cafile_path_too_long_from_global_env_transferconfig_null(void ** unused)\n", + "source": "/mnt/host/tests/test_unit_azure_client.cpp:310:82: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_azure_cafile_path_too_long_from_global_env_transferconfig_null(void ** unused)\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_set_get_attributes.cpp", + "line": 83, + "column": 41, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_set_get_all_attributes(void **unused)\n", + "source": "/mnt/host/tests/test_unit_set_get_attributes.cpp:83:41: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_set_get_all_attributes(void **unused)\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_oob.cpp", + "line": 137, + "column": 25, + "message": " comparison of integer expressions of different signedness: 'int' and 'long unsigned int' ", + "flag": "-Wsign-compare", + "snippet": " for (evnt = 0; evnt < sizeof(testcase)/sizeof(SF_SETTINGS); ++evnt) {\n", + "source": "/mnt/host/tests/test_unit_oob.cpp:137:25: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare]\n for (evnt = 0; evnt < sizeof(testcase)/sizeof(SF_SETTINGS); ++evnt) {\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_oob.cpp", + "line": 207, + "column": 27, + "message": " comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} ", + "flag": "-Wsign-compare", + "snippet": " for (int j = 0; j < SF_SENSITIVE_KEYS.size(); ++j) {\n", + "source": "/mnt/host/tests/test_unit_oob.cpp:207:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare]\n for (int j = 0; j < SF_SENSITIVE_KEYS.size(); ++j) {\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_oob.cpp", + "line": 230, + "column": 29, + "message": " comparison of integer expressions of different signedness: 'int' and 'long unsigned int' ", + "flag": "-Wsign-compare", + "snippet": " for (int evnt = 0; evnt < sizeof(dsnParameters)/sizeof(SF_PAIR); ++evnt) {\n", + "source": "/mnt/host/tests/test_unit_oob.cpp:230:29: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare]\n for (int evnt = 0; evnt < sizeof(dsnParameters)/sizeof(SF_PAIR); ++evnt) {\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_oob.cpp", + "line": 238, + "column": 27, + "message": " comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} ", + "flag": "-Wsign-compare", + "snippet": " for (int i = 0; i < SF_SENSITIVE_KEYS.size(); ++i) {\n", + "source": "/mnt/host/tests/test_unit_oob.cpp:238:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare]\n for (int i = 0; i < SF_SENSITIVE_KEYS.size(); ++i) {\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_oob.cpp", + "line": 297, + "column": 23, + "message": " comparison of integer expressions of different signedness: 'int' and 'long unsigned int' ", + "flag": "-Wsign-compare", + "snippet": " for (int i = 0; i < sizeof(simbaParameters)/sizeof(SF_PAIR); ++i) {\n", + "source": "/mnt/host/tests/test_unit_oob.cpp:297:23: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare]\n for (int i = 0; i < sizeof(simbaParameters)/sizeof(SF_PAIR); ++i) {\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_proxy.cpp", + "line": 18, + "column": 21, + "message": " unused parameter 'scheme' ", + "flag": "-Wunused-parameter", + "snippet": " Proxy::Protocol scheme,\n", + "source": "/mnt/host/tests/test_unit_proxy.cpp:18:21: warning: unused parameter 'scheme' [-Wunused-parameter]\n Proxy::Protocol scheme,\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_proxy.cpp", + "line": 36, + "column": 37, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_proxy_machine_only(void **unused)\n", + "source": "/mnt/host/tests/test_unit_proxy.cpp:36:37: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_proxy_machine_only(void **unused)\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_proxy.cpp", + "line": 41, + "column": 41, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_proxy_machine_and_port(void **unused)\n", + "source": "/mnt/host/tests/test_unit_proxy.cpp:41:41: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_proxy_machine_and_port(void **unused)\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_proxy.cpp", + "line": 46, + "column": 43, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_proxy_machine_and_scheme(void **unused)\n", + "source": "/mnt/host/tests/test_unit_proxy.cpp:46:43: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_proxy_machine_and_scheme(void **unused)\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_proxy.cpp", + "line": 51, + "column": 44, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_proxy_machine_port_scheme(void **unused)\n", + "source": "/mnt/host/tests/test_unit_proxy.cpp:51:44: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_proxy_machine_port_scheme(void **unused)\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_proxy.cpp", + "line": 56, + "column": 28, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_proxy_all(void **unused)\n", + "source": "/mnt/host/tests/test_unit_proxy.cpp:56:28: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_proxy_all(void **unused)\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_proxy.cpp", + "line": 62, + "column": 30, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_proxy_empty(void **unused)\n", + "source": "/mnt/host/tests/test_unit_proxy.cpp:62:30: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_proxy_empty(void **unused)\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_proxy.cpp", + "line": 67, + "column": 43, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_allproxy_noproxy_fromenv(void **unused)\n", + "source": "/mnt/host/tests/test_unit_proxy.cpp:67:43: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_allproxy_noproxy_fromenv(void **unused)\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_proxy.cpp", + "line": 76, + "column": 37, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_httpsproxy_fromenv(void **unused)\n", + "source": "/mnt/host/tests/test_unit_proxy.cpp:76:37: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_httpsproxy_fromenv(void **unused)\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_proxy.cpp", + "line": 83, + "column": 36, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_httpproxy_fromenv(void **unused)\n", + "source": "/mnt/host/tests/test_unit_proxy.cpp:83:36: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_httpproxy_fromenv(void **unused)\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_proxy.cpp", + "line": 90, + "column": 34, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_noproxy_fromenv(void **unused)\n", + "source": "/mnt/host/tests/test_unit_proxy.cpp:90:34: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_noproxy_fromenv(void **unused)\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_query_context_cache.cpp", + "line": 99, + "column": 28, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_is_empty(void ** unused)\n", + "source": "/mnt/host/tests/test_unit_query_context_cache.cpp:99:28: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_is_empty(void ** unused)\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_query_context_cache.cpp", + "line": 106, + "column": 34, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_with_some_data(void ** unused)\n", + "source": "/mnt/host/tests/test_unit_query_context_cache.cpp:106:34: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_with_some_data(void ** unused)\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_query_context_cache.cpp", + "line": 114, + "column": 50, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_with_some_data_in_random_order(void ** unused)\n", + "source": "/mnt/host/tests/test_unit_query_context_cache.cpp:114:50: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_with_some_data_in_random_order(void ** unused)\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_query_context_cache.cpp", + "line": 122, + "column": 38, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_more_than_capacity(void ** unused)\n", + "source": "/mnt/host/tests/test_unit_query_context_cache.cpp:122:38: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_more_than_capacity(void ** unused)\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_query_context_cache.cpp", + "line": 137, + "column": 36, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_update_timestamp(void ** unused)\n", + "source": "/mnt/host/tests/test_unit_query_context_cache.cpp:137:36: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_update_timestamp(void ** unused)\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_query_context_cache.cpp", + "line": 156, + "column": 35, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_update_priority(void ** unused)\n", + "source": "/mnt/host/tests/test_unit_query_context_cache.cpp:156:35: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_update_priority(void ** unused)\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_query_context_cache.cpp", + "line": 187, + "column": 37, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_add_same_priority(void ** unused)\n", + "source": "/mnt/host/tests/test_unit_query_context_cache.cpp:187:37: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_add_same_priority(void ** unused)\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_query_context_cache.cpp", + "line": 205, + "column": 51, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_add_same_id_but_stale_timestamp(void ** unused)\n", + "source": "/mnt/host/tests/test_unit_query_context_cache.cpp:205:51: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_add_same_id_but_stale_timestamp(void ** unused)\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_query_context_cache.cpp", + "line": 220, + "column": 46, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_empty_cache_with_null_data(void ** unused)\n", + "source": "/mnt/host/tests/test_unit_query_context_cache.cpp:220:46: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_empty_cache_with_null_data(void ** unused)\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_query_context_cache.cpp", + "line": 231, + "column": 56, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_empty_cache_with_empty_response_data(void ** unused)\n", + "source": "/mnt/host/tests/test_unit_query_context_cache.cpp:231:56: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_empty_cache_with_empty_response_data(void ** unused)\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_query_context_cache.cpp", + "line": 242, + "column": 67, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_serialize_request_and_deserialize_response_data(void ** unused)\n", + "source": "/mnt/host/tests/test_unit_query_context_cache.cpp:242:67: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_serialize_request_and_deserialize_response_data(void ** unused)\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_query_context_cache.cpp", + "line": 260, + "column": 86, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_serialize_request_and_deserialize_response_data_with_empty_context(void ** unused)\n", + "source": "/mnt/host/tests/test_unit_query_context_cache.cpp:260:86: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_serialize_request_and_deserialize_response_data_with_empty_context(void ** unused)\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_query_context_cache.cpp", + "line": 277, + "column": 28, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " static int gr_setup(void **unused)\n", + "source": "/mnt/host/tests/test_unit_query_context_cache.cpp:277:28: warning: unused parameter 'unused' [-Wunused-parameter]\n static int gr_setup(void **unused)\n" + }, + { + "file_path": "/mnt/host/tests/test_jwt.cpp", + "line": 171, + "column": 38, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_missing_private_key(void **unused) {\n", + "source": "/mnt/host/tests/test_jwt.cpp:171:38: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_missing_private_key(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_jwt.cpp", + "line": 192, + "column": 34, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_unencrypted_pem(void **unused) {\n", + "source": "/mnt/host/tests/test_jwt.cpp:192:34: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_unencrypted_pem(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_jwt.cpp", + "line": 217, + "column": 32, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_encrypted_pem(void **unused) {\n", + "source": "/mnt/host/tests/test_jwt.cpp:217:32: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_encrypted_pem(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_jwt.cpp", + "line": 279, + "column": 24, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_renew(void **unused) {\n", + "source": "/mnt/host/tests/test_jwt.cpp:279:24: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_renew(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_thread_pool.cpp", + "line": 10, + "column": 30, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_thread_pool(void **unused)\n", + "source": "/mnt/host/tests/test_unit_thread_pool.cpp:10:30: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_thread_pool(void **unused)\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_put_get_gcs.cpp", + "line": 170, + "column": 8, + "message": " 'MockedGCSStatement::m_isPut' will be initialized after ", + "flag": "-Wreorder", + "snippet": " bool m_isPut;\n", + "source": "/mnt/host/tests/test_unit_put_get_gcs.cpp:170:8: warning: 'MockedGCSStatement::m_isPut' will be initialized after [-Wreorder]\n bool m_isPut;\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_put_get_gcs.cpp", + "line": 38, + "column": 43, + "message": " base 'Snowflake::Client::IStatementPutGet' ", + "flag": "-Wreorder", + "snippet": " Snowflake::Client::IStatementPutGet()\n", + "source": "/mnt/host/tests/test_unit_put_get_gcs.cpp:38:43: warning: base 'Snowflake::Client::IStatementPutGet' [-Wreorder]\n Snowflake::Client::IStatementPutGet()\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_put_get_gcs.cpp", + "line": 34, + "column": 3, + "message": " when initialized here ", + "flag": "-Wreorder", + "snippet": " MockedGCSStatement(bool useGcsToken)\n", + "source": "/mnt/host/tests/test_unit_put_get_gcs.cpp:34:3: warning: when initialized here [-Wreorder]\n MockedGCSStatement(bool useGcsToken)\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_put_get_gcs.cpp", + "line": 106, + "column": 23, + "message": " comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} ", + "flag": "-Wsign-compare", + "snippet": " for (int i = 0; i < headers.size(); i++)\n", + "source": "/mnt/host/tests/test_unit_put_get_gcs.cpp:106:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare]\n for (int i = 0; i < headers.size(); i++)\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_put_get_gcs.cpp", + "line": 97, + "column": 52, + "message": " unused parameter 'payload' ", + "flag": "-Wunused-parameter", + "snippet": " std::basic_iostream& payload,\n", + "source": "/mnt/host/tests/test_unit_put_get_gcs.cpp:97:52: warning: unused parameter 'payload' [-Wunused-parameter]\n std::basic_iostream& payload,\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_put_get_gcs.cpp", + "line": 98, + "column": 32, + "message": " unused parameter 'payloadLen' ", + "flag": "-Wunused-parameter", + "snippet": " size_t payloadLen,\n", + "source": "/mnt/host/tests/test_unit_put_get_gcs.cpp:98:32: warning: unused parameter 'payloadLen' [-Wunused-parameter]\n size_t payloadLen,\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_put_get_gcs.cpp", + "line": 99, + "column": 38, + "message": " unused parameter 'responseHeaders' ", + "flag": "-Wunused-parameter", + "snippet": " std::string& responseHeaders) override\n", + "source": "/mnt/host/tests/test_unit_put_get_gcs.cpp:99:38: warning: unused parameter 'responseHeaders' [-Wunused-parameter]\n std::string& responseHeaders) override\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_put_get_gcs.cpp", + "line": 144, + "column": 25, + "message": " comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} ", + "flag": "-Wsign-compare", + "snippet": " for (int i = 0; i < headers.size(); i++)\n", + "source": "/mnt/host/tests/test_unit_put_get_gcs.cpp:144:25: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare]\n for (int i = 0; i < headers.size(); i++)\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_put_get_gcs.cpp", + "line": 117, + "column": 52, + "message": " unused parameter 'payload' ", + "flag": "-Wunused-parameter", + "snippet": " std::basic_iostream* payload,\n", + "source": "/mnt/host/tests/test_unit_put_get_gcs.cpp:117:52: warning: unused parameter 'payload' [-Wunused-parameter]\n std::basic_iostream* payload,\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_put_get_gcs.cpp", + "line": 232, + "column": 45, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_simple_put_gcs_with_token(void ** unused)\n", + "source": "/mnt/host/tests/test_unit_put_get_gcs.cpp:232:45: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_simple_put_gcs_with_token(void ** unused)\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_put_get_gcs.cpp", + "line": 240, + "column": 45, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_simple_get_gcs_with_token(void ** unused)\n", + "source": "/mnt/host/tests/test_unit_put_get_gcs.cpp:240:45: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_simple_get_gcs_with_token(void ** unused)\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_put_get_gcs.cpp", + "line": 248, + "column": 52, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_simple_put_gcs_with_presignedurl(void ** unused)\n", + "source": "/mnt/host/tests/test_unit_put_get_gcs.cpp:248:52: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_simple_put_gcs_with_presignedurl(void ** unused)\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_put_get_gcs.cpp", + "line": 256, + "column": 52, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_simple_get_gcs_with_presignedurl(void ** unused)\n", + "source": "/mnt/host/tests/test_unit_put_get_gcs.cpp:256:52: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_simple_get_gcs_with_presignedurl(void ** unused)\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_put_get_gcs.cpp", + "line": 261, + "column": 28, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " static int gr_setup(void **unused)\n", + "source": "/mnt/host/tests/test_unit_put_get_gcs.cpp:261:28: warning: unused parameter 'unused' [-Wunused-parameter]\n static int gr_setup(void **unused)\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_snowflake_types_to_string.cpp", + "line": 53, + "column": 43, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_snowflake_type_to_string(void **unused)\n", + "source": "/mnt/host/tests/test_unit_snowflake_types_to_string.cpp:53:43: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_snowflake_type_to_string(void **unused)\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_snowflake_types_to_string.cpp", + "line": 65, + "column": 45, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_snowflake_c_type_to_string(void **unused)\n", + "source": "/mnt/host/tests/test_unit_snowflake_types_to_string.cpp:65:45: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_snowflake_c_type_to_string(void **unused)\n" + }, + { + "file_path": "/mnt/host/tests/test_bool.c", + "line": 157, + "column": 29, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_bool_arrow(void **unused) {\n", + "source": "/mnt/host/tests/test_bool.c:157:29: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_bool_arrow(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_bool.c", + "line": 161, + "column": 28, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_bool_json(void **unused) {\n", + "source": "/mnt/host/tests/test_bool.c:161:28: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_bool_json(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_binary.c", + "line": 138, + "column": 34, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_selectbin_arrow(void **unused) {\n", + "source": "/mnt/host/tests/test_binary.c:138:34: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_selectbin_arrow(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_binary.c", + "line": 142, + "column": 33, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_selectbin_json(void **unused) {\n", + "source": "/mnt/host/tests/test_binary.c:142:33: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_selectbin_json(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_base64.cpp", + "line": 169, + "column": 32, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_base64_coding(void **unused)\n", + "source": "/mnt/host/tests/test_unit_base64.cpp:169:32: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_base64_coding(void **unused)\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_base64.cpp", + "line": 228, + "column": 25, + "message": " comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} ", + "flag": "-Wsign-compare", + "snippet": " for (int i = 0; i < decodeActual.size(); i++)\n", + "source": "/mnt/host/tests/test_unit_base64.cpp:228:25: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare]\n for (int i = 0; i < decodeActual.size(); i++)\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_base64.cpp", + "line": 242, + "column": 36, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_base64_url_coding(void **unused)\n", + "source": "/mnt/host/tests/test_unit_base64.cpp:242:36: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_base64_url_coding(void **unused)\n" + }, + { + "file_path": "/mnt/host/tests/test_timezone.c", + "line": 8, + "column": 27, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_timezone(void **unused) {\n", + "source": "/mnt/host/tests/test_timezone.c:8:27: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_timezone(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_transaction.c", + "line": 7, + "column": 30, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_transaction(void **unused) {\n", + "source": "/mnt/host/tests/test_transaction.c:7:30: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_transaction(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_large_result_set.c", + "line": 76, + "column": 41, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_large_result_set_arrow(void **unused) {\n", + "source": "/mnt/host/tests/test_large_result_set.c:76:41: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_large_result_set_arrow(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_large_result_set.c", + "line": 80, + "column": 40, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_large_result_set_json(void **unused) {\n", + "source": "/mnt/host/tests/test_large_result_set.c:80:40: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_large_result_set_json(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_connect_parameters.c", + "line": 11, + "column": 53, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_connection_parameters_default_port(void **unused) {\n", + "source": "/mnt/host/tests/test_unit_connect_parameters.c:11:53: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_connection_parameters_default_port(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_connect_parameters.c", + "line": 26, + "column": 48, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_connection_parameters_no_host(void **unused) {\n", + "source": "/mnt/host/tests/test_unit_connect_parameters.c:26:48: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_connection_parameters_no_host(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_connect_parameters.c", + "line": 41, + "column": 52, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_connection_parameters_with_region(void **unused) {\n", + "source": "/mnt/host/tests/test_unit_connect_parameters.c:41:52: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_connection_parameters_with_region(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_connect_parameters.c", + "line": 58, + "column": 55, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_connection_parameters_with_cn_region(void **unused) {\n", + "source": "/mnt/host/tests/test_unit_connect_parameters.c:58:55: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_connection_parameters_with_cn_region(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_connect_parameters.c", + "line": 75, + "column": 57, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_connection_parameters_including_region(void **unused) {\n", + "source": "/mnt/host/tests/test_unit_connect_parameters.c:75:57: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_connection_parameters_including_region(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_connect_parameters.c", + "line": 96, + "column": 71, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_connection_parameters_including_region_including_dot(void **unused) {\n", + "source": "/mnt/host/tests/test_unit_connect_parameters.c:96:71: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_connection_parameters_including_region_including_dot(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_connect_parameters.c", + "line": 114, + "column": 61, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_connection_parameters_for_global_url_basic(void **unused) {\n", + "source": "/mnt/host/tests/test_unit_connect_parameters.c:114:61: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_connection_parameters_for_global_url_basic(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_connect_parameters.c", + "line": 132, + "column": 60, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_connection_parameters_for_global_url_full(void **unused) {\n", + "source": "/mnt/host/tests/test_unit_connect_parameters.c:132:60: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_connection_parameters_for_global_url_full(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_connect_parameters.c", + "line": 153, + "column": 71, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_connection_parameters_for_global_with_account_dashes(void **unused) {\n", + "source": "/mnt/host/tests/test_unit_connect_parameters.c:153:71: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_connection_parameters_for_global_with_account_dashes(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_connect_parameters.c", + "line": 174, + "column": 52, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_connection_parameters_application(void **unused) {\n", + "source": "/mnt/host/tests/test_unit_connect_parameters.c:174:52: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_connection_parameters_application(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_put_get_fips.cpp", + "line": 78, + "column": 51, + "message": " unused parameter 'command' ", + "flag": "-Wunused-parameter", + "snippet": " virtual ITransferResult *execute(std::string *command)\n", + "source": "/mnt/host/tests/test_unit_put_get_fips.cpp:78:51: warning: unused parameter 'command' [-Wunused-parameter]\n virtual ITransferResult *execute(std::string *command)\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_put_get_fips.cpp", + "line": 84, + "column": 62, + "message": " unused parameter 'uploadStream' ", + "flag": "-Wunused-parameter", + "snippet": " virtual void setUploadStream(std::basic_iostream * uploadStream,\n", + "source": "/mnt/host/tests/test_unit_put_get_fips.cpp:84:62: warning: unused parameter 'uploadStream' [-Wunused-parameter]\n virtual void setUploadStream(std::basic_iostream * uploadStream,\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_put_get_fips.cpp", + "line": 85, + "column": 41, + "message": " unused parameter 'dataSize' ", + "flag": "-Wunused-parameter", + "snippet": " size_t dataSize)\n", + "source": "/mnt/host/tests/test_unit_put_get_fips.cpp:85:41: warning: unused parameter 'dataSize' [-Wunused-parameter]\n size_t dataSize)\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_put_get_fips.cpp", + "line": 125, + "column": 40, + "message": " unused parameter 'sql' ", + "flag": "-Wunused-parameter", + "snippet": " bool parsePutGetCommand(std::string *sql,\n", + "source": "/mnt/host/tests/test_unit_put_get_fips.cpp:125:40: warning: unused parameter 'sql' [-Wunused-parameter]\n bool parsePutGetCommand(std::string *sql,\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_put_get_fips.cpp", + "line": 210, + "column": 45, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_simple_put_stage_endpoint(void ** unused)\n", + "source": "/mnt/host/tests/test_unit_put_get_fips.cpp:210:45: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_simple_put_stage_endpoint(void ** unused)\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_put_get_fips.cpp", + "line": 239, + "column": 44, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_simple_put_stage_regional(void** unused)\n", + "source": "/mnt/host/tests/test_unit_put_get_fips.cpp:239:44: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_simple_put_stage_regional(void** unused)\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_put_get_fips.cpp", + "line": 250, + "column": 40, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_s3_cafile_path_empty(void ** unused)\n", + "source": "/mnt/host/tests/test_unit_put_get_fips.cpp:250:40: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_s3_cafile_path_empty(void ** unused)\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_put_get_fips.cpp", + "line": 263, + "column": 43, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_s3_cafile_path_too_long(void ** unused)\n", + "source": "/mnt/host/tests/test_unit_put_get_fips.cpp:263:43: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_s3_cafile_path_too_long(void ** unused)\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_put_get_fips.cpp", + "line": 279, + "column": 50, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_s3_global_cafile_path_too_long(void ** unused)\n", + "source": "/mnt/host/tests/test_unit_put_get_fips.cpp:279:50: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_s3_global_cafile_path_too_long(void ** unused)\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_put_get_fips.cpp", + "line": 304, + "column": 28, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " static int gr_setup(void **unused)\n", + "source": "/mnt/host/tests/test_unit_put_get_fips.cpp:304:28: warning: unused parameter 'unused' [-Wunused-parameter]\n static int gr_setup(void **unused)\n" + }, + { + "file_path": "/mnt/host/tests/test_stmt_functions.c", + "line": 9, + "column": 24, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_sfqid(void **unused) {\n", + "source": "/mnt/host/tests/test_stmt_functions.c:9:24: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_sfqid(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_oauth.c", + "line": 13, + "column": 38, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_oauth_with_no_token(void** unused)\n", + "source": "/mnt/host/tests/test_unit_oauth.c:13:38: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_oauth_with_no_token(void** unused)\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_oauth.c", + "line": 33, + "column": 37, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_json_data_in_oauth(void** unused)\n", + "source": "/mnt/host/tests/test_unit_oauth.c:33:37: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_json_data_in_oauth(void** unused)\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_cred_renew.cpp", + "line": 32, + "column": 48, + "message": " unused parameter 'sql' ", + "flag": "-Wunused-parameter", + "snippet": " virtual bool parsePutGetCommand(std::string *sql,\n", + "source": "/mnt/host/tests/test_unit_cred_renew.cpp:32:48: warning: unused parameter 'sql' [-Wunused-parameter]\n virtual bool parsePutGetCommand(std::string *sql,\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_cred_renew.cpp", + "line": 33, + "column": 56, + "message": " unused parameter 'putGetParseResponse' ", + "flag": "-Wunused-parameter", + "snippet": " PutGetParseResponse *putGetParseResponse)\n", + "source": "/mnt/host/tests/test_unit_cred_renew.cpp:33:56: warning: unused parameter 'putGetParseResponse' [-Wunused-parameter]\n PutGetParseResponse *putGetParseResponse)\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_cred_renew.cpp", + "line": 56, + "column": 48, + "message": " unused parameter 'sql' ", + "flag": "-Wunused-parameter", + "snippet": " virtual bool parsePutGetCommand(std::string *sql,\n", + "source": "/mnt/host/tests/test_unit_cred_renew.cpp:56:48: warning: unused parameter 'sql' [-Wunused-parameter]\n virtual bool parsePutGetCommand(std::string *sql,\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_cred_renew.cpp", + "line": 107, + "column": 48, + "message": " unused parameter 'sql' ", + "flag": "-Wunused-parameter", + "snippet": " virtual bool parsePutGetCommand(std::string *sql,\n", + "source": "/mnt/host/tests/test_unit_cred_renew.cpp:107:48: warning: unused parameter 'sql' [-Wunused-parameter]\n virtual bool parsePutGetCommand(std::string *sql,\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_cred_renew.cpp", + "line": 146, + "column": 48, + "message": " unused parameter 'sql' ", + "flag": "-Wunused-parameter", + "snippet": " virtual bool parsePutGetCommand(std::string *sql,\n", + "source": "/mnt/host/tests/test_unit_cred_renew.cpp:146:48: warning: unused parameter 'sql' [-Wunused-parameter]\n virtual bool parsePutGetCommand(std::string *sql,\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_cred_renew.cpp", + "line": 193, + "column": 60, + "message": " unused parameter 'fileMetadata' ", + "flag": "-Wunused-parameter", + "snippet": " virtual RemoteStorageRequestOutcome upload(FileMetadata *fileMetadata,\n", + "source": "/mnt/host/tests/test_unit_cred_renew.cpp:193:60: warning: unused parameter 'fileMetadata' [-Wunused-parameter]\n virtual RemoteStorageRequestOutcome upload(FileMetadata *fileMetadata,\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_cred_renew.cpp", + "line": 194, + "column": 61, + "message": " unused parameter 'dataStream' ", + "flag": "-Wunused-parameter", + "snippet": " std::basic_iostream *dataStream)\n", + "source": "/mnt/host/tests/test_unit_cred_renew.cpp:194:61: warning: unused parameter 'dataStream' [-Wunused-parameter]\n std::basic_iostream *dataStream)\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_cred_renew.cpp", + "line": 210, + "column": 19, + "message": " unused parameter 'filePathFull' ", + "flag": "-Wunused-parameter", + "snippet": " std::string * filePathFull, FileMetadata *fileMetadata)\n", + "source": "/mnt/host/tests/test_unit_cred_renew.cpp:210:19: warning: unused parameter 'filePathFull' [-Wunused-parameter]\n std::string * filePathFull, FileMetadata *fileMetadata)\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_cred_renew.cpp", + "line": 232, + "column": 63, + "message": " unused parameter 'fileMetadata' ", + "flag": "-Wunused-parameter", + "snippet": " virtual RemoteStorageRequestOutcome download(FileMetadata * fileMetadata,\n", + "source": "/mnt/host/tests/test_unit_cred_renew.cpp:232:63: warning: unused parameter 'fileMetadata' [-Wunused-parameter]\n virtual RemoteStorageRequestOutcome download(FileMetadata * fileMetadata,\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_cred_renew.cpp", + "line": 233, + "column": 75, + "message": " unused parameter 'dataStream' ", + "flag": "-Wunused-parameter", + "snippet": " std::basic_iostream* dataStream)\n", + "source": "/mnt/host/tests/test_unit_cred_renew.cpp:233:75: warning: unused parameter 'dataStream' [-Wunused-parameter]\n std::basic_iostream* dataStream)\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_cred_renew.cpp", + "line": 275, + "column": 60, + "message": " unused parameter 'fileMetadata' ", + "flag": "-Wunused-parameter", + "snippet": " virtual RemoteStorageRequestOutcome upload(FileMetadata *fileMetadata,\n", + "source": "/mnt/host/tests/test_unit_cred_renew.cpp:275:60: warning: unused parameter 'fileMetadata' [-Wunused-parameter]\n virtual RemoteStorageRequestOutcome upload(FileMetadata *fileMetadata,\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_cred_renew.cpp", + "line": 276, + "column": 61, + "message": " unused parameter 'dataStream' ", + "flag": "-Wunused-parameter", + "snippet": " std::basic_iostream *dataStream)\n", + "source": "/mnt/host/tests/test_unit_cred_renew.cpp:276:61: warning: unused parameter 'dataStream' [-Wunused-parameter]\n std::basic_iostream *dataStream)\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_cred_renew.cpp", + "line": 282, + "column": 63, + "message": " unused parameter 'fileMetadata' ", + "flag": "-Wunused-parameter", + "snippet": " virtual RemoteStorageRequestOutcome download(FileMetadata * fileMetadata,\n", + "source": "/mnt/host/tests/test_unit_cred_renew.cpp:282:63: warning: unused parameter 'fileMetadata' [-Wunused-parameter]\n virtual RemoteStorageRequestOutcome download(FileMetadata * fileMetadata,\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_cred_renew.cpp", + "line": 283, + "column": 75, + "message": " unused parameter 'dataStream' ", + "flag": "-Wunused-parameter", + "snippet": " std::basic_iostream* dataStream)\n", + "source": "/mnt/host/tests/test_unit_cred_renew.cpp:283:75: warning: unused parameter 'dataStream' [-Wunused-parameter]\n std::basic_iostream* dataStream)\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_cred_renew.cpp", + "line": 290, + "column": 19, + "message": " unused parameter 'filePathFull' ", + "flag": "-Wunused-parameter", + "snippet": " std::string * filePathFull, FileMetadata *fileMetadata)\n", + "source": "/mnt/host/tests/test_unit_cred_renew.cpp:290:19: warning: unused parameter 'filePathFull' [-Wunused-parameter]\n std::string * filePathFull, FileMetadata *fileMetadata)\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_cred_renew.cpp", + "line": 327, + "column": 43, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_token_renew_small_files(void ** unused)\n", + "source": "/mnt/host/tests/test_unit_cred_renew.cpp:327:43: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_token_renew_small_files(void ** unused)\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_cred_renew.cpp", + "line": 332, + "column": 42, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_token_renew_large_file(void ** unused)\n", + "source": "/mnt/host/tests/test_unit_cred_renew.cpp:332:42: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_token_renew_large_file(void ** unused)\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_cred_renew.cpp", + "line": 349, + "column": 46, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_token_renew_get_remote_meta(void **unused)\n", + "source": "/mnt/host/tests/test_unit_cred_renew.cpp:349:46: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_token_renew_get_remote_meta(void **unused)\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_cred_renew.cpp", + "line": 387, + "column": 22, + "message": " unused variable 'result' ", + "flag": "-Wunused-variable", + "snippet": " ITransferResult *result = agent.execute(&cmd);\n", + "source": "/mnt/host/tests/test_unit_cred_renew.cpp:387:22: warning: unused variable 'result' [-Wunused-variable]\n ITransferResult *result = agent.execute(&cmd);\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_cred_renew.cpp", + "line": 375, + "column": 34, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_parse_exception(void **unused)\n", + "source": "/mnt/host/tests/test_unit_cred_renew.cpp:375:34: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_parse_exception(void **unused)\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_cred_renew.cpp", + "line": 416, + "column": 22, + "message": " unused variable 'result' ", + "flag": "-Wunused-variable", + "snippet": " ITransferResult *result = agent.execute(&cmd);\n", + "source": "/mnt/host/tests/test_unit_cred_renew.cpp:416:22: warning: unused variable 'result' [-Wunused-variable]\n ITransferResult *result = agent.execute(&cmd);\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_cred_renew.cpp", + "line": 400, + "column": 44, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_transfer_exception_upload(void **unused)\n", + "source": "/mnt/host/tests/test_unit_cred_renew.cpp:400:44: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_transfer_exception_upload(void **unused)\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_cred_renew.cpp", + "line": 425, + "column": 46, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_transfer_exception_download(void **unused)\n", + "source": "/mnt/host/tests/test_unit_cred_renew.cpp:425:46: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_transfer_exception_download(void **unused)\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_cred_renew.cpp", + "line": 447, + "column": 38, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " static int large_file_removal(void **unused)\n", + "source": "/mnt/host/tests/test_unit_cred_renew.cpp:447:38: warning: unused parameter 'unused' [-Wunused-parameter]\n static int large_file_removal(void **unused)\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_cred_renew.cpp", + "line": 456, + "column": 28, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " static int gr_setup(void **unused)\n", + "source": "/mnt/host/tests/test_unit_cred_renew.cpp:456:28: warning: unused parameter 'unused' [-Wunused-parameter]\n static int gr_setup(void **unused)\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_cred_renew.cpp", + "line": 447, + "column": 12, + "message": " 'int large_file_removal(void**)' defined but not used ", + "flag": "-Wunused-function", + "snippet": " static int large_file_removal(void **unused)\n", + "source": "/mnt/host/tests/test_unit_cred_renew.cpp:447:12: warning: 'int large_file_removal(void**)' defined but not used [-Wunused-function]\n static int large_file_removal(void **unused)\n" + }, + { + "file_path": "/mnt/host/tests/test_variant.c", + "line": 126, + "column": 32, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_variant_arrow(void **unused) {\n", + "source": "/mnt/host/tests/test_variant.c:126:32: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_variant_arrow(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_variant.c", + "line": 130, + "column": 31, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_variant_json(void **unused) {\n", + "source": "/mnt/host/tests/test_variant.c:130:31: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_variant_json(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_time.c", + "line": 152, + "column": 29, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_time_arrow(void **unused) {\n", + "source": "/mnt/host/tests/test_time.c:152:29: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_time_arrow(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_time.c", + "line": 156, + "column": 28, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_time_json(void **unused) {\n", + "source": "/mnt/host/tests/test_time.c:156:28: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_time_json(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_timestamp_ntz.c", + "line": 189, + "column": 38, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_timestamp_ntz_arrow(void **unused) {\n", + "source": "/mnt/host/tests/test_timestamp_ntz.c:189:38: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_timestamp_ntz_arrow(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_timestamp_ntz.c", + "line": 194, + "column": 37, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_timestamp_ntz_json(void **unused) {\n", + "source": "/mnt/host/tests/test_timestamp_ntz.c:194:37: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_timestamp_ntz_json(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_ping_pong.c", + "line": 9, + "column": 28, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_ping_pong(void **unused) {\n", + "source": "/mnt/host/tests/test_ping_pong.c:9:28: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_ping_pong(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_retry_context.c", + "line": 31, + "column": 5, + "message": " missing initializer for field 'start_time' of 'RETRY_CONTEXT' {aka 'struct RETRY_CONTEXT'} ", + "flag": "-Wmissing-field-initializers", + "snippet": " };\n", + "source": "/mnt/host/tests/test_unit_retry_context.c:31:5: warning: missing initializer for field 'start_time' of 'RETRY_CONTEXT' {aka 'struct RETRY_CONTEXT'} [-Wmissing-field-initializers]\n };\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_retry_context.c", + "line": 22, + "column": 37, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_update_url_no_guid(void **unused) {\n", + "source": "/mnt/host/tests/test_unit_retry_context.c:22:37: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_update_url_no_guid(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_retry_context.c", + "line": 47, + "column": 3, + "message": " missing initializer for field 'start_time' of 'RETRY_CONTEXT' {aka 'struct RETRY_CONTEXT'} ", + "flag": "-Wmissing-field-initializers", + "snippet": " };\n", + "source": "/mnt/host/tests/test_unit_retry_context.c:47:3: warning: missing initializer for field 'start_time' of 'RETRY_CONTEXT' {aka 'struct RETRY_CONTEXT'} [-Wmissing-field-initializers]\n };\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_retry_context.c", + "line": 38, + "column": 45, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_update_other_url_with_guid(void **unused) {\n", + "source": "/mnt/host/tests/test_unit_retry_context.c:38:45: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_update_other_url_with_guid(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_retry_context.c", + "line": 64, + "column": 62, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_update_query_url_with_retry_reason_disabled(void **unused) {\n", + "source": "/mnt/host/tests/test_unit_retry_context.c:64:62: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_update_query_url_with_retry_reason_disabled(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_retry_context.c", + "line": 140, + "column": 61, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_update_query_url_with_retry_reason_enabled(void **unused) {\n", + "source": "/mnt/host/tests/test_unit_retry_context.c:140:61: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_update_query_url_with_retry_reason_enabled(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_retry_context.c", + "line": 245, + "column": 21, + "message": " comparison of integer expressions of different signedness: 'uint32' {aka 'unsigned int'} and 'int' ", + "flag": "-Wsign-compare", + "snippet": " if (total_backoff < SF_RETRY_TIMEOUT - delta)\n", + "source": "/mnt/host/tests/test_unit_retry_context.c:245:21: warning: comparison of integer expressions of different signedness: 'uint32' {aka 'unsigned int'} and 'int' [-Wsign-compare]\n if (total_backoff < SF_RETRY_TIMEOUT - delta)\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_retry_context.c", + "line": 222, + "column": 10, + "message": " unused variable 'backoff' ", + "flag": "-Wunused-variable", + "snippet": " uint32 backoff = SF_BACKOFF_BASE;\n", + "source": "/mnt/host/tests/test_unit_retry_context.c:222:10: warning: unused variable 'backoff' [-Wunused-variable]\n uint32 backoff = SF_BACKOFF_BASE;\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_retry_context.c", + "line": 207, + "column": 37, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_new_retry_strategy(void **unused) {\n", + "source": "/mnt/host/tests/test_unit_retry_context.c:207:37: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_new_retry_strategy(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_retry_context.c", + "line": 258, + "column": 39, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_retry_request_header(void **unused) {\n", + "source": "/mnt/host/tests/test_unit_retry_context.c:258:39: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_retry_request_header(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_connect_negative.c", + "line": 7, + "column": 42, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_connect_account_missing(void **unused) {\n", + "source": "/mnt/host/tests/test_connect_negative.c:7:42: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_connect_account_missing(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_connect_negative.c", + "line": 24, + "column": 39, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_connect_user_missing(void **unused) {\n", + "source": "/mnt/host/tests/test_connect_negative.c:24:39: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_connect_user_missing(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_connect_negative.c", + "line": 41, + "column": 43, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_connect_password_missing(void **unused) {\n", + "source": "/mnt/host/tests/test_connect_negative.c:41:43: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_connect_password_missing(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_connect_negative.c", + "line": 58, + "column": 43, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_connect_invalid_database(void **unused) {\n", + "source": "/mnt/host/tests/test_connect_negative.c:58:43: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_connect_invalid_database(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_connect_negative.c", + "line": 73, + "column": 41, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_connect_invalid_schema(void **unused) {\n", + "source": "/mnt/host/tests/test_connect_negative.c:73:41: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_connect_invalid_schema(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_connect_negative.c", + "line": 88, + "column": 44, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_connect_invalid_warehouse(void **unused) {\n", + "source": "/mnt/host/tests/test_connect_negative.c:88:44: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_connect_invalid_warehouse(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_connect_negative.c", + "line": 103, + "column": 39, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_connect_invalid_role(void **unused) {\n", + "source": "/mnt/host/tests/test_connect_negative.c:103:39: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_connect_invalid_role(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_connect_negative.c", + "line": 118, + "column": 40, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_connect_login_timeout(void** unused) {\n", + "source": "/mnt/host/tests/test_connect_negative.c:118:40: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_connect_login_timeout(void** unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_connect_negative.c", + "line": 138, + "column": 44, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_chunk_downloading_timeout(void** unused) {\n", + "source": "/mnt/host/tests/test_connect_negative.c:138:44: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_chunk_downloading_timeout(void** unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_null.c", + "line": 202, + "column": 29, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_null_arrow(void **unused) {\n", + "source": "/mnt/host/tests/test_null.c:202:29: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_null_arrow(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_null.c", + "line": 206, + "column": 28, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_null_json(void **unused) {\n", + "source": "/mnt/host/tests/test_null.c:206:28: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_null_json(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_error_handlings.c", + "line": 6, + "column": 31, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_syntax_error(void **unused) {\n", + "source": "/mnt/host/tests/test_error_handlings.c:6:31: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_syntax_error(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_error_handlings.c", + "line": 27, + "column": 37, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_incorrect_password(void **unused) {\n", + "source": "/mnt/host/tests/test_error_handlings.c:27:37: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_incorrect_password(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_connect.c", + "line": 10, + "column": 34, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_null_sf_connect(void **unused) {\n", + "source": "/mnt/host/tests/test_connect.c:10:34: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_null_sf_connect(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_connect.c", + "line": 20, + "column": 43, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_no_connection_parameters(void **unused) {\n", + "source": "/mnt/host/tests/test_connect.c:20:43: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_no_connection_parameters(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_connect.c", + "line": 32, + "column": 50, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_connect_with_minimum_parameters(void **unused) {\n", + "source": "/mnt/host/tests/test_connect.c:32:50: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_connect_with_minimum_parameters(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_connect.c", + "line": 64, + "column": 47, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_connect_with_full_parameters(void **unused) {\n", + "source": "/mnt/host/tests/test_connect.c:64:47: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_connect_with_full_parameters(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_connect.c", + "line": 78, + "column": 43, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_connect_with_disable_qcc(void **unused) {\n", + "source": "/mnt/host/tests/test_connect.c:78:43: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_connect_with_disable_qcc(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_connect.c", + "line": 100, + "column": 53, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_connect_with_include_retry_context(void **unused) {\n", + "source": "/mnt/host/tests/test_connect.c:100:53: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_connect_with_include_retry_context(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_connect.c", + "line": 156, + "column": 53, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_connect_with_ocsp_cache_server_off(void **unused) {\n", + "source": "/mnt/host/tests/test_connect.c:156:53: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_connect_with_ocsp_cache_server_off(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_connect.c", + "line": 174, + "column": 52, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_connect_with_ocsp_cache_server_on(void **unused) {\n", + "source": "/mnt/host/tests/test_connect.c:174:52: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_connect_with_ocsp_cache_server_on(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_connect.c", + "line": 196, + "column": 37, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_connect_with_proxy(void **unused) {\n", + "source": "/mnt/host/tests/test_connect.c:196:37: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_connect_with_proxy(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_bind_params.c", + "line": 10, + "column": 34, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_bind_parameters(void **unused) {\n", + "source": "/mnt/host/tests/test_bind_params.c:10:34: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_bind_parameters(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_mfa_auth.c", + "line": 13, + "column": 40, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_json_data_in_MFA_Auth(void **unused)\n", + "source": "/mnt/host/tests/test_unit_mfa_auth.c:13:40: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_json_data_in_MFA_Auth(void **unused)\n" + }, + { + "file_path": "/mnt/host/tests/test_bind_named_params.c", + "line": 10, + "column": 40, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_bind_named_parameters(void **unused) {\n", + "source": "/mnt/host/tests/test_bind_named_params.c:10:40: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_bind_named_parameters(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_change_current.c", + "line": 7, + "column": 40, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_change_current_schema(void **unused) {\n", + "source": "/mnt/host/tests/test_change_current.c:7:40: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_change_current_schema(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_perf_string_reads_and_writes.c", + "line": 78, + "column": 12, + "message": " unused variable 'len' ", + "flag": "-Wunused-variable", + "snippet": " size_t len;\n", + "source": "/mnt/host/tests/test_perf_string_reads_and_writes.c:78:12: warning: unused variable 'len' [-Wunused-variable]\n size_t len;\n" + }, + { + "file_path": "/mnt/host/tests/test_perf_string_reads_and_writes.c", + "line": 166, + "column": 9, + "message": " unused variable 'row' ", + "flag": "-Wunused-variable", + "snippet": " int row = 0;\n", + "source": "/mnt/host/tests/test_perf_string_reads_and_writes.c:166:9: warning: unused variable 'row' [-Wunused-variable]\n int row = 0;\n" + }, + { + "file_path": "/mnt/host/tests/test_perf_string_reads_and_writes.c", + "line": 214, + "column": 51, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_col_string_read_fixed_size_arrow(void **unused) {\n", + "source": "/mnt/host/tests/test_perf_string_reads_and_writes.c:214:51: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_col_string_read_fixed_size_arrow(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_perf_string_reads_and_writes.c", + "line": 218, + "column": 50, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_col_string_read_fixed_size_json(void **unused) {\n", + "source": "/mnt/host/tests/test_perf_string_reads_and_writes.c:218:50: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_col_string_read_fixed_size_json(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_perf_string_reads_and_writes.c", + "line": 222, + "column": 57, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_col_string_manipulate_fixed_size_arrow(void **unused) {\n", + "source": "/mnt/host/tests/test_perf_string_reads_and_writes.c:222:57: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_col_string_manipulate_fixed_size_arrow(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_perf_string_reads_and_writes.c", + "line": 226, + "column": 56, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_col_string_manipulate_fixed_size_json(void **unused) {\n", + "source": "/mnt/host/tests/test_perf_string_reads_and_writes.c:226:56: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_col_string_manipulate_fixed_size_json(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_perf_string_reads_and_writes.c", + "line": 230, + "column": 68, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_col_buffer_copy_unknown_size_dynamic_memory_arrow(void **unused) {\n", + "source": "/mnt/host/tests/test_perf_string_reads_and_writes.c:230:68: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_col_buffer_copy_unknown_size_dynamic_memory_arrow(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_perf_string_reads_and_writes.c", + "line": 234, + "column": 67, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_col_buffer_copy_unknown_size_dynamic_memory_json(void **unused) {\n", + "source": "/mnt/host/tests/test_perf_string_reads_and_writes.c:234:67: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_col_buffer_copy_unknown_size_dynamic_memory_json(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_perf_string_reads_and_writes.c", + "line": 238, + "column": 61, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_col_buffer_copy_concat_multiple_rows_arrow(void **unused) {\n", + "source": "/mnt/host/tests/test_perf_string_reads_and_writes.c:238:61: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_col_buffer_copy_concat_multiple_rows_arrow(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_perf_string_reads_and_writes.c", + "line": 242, + "column": 60, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_col_buffer_copy_concat_multiple_rows_json(void **unused) {\n", + "source": "/mnt/host/tests/test_perf_string_reads_and_writes.c:242:60: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_col_buffer_copy_concat_multiple_rows_json(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_number.c", + "line": 177, + "column": 31, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_number_arrow(void **unused) {\n", + "source": "/mnt/host/tests/test_number.c:177:31: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_number_arrow(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_number.c", + "line": 181, + "column": 30, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_number_json(void **unused) {\n", + "source": "/mnt/host/tests/test_number.c:181:30: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_number_json(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_stmt_with_bad_connect.c", + "line": 10, + "column": 39, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_no_connect_and_retry(void **unused) {\n", + "source": "/mnt/host/tests/test_stmt_with_bad_connect.c:10:39: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_no_connect_and_retry(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_crud.c", + "line": 63, + "column": 23, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_crud(void **unused) {\n", + "source": "/mnt/host/tests/test_crud.c:63:23: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_crud(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_check_ctypes.c", + "line": 6, + "column": 32, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_check_c_types(void **unused) {\n", + "source": "/mnt/host/tests/test_check_ctypes.c:6:32: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_check_c_types(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_put_fast_fail.cpp", + "line": 67, + "column": 48, + "message": " unused parameter 'sql' ", + "flag": "-Wunused-parameter", + "snippet": " virtual bool parsePutGetCommand(std::string *sql,\n", + "source": "/mnt/host/tests/test_unit_put_fast_fail.cpp:67:48: warning: unused parameter 'sql' [-Wunused-parameter]\n virtual bool parsePutGetCommand(std::string *sql,\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_put_fast_fail.cpp", + "line": 68, + "column": 56, + "message": " unused parameter 'putGetParseResponse' ", + "flag": "-Wunused-parameter", + "snippet": " PutGetParseResponse *putGetParseResponse)\n", + "source": "/mnt/host/tests/test_unit_put_fast_fail.cpp:68:56: warning: unused parameter 'putGetParseResponse' [-Wunused-parameter]\n PutGetParseResponse *putGetParseResponse)\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_put_fast_fail.cpp", + "line": 93, + "column": 48, + "message": " unused parameter 'sql' ", + "flag": "-Wunused-parameter", + "snippet": " virtual bool parsePutGetCommand(std::string *sql,\n", + "source": "/mnt/host/tests/test_unit_put_fast_fail.cpp:93:48: warning: unused parameter 'sql' [-Wunused-parameter]\n virtual bool parsePutGetCommand(std::string *sql,\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_put_fast_fail.cpp", + "line": 131, + "column": 48, + "message": " unused parameter 'sql' ", + "flag": "-Wunused-parameter", + "snippet": " virtual bool parsePutGetCommand(std::string *sql,\n", + "source": "/mnt/host/tests/test_unit_put_fast_fail.cpp:131:48: warning: unused parameter 'sql' [-Wunused-parameter]\n virtual bool parsePutGetCommand(std::string *sql,\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_put_fast_fail.cpp", + "line": 174, + "column": 61, + "message": " unused parameter 'dataStream' ", + "flag": "-Wunused-parameter", + "snippet": " std::basic_iostream *dataStream)\n", + "source": "/mnt/host/tests/test_unit_put_fast_fail.cpp:174:61: warning: unused parameter 'dataStream' [-Wunused-parameter]\n std::basic_iostream *dataStream)\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_put_fast_fail.cpp", + "line": 201, + "column": 19, + "message": " unused parameter 'filePathFull' ", + "flag": "-Wunused-parameter", + "snippet": " std::string * filePathFull, FileMetadata *fileMetadata)\n", + "source": "/mnt/host/tests/test_unit_put_fast_fail.cpp:201:19: warning: unused parameter 'filePathFull' [-Wunused-parameter]\n std::string * filePathFull, FileMetadata *fileMetadata)\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_put_fast_fail.cpp", + "line": 212, + "column": 75, + "message": " unused parameter 'dataStream' ", + "flag": "-Wunused-parameter", + "snippet": " std::basic_iostream* dataStream)\n", + "source": "/mnt/host/tests/test_unit_put_fast_fail.cpp:212:75: warning: unused parameter 'dataStream' [-Wunused-parameter]\n std::basic_iostream* dataStream)\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_put_fast_fail.cpp", + "line": 368, + "column": 43, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_put_fast_fail_sequential(void **unused)\n", + "source": "/mnt/host/tests/test_unit_put_fast_fail.cpp:368:43: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_put_fast_fail_sequential(void **unused)\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_put_fast_fail.cpp", + "line": 381, + "column": 41, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_put_fast_fail_parallel(void **unused)\n", + "source": "/mnt/host/tests/test_unit_put_fast_fail.cpp:381:41: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_put_fast_fail_parallel(void **unused)\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_put_fast_fail.cpp", + "line": 388, + "column": 49, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_put_fast_fail_large_sequential(void **unused)\n", + "source": "/mnt/host/tests/test_unit_put_fast_fail.cpp:388:49: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_put_fast_fail_large_sequential(void **unused)\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_put_fast_fail.cpp", + "line": 395, + "column": 43, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_get_fast_fail_sequential(void **unused)\n", + "source": "/mnt/host/tests/test_unit_put_fast_fail.cpp:395:43: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_get_fast_fail_sequential(void **unused)\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_put_fast_fail.cpp", + "line": 402, + "column": 41, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_get_fast_fail_parallel(void **unused)\n", + "source": "/mnt/host/tests/test_unit_put_fast_fail.cpp:402:41: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_get_fast_fail_parallel(void **unused)\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_put_fast_fail.cpp", + "line": 409, + "column": 49, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_get_fast_fail_large_sequential(void **unused)\n", + "source": "/mnt/host/tests/test_unit_put_fast_fail.cpp:409:49: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_get_fast_fail_large_sequential(void **unused)\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_put_fast_fail.cpp", + "line": 416, + "column": 31, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " static int gr_teardown(void **unused)\n", + "source": "/mnt/host/tests/test_unit_put_fast_fail.cpp:416:31: warning: unused parameter 'unused' [-Wunused-parameter]\n static int gr_teardown(void **unused)\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_put_fast_fail.cpp", + "line": 430, + "column": 28, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " static int gr_setup(void **unused)\n", + "source": "/mnt/host/tests/test_unit_put_fast_fail.cpp:430:28: warning: unused parameter 'unused' [-Wunused-parameter]\n static int gr_setup(void **unused)\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_put_fast_fail.cpp", + "line": 438, + "column": 10, + "message": " unused variable 'unused' ", + "flag": "-Wunused-variable", + "snippet": " void **unused;\n", + "source": "/mnt/host/tests/test_unit_put_fast_fail.cpp:438:10: warning: unused variable 'unused' [-Wunused-variable]\n void **unused;\n" + }, + { + "file_path": "/mnt/host/tests/test_timestamp_tz.c", + "line": 199, + "column": 37, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_timestamp_tz_arrow(void **unused) {\n", + "source": "/mnt/host/tests/test_timestamp_tz.c:199:37: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_timestamp_tz_arrow(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_timestamp_tz.c", + "line": 204, + "column": 36, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_timestamp_tz_json(void **unused) {\n", + "source": "/mnt/host/tests/test_timestamp_tz.c:204:36: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_timestamp_tz_json(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_adjust_fetch_data.c", + "line": 12, + "column": 61, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_select_long_data_with_small_initial_buffer(void **unused) {\n", + "source": "/mnt/host/tests/test_adjust_fetch_data.c:12:61: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_select_long_data_with_small_initial_buffer(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_issue_76.c", + "line": 8, + "column": 27, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_issue_76(void **unused) {\n", + "source": "/mnt/host/tests/test_issue_76.c:8:27: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_issue_76(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_column_fetch.c", + "line": 1313, + "column": 42, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_column_as_boolean_arrow(void **unused) {\n", + "source": "/mnt/host/tests/test_column_fetch.c:1313:42: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_column_as_boolean_arrow(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_column_fetch.c", + "line": 1317, + "column": 41, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_column_as_boolean_json(void **unused) {\n", + "source": "/mnt/host/tests/test_column_fetch.c:1317:41: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_column_as_boolean_json(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_column_fetch.c", + "line": 1321, + "column": 39, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_column_as_int8_arrow(void **unused) {\n", + "source": "/mnt/host/tests/test_column_fetch.c:1321:39: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_column_as_int8_arrow(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_column_fetch.c", + "line": 1325, + "column": 38, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_column_as_int8_json(void **unused) {\n", + "source": "/mnt/host/tests/test_column_fetch.c:1325:38: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_column_as_int8_json(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_column_fetch.c", + "line": 1329, + "column": 40, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_column_as_int32_arrow(void **unused) {\n", + "source": "/mnt/host/tests/test_column_fetch.c:1329:40: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_column_as_int32_arrow(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_column_fetch.c", + "line": 1333, + "column": 39, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_column_as_int32_json(void **unused) {\n", + "source": "/mnt/host/tests/test_column_fetch.c:1333:39: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_column_as_int32_json(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_column_fetch.c", + "line": 1337, + "column": 40, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_column_as_int64_arrow(void **unused) {\n", + "source": "/mnt/host/tests/test_column_fetch.c:1337:40: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_column_as_int64_arrow(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_column_fetch.c", + "line": 1341, + "column": 39, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_column_as_int64_json(void **unused) {\n", + "source": "/mnt/host/tests/test_column_fetch.c:1341:39: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_column_as_int64_json(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_column_fetch.c", + "line": 1345, + "column": 40, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_column_as_uint8_arrow(void **unused) {\n", + "source": "/mnt/host/tests/test_column_fetch.c:1345:40: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_column_as_uint8_arrow(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_column_fetch.c", + "line": 1349, + "column": 39, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_column_as_uint8_json(void **unused) {\n", + "source": "/mnt/host/tests/test_column_fetch.c:1349:39: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_column_as_uint8_json(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_column_fetch.c", + "line": 1353, + "column": 41, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_column_as_uint32_arrow(void **unused) {\n", + "source": "/mnt/host/tests/test_column_fetch.c:1353:41: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_column_as_uint32_arrow(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_column_fetch.c", + "line": 1357, + "column": 40, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_column_as_uint32_json(void **unused) {\n", + "source": "/mnt/host/tests/test_column_fetch.c:1357:40: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_column_as_uint32_json(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_column_fetch.c", + "line": 1361, + "column": 41, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_column_as_uint64_arrow(void **unused) {\n", + "source": "/mnt/host/tests/test_column_fetch.c:1361:41: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_column_as_uint64_arrow(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_column_fetch.c", + "line": 1365, + "column": 40, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_column_as_uint64_json(void **unused) {\n", + "source": "/mnt/host/tests/test_column_fetch.c:1365:40: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_column_as_uint64_json(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_column_fetch.c", + "line": 1369, + "column": 42, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_column_as_float32_arrow(void **unused) {\n", + "source": "/mnt/host/tests/test_column_fetch.c:1369:42: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_column_as_float32_arrow(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_column_fetch.c", + "line": 1373, + "column": 41, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_column_as_float32_json(void **unused) {\n", + "source": "/mnt/host/tests/test_column_fetch.c:1373:41: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_column_as_float32_json(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_column_fetch.c", + "line": 1377, + "column": 42, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_column_as_float64_arrow(void **unused) {\n", + "source": "/mnt/host/tests/test_column_fetch.c:1377:42: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_column_as_float64_arrow(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_column_fetch.c", + "line": 1381, + "column": 41, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_column_as_float64_json(void **unused) {\n", + "source": "/mnt/host/tests/test_column_fetch.c:1381:41: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_column_as_float64_json(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_column_fetch.c", + "line": 1385, + "column": 44, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_column_as_timestamp_arrow(void **unused) {\n", + "source": "/mnt/host/tests/test_column_fetch.c:1385:44: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_column_as_timestamp_arrow(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_column_fetch.c", + "line": 1389, + "column": 43, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_column_as_timestamp_json(void **unused) {\n", + "source": "/mnt/host/tests/test_column_fetch.c:1389:43: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_column_as_timestamp_json(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_column_fetch.c", + "line": 1393, + "column": 52, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_column_as_timestamp_windows_arrow(void **unused) {\n", + "source": "/mnt/host/tests/test_column_fetch.c:1393:52: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_column_as_timestamp_windows_arrow(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_column_fetch.c", + "line": 1397, + "column": 51, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_column_as_timestamp_windows_json(void **unused) {\n", + "source": "/mnt/host/tests/test_column_fetch.c:1397:51: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_column_as_timestamp_windows_json(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_column_fetch.c", + "line": 1401, + "column": 44, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_column_as_const_str_arrow(void **unused) {\n", + "source": "/mnt/host/tests/test_column_fetch.c:1401:44: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_column_as_const_str_arrow(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_column_fetch.c", + "line": 1405, + "column": 43, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_column_as_const_str_json(void **unused) {\n", + "source": "/mnt/host/tests/test_column_fetch.c:1405:43: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_column_as_const_str_json(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_column_fetch.c", + "line": 1409, + "column": 39, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_column_is_null_arrow(void **unused) {\n", + "source": "/mnt/host/tests/test_column_fetch.c:1409:39: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_column_is_null_arrow(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_column_fetch.c", + "line": 1413, + "column": 38, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_column_is_null_json(void **unused) {\n", + "source": "/mnt/host/tests/test_column_fetch.c:1413:38: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_column_is_null_json(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_column_fetch.c", + "line": 1417, + "column": 38, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_column_strlen_arrow(void **unused) {\n", + "source": "/mnt/host/tests/test_column_fetch.c:1417:38: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_column_strlen_arrow(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_column_fetch.c", + "line": 1421, + "column": 37, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_column_strlen_json(void **unused) {\n", + "source": "/mnt/host/tests/test_column_fetch.c:1421:37: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_column_strlen_json(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_column_fetch.c", + "line": 1425, + "column": 38, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_column_as_str_arrow(void **unused) {\n", + "source": "/mnt/host/tests/test_column_fetch.c:1425:38: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_column_as_str_arrow(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_column_fetch.c", + "line": 1429, + "column": 37, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_column_as_str_json(void **unused) {\n", + "source": "/mnt/host/tests/test_column_fetch.c:1429:37: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_column_as_str_json(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_select1.c", + "line": 7, + "column": 26, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_select1(void **unused) {\n", + "source": "/mnt/host/tests/test_select1.c:7:26: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_select1(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/../lib/connection.h", + "line": 28, + "column": null, + "message": " ignoring #pragma comment ", + "flag": "-Wunknown-pragmas", + "snippet": " #pragma comment(lib, \"wldap32.lib\" )\n", + "source": "/mnt/host/tests/../lib/connection.h:28: warning: ignoring #pragma comment [-Wunknown-pragmas]\n #pragma comment(lib, \"wldap32.lib\" )\n" + }, + { + "file_path": "/mnt/host/tests/../lib/connection.h", + "line": 29, + "column": null, + "message": " ignoring #pragma comment ", + "flag": "-Wunknown-pragmas", + "snippet": " #pragma comment(lib, \"crypt32.lib\" )\n", + "source": "/mnt/host/tests/../lib/connection.h:29: warning: ignoring #pragma comment [-Wunknown-pragmas]\n #pragma comment(lib, \"crypt32.lib\" )\n" + }, + { + "file_path": "/mnt/host/tests/../lib/connection.h", + "line": 30, + "column": null, + "message": " ignoring #pragma comment ", + "flag": "-Wunknown-pragmas", + "snippet": " #pragma comment(lib, \"Ws2_32.lib\")\n", + "source": "/mnt/host/tests/../lib/connection.h:30: warning: ignoring #pragma comment [-Wunknown-pragmas]\n #pragma comment(lib, \"Ws2_32.lib\")\n" + }, + { + "file_path": "/mnt/host/tests/test_timestamp_ltz.c", + "line": 208, + "column": 38, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_timestamp_ltz_arrow(void **unused) {\n", + "source": "/mnt/host/tests/test_timestamp_ltz.c:208:38: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_timestamp_ltz_arrow(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_timestamp_ltz.c", + "line": 213, + "column": 37, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_timestamp_ltz_json(void **unused) {\n", + "source": "/mnt/host/tests/test_timestamp_ltz.c:213:37: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_timestamp_ltz_json(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_native_timestamp.c", + "line": 91, + "column": 41, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_native_timestamp_arrow(void **unused) {\n", + "source": "/mnt/host/tests/test_native_timestamp.c:91:41: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_native_timestamp_arrow(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_native_timestamp.c", + "line": 95, + "column": 40, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_native_timestamp_json(void **unused) {\n", + "source": "/mnt/host/tests/test_native_timestamp.c:95:40: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_native_timestamp_json(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_encryption.cpp", + "line": 52, + "column": 42, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_aes_cbc_mode_encryption(void **unused) {\n", + "source": "/mnt/host/tests/test_unit_encryption.cpp:52:42: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_aes_cbc_mode_encryption(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_encryption.cpp", + "line": 78, + "column": 42, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_aes_gcm_mode_encryption(void **unused) {\n", + "source": "/mnt/host/tests/test_unit_encryption.cpp:78:42: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_aes_gcm_mode_encryption(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_get_query_result_response.c", + "line": 15, + "column": 44, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_get_query_result_response(void **unused) {\n", + "source": "/mnt/host/tests/test_get_query_result_response.c:15:44: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_get_query_result_response(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_get_query_result_response.c", + "line": 62, + "column": 51, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_get_query_result_response_failed(void **unused) {\n", + "source": "/mnt/host/tests/test_get_query_result_response.c:62:51: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_get_query_result_response_failed(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_file_type_detect.cpp", + "line": 23, + "column": 30, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_detect_gzip(void **unused)\n", + "source": "/mnt/host/tests/test_unit_file_type_detect.cpp:23:30: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_detect_gzip(void **unused)\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_file_type_detect.cpp", + "line": 28, + "column": 30, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_detect_none(void **unused)\n", + "source": "/mnt/host/tests/test_unit_file_type_detect.cpp:28:30: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_detect_none(void **unused)\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_file_type_detect.cpp", + "line": 33, + "column": 29, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_detect_bz2(void **unused)\n", + "source": "/mnt/host/tests/test_unit_file_type_detect.cpp:33:29: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_detect_bz2(void **unused)\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_file_type_detect.cpp", + "line": 38, + "column": 29, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_detect_zst(void **unused)\n", + "source": "/mnt/host/tests/test_unit_file_type_detect.cpp:38:29: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_detect_zst(void **unused)\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_file_type_detect.cpp", + "line": 43, + "column": 30, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_detect_zero(void **unused)\n", + "source": "/mnt/host/tests/test_unit_file_type_detect.cpp:43:30: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_detect_zero(void **unused)\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_file_type_detect.cpp", + "line": 48, + "column": 29, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_detect_one(void **unused)\n", + "source": "/mnt/host/tests/test_unit_file_type_detect.cpp:48:29: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_detect_one(void **unused)\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_file_type_detect.cpp", + "line": 53, + "column": 32, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_detect_brotli(void **unused)\n", + "source": "/mnt/host/tests/test_unit_file_type_detect.cpp:53:32: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_detect_brotli(void **unused)\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_file_type_detect.cpp", + "line": 58, + "column": 33, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_detect_parquet(void **unused)\n", + "source": "/mnt/host/tests/test_unit_file_type_detect.cpp:58:33: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_detect_parquet(void **unused)\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_file_type_detect.cpp", + "line": 63, + "column": 29, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_detect_orc(void **unused)\n", + "source": "/mnt/host/tests/test_unit_file_type_detect.cpp:63:29: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_detect_orc(void **unused)\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_file_type_detect.cpp", + "line": 68, + "column": 37, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_detect_noextension(void **unused)\n", + "source": "/mnt/host/tests/test_unit_file_type_detect.cpp:68:37: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_detect_noextension(void **unused)\n" + }, + { + "file_path": "/mnt/host/tests/test_ocsp_fail_open.c", + "line": 43, + "column": 36, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_fail_open_revoked(void **unused) {\n", + "source": "/mnt/host/tests/test_ocsp_fail_open.c:43:36: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_fail_open_revoked(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_ocsp_fail_open.c", + "line": 69, + "column": 37, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_fail_close_timeout(void** unused) {\n", + "source": "/mnt/host/tests/test_ocsp_fail_open.c:69:37: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_fail_close_timeout(void** unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_ocsp_fail_open.c", + "line": 95, + "column": 36, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_fail_open_timeout(void** unused) {\n", + "source": "/mnt/host/tests/test_ocsp_fail_open.c:95:36: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_fail_open_timeout(void** unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_logger.c", + "line": 14, + "column": 35, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_log_str_to_level(void **unused) {\n", + "source": "/mnt/host/tests/test_unit_logger.c:14:35: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_log_str_to_level(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_logger.c", + "line": 31, + "column": 31, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_log_creation(void **unused) {\n", + "source": "/mnt/host/tests/test_unit_logger.c:31:31: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_log_creation(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_logger.c", + "line": 57, + "column": 34, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_mask_secret_log(void **unused) {\n", + "source": "/mnt/host/tests/test_unit_logger.c:57:34: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_mask_secret_log(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_cipher_stream_buf.cpp", + "line": 47, + "column": 41, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_cipher_stream_buf_zero(void **unused)\n", + "source": "/mnt/host/tests/test_unit_cipher_stream_buf.cpp:47:41: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_cipher_stream_buf_zero(void **unused)\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_cipher_stream_buf.cpp", + "line": 56, + "column": 40, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_cipher_stream_buf_one(void **unused)\n", + "source": "/mnt/host/tests/test_unit_cipher_stream_buf.cpp:56:40: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_cipher_stream_buf_one(void **unused)\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_cipher_stream_buf.cpp", + "line": 65, + "column": 40, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_cipher_stream_buf_two(void **unused)\n", + "source": "/mnt/host/tests/test_unit_cipher_stream_buf.cpp:65:40: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_cipher_stream_buf_two(void **unused)\n" + }, + { + "file_path": "/mnt/host/tests/test_manual_connect.c", + "line": 10, + "column": 32, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_oauth_connect(void **unused)\n", + "source": "/mnt/host/tests/test_manual_connect.c:10:32: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_oauth_connect(void **unused)\n" + }, + { + "file_path": "/mnt/host/tests/test_manual_connect.c", + "line": 50, + "column": 44, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_mfa_connect_with_duo_push(void** unused)\n", + "source": "/mnt/host/tests/test_manual_connect.c:50:44: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_mfa_connect_with_duo_push(void** unused)\n" + }, + { + "file_path": "/mnt/host/tests/test_manual_connect.c", + "line": 84, + "column": 48, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_mfa_connect_with_duo_passcode(void** unused)\n", + "source": "/mnt/host/tests/test_manual_connect.c:84:48: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_mfa_connect_with_duo_passcode(void** unused)\n" + }, + { + "file_path": "/mnt/host/tests/test_manual_connect.c", + "line": 126, + "column": 58, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_mfa_connect_with_duo_passcodeInPassword(void** unused)\n", + "source": "/mnt/host/tests/test_manual_connect.c:126:58: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_mfa_connect_with_duo_passcodeInPassword(void** unused)\n" + }, + { + "file_path": "/mnt/host/tests/test_manual_connect.c", + "line": 163, + "column": 23, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_none(void** unused) {}\n", + "source": "/mnt/host/tests/test_manual_connect.c:163:23: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_none(void** unused) {}\n" + }, + { + "file_path": "/mnt/host/tests/../cpp/jwt/ClaimSet.hpp", + "line": 91, + "column": 37, + "message": " unused parameter 'format' ", + "flag": "-Wunused-parameter", + "snippet": " inline std::string serialize(bool format=true) override\n", + "source": "/mnt/host/tests/../cpp/jwt/ClaimSet.hpp:91:37: warning: unused parameter 'format' [-Wunused-parameter]\n inline std::string serialize(bool format=true) override\n" + }, + { + "file_path": "/mnt/host/tests/../cpp/jwt/Header.hpp", + "line": 74, + "column": 37, + "message": " unused parameter 'format' ", + "flag": "-Wunused-parameter", + "snippet": " inline std::string serialize(bool format=true) override\n", + "source": "/mnt/host/tests/../cpp/jwt/Header.hpp:74:37: warning: unused parameter 'format' [-Wunused-parameter]\n inline std::string serialize(bool format=true) override\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_stream_splitter.cpp", + "line": 25, + "column": 36, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_byte_array_stream(void **unused)\n", + "source": "/mnt/host/tests/test_unit_stream_splitter.cpp:25:36: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_byte_array_stream(void **unused)\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_stream_splitter.cpp", + "line": 44, + "column": 43, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_stream_splitter_appender(void **unused)\n", + "source": "/mnt/host/tests/test_unit_stream_splitter.cpp:44:43: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_stream_splitter_appender(void **unused)\n" + }, + { + "file_path": "/mnt/host/tests/test_get_describe_only_query_result.c", + "line": 15, + "column": 49, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_get_describe_only_query_result(void **unused) {\n", + "source": "/mnt/host/tests/test_get_describe_only_query_result.c:15:49: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_get_describe_only_query_result(void **unused) {\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_file_metadata_init.cpp", + "line": 111, + "column": 48, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " static int file_pattern_match_teardown(void ** unused)\n", + "source": "/mnt/host/tests/test_unit_file_metadata_init.cpp:111:48: warning: unused parameter 'unused' [-Wunused-parameter]\n static int file_pattern_match_teardown(void ** unused)\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_file_metadata_init.cpp", + "line": 118, + "column": 44, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " static int file_pattern_match_setup(void **unused)\n", + "source": "/mnt/host/tests/test_unit_file_metadata_init.cpp:118:44: warning: unused parameter 'unused' [-Wunused-parameter]\n static int file_pattern_match_setup(void **unused)\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_file_metadata_init.cpp", + "line": 135, + "column": 37, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_file_pattern_match(void **unused)\n", + "source": "/mnt/host/tests/test_unit_file_metadata_init.cpp:135:37: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_file_pattern_match(void **unused)\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_file_metadata_init.cpp", + "line": 153, + "column": 28, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " static int gr_setup(void **unused)\n", + "source": "/mnt/host/tests/test_unit_file_metadata_init.cpp:153:28: warning: unused parameter 'unused' [-Wunused-parameter]\n static int gr_setup(void **unused)\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_file_metadata_init.cpp", + "line": 159, + "column": 31, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " static int gr_teardown(void **unused)\n", + "source": "/mnt/host/tests/test_unit_file_metadata_init.cpp:159:31: warning: unused parameter 'unused' [-Wunused-parameter]\n static int gr_teardown(void **unused)\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_put_retry.cpp", + "line": 32, + "column": 48, + "message": " unused parameter 'sql' ", + "flag": "-Wunused-parameter", + "snippet": " virtual bool parsePutGetCommand(std::string *sql,\n", + "source": "/mnt/host/tests/test_unit_put_retry.cpp:32:48: warning: unused parameter 'sql' [-Wunused-parameter]\n virtual bool parsePutGetCommand(std::string *sql,\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_put_retry.cpp", + "line": 33, + "column": 56, + "message": " unused parameter 'putGetParseResponse' ", + "flag": "-Wunused-parameter", + "snippet": " PutGetParseResponse *putGetParseResponse)\n", + "source": "/mnt/host/tests/test_unit_put_retry.cpp:33:56: warning: unused parameter 'putGetParseResponse' [-Wunused-parameter]\n PutGetParseResponse *putGetParseResponse)\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_put_retry.cpp", + "line": 55, + "column": 48, + "message": " unused parameter 'sql' ", + "flag": "-Wunused-parameter", + "snippet": " virtual bool parsePutGetCommand(std::string *sql,\n", + "source": "/mnt/host/tests/test_unit_put_retry.cpp:55:48: warning: unused parameter 'sql' [-Wunused-parameter]\n virtual bool parsePutGetCommand(std::string *sql,\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_put_retry.cpp", + "line": 93, + "column": 48, + "message": " unused parameter 'sql' ", + "flag": "-Wunused-parameter", + "snippet": " virtual bool parsePutGetCommand(std::string *sql,\n", + "source": "/mnt/host/tests/test_unit_put_retry.cpp:93:48: warning: unused parameter 'sql' [-Wunused-parameter]\n virtual bool parsePutGetCommand(std::string *sql,\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_put_retry.cpp", + "line": 135, + "column": 60, + "message": " unused parameter 'fileMetadata' ", + "flag": "-Wunused-parameter", + "snippet": " virtual RemoteStorageRequestOutcome upload(FileMetadata *fileMetadata,\n", + "source": "/mnt/host/tests/test_unit_put_retry.cpp:135:60: warning: unused parameter 'fileMetadata' [-Wunused-parameter]\n virtual RemoteStorageRequestOutcome upload(FileMetadata *fileMetadata,\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_put_retry.cpp", + "line": 136, + "column": 61, + "message": " unused parameter 'dataStream' ", + "flag": "-Wunused-parameter", + "snippet": " std::basic_iostream *dataStream)\n", + "source": "/mnt/host/tests/test_unit_put_retry.cpp:136:61: warning: unused parameter 'dataStream' [-Wunused-parameter]\n std::basic_iostream *dataStream)\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_put_retry.cpp", + "line": 149, + "column": 19, + "message": " unused parameter 'filePathFull' ", + "flag": "-Wunused-parameter", + "snippet": " std::string * filePathFull, FileMetadata *fileMetadata)\n", + "source": "/mnt/host/tests/test_unit_put_retry.cpp:149:19: warning: unused parameter 'filePathFull' [-Wunused-parameter]\n std::string * filePathFull, FileMetadata *fileMetadata)\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_put_retry.cpp", + "line": 149, + "column": 47, + "message": " unused parameter 'fileMetadata' ", + "flag": "-Wunused-parameter", + "snippet": " std::string * filePathFull, FileMetadata *fileMetadata)\n", + "source": "/mnt/host/tests/test_unit_put_retry.cpp:149:47: warning: unused parameter 'fileMetadata' [-Wunused-parameter]\n std::string * filePathFull, FileMetadata *fileMetadata)\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_put_retry.cpp", + "line": 154, + "column": 63, + "message": " unused parameter 'fileMetadata' ", + "flag": "-Wunused-parameter", + "snippet": " virtual RemoteStorageRequestOutcome download(FileMetadata * fileMetadata,\n", + "source": "/mnt/host/tests/test_unit_put_retry.cpp:154:63: warning: unused parameter 'fileMetadata' [-Wunused-parameter]\n virtual RemoteStorageRequestOutcome download(FileMetadata * fileMetadata,\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_put_retry.cpp", + "line": 155, + "column": 75, + "message": " unused parameter 'dataStream' ", + "flag": "-Wunused-parameter", + "snippet": " std::basic_iostream* dataStream)\n", + "source": "/mnt/host/tests/test_unit_put_retry.cpp:155:75: warning: unused parameter 'dataStream' [-Wunused-parameter]\n std::basic_iostream* dataStream)\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_put_retry.cpp", + "line": 191, + "column": 36, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_simple_put_retry(void ** unused)\n", + "source": "/mnt/host/tests/test_unit_put_retry.cpp:191:36: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_simple_put_retry(void ** unused)\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_put_retry.cpp", + "line": 211, + "column": 32, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_set_max_retry(void **unused)\n", + "source": "/mnt/host/tests/test_unit_put_retry.cpp:211:32: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_set_max_retry(void **unused)\n" + }, + { + "file_path": "/mnt/host/tests/test_unit_put_retry.cpp", + "line": 216, + "column": 28, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " static int gr_setup(void **unused)\n", + "source": "/mnt/host/tests/test_unit_put_retry.cpp:216:28: warning: unused parameter 'unused' [-Wunused-parameter]\n static int gr_setup(void **unused)\n" + }, + { + "file_path": "/mnt/host/tests/unit_test_ocsp/test_ocsp.c", + "line": 409, + "column": 55, + "message": " format '%d' expects argument of type 'int', but argument 3 has type 'time_t' {aka 'long int'} ", + "flag": "-Wformat=", + "snippet": " fprintf(stderr, \"Delay check FAILED! Delayed %d seconds\\n\", end_time - start_time);\n", + "source": "/mnt/host/tests/unit_test_ocsp/test_ocsp.c:409:55: warning: format '%d' expects argument of type 'int', but argument 3 has type 'time_t' {aka 'long int'} [-Wformat=]\n fprintf(stderr, \"Delay check FAILED! Delayed %d seconds\\n\", end_time - start_time);\n" + }, + { + "file_path": "/mnt/host/tests/test_bind_datastructures/unit_tests/test_unit_treemap.c", + "line": 14, + "column": 24, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_init( void **unused)\n", + "source": "/mnt/host/tests/test_bind_datastructures/unit_tests/test_unit_treemap.c:14:24: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_init( void **unused)\n" + }, + { + "file_path": "/mnt/host/tests/test_bind_datastructures/unit_tests/test_unit_treemap.c", + "line": 85, + "column": 9, + "message": " unused variable 'ret' ", + "flag": "-Wunused-variable", + "snippet": " int ret = cmocka_run_group_tests(tests, NULL, NULL);\n", + "source": "/mnt/host/tests/test_bind_datastructures/unit_tests/test_unit_treemap.c:85:9: warning: unused variable 'ret' [-Wunused-variable]\n int ret = cmocka_run_group_tests(tests, NULL, NULL);\n" + }, + { + "file_path": "/mnt/host/tests/test_bind_datastructures/unit_tests/test_unit_rbtree.c", + "line": 14, + "column": 24, + "message": " unused parameter 'unused' ", + "flag": "-Wunused-parameter", + "snippet": " void test_init( void **unused)\n", + "source": "/mnt/host/tests/test_bind_datastructures/unit_tests/test_unit_rbtree.c:14:24: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_init( void **unused)\n" + }, + { + "file_path": "/mnt/host/tests/test_bind_datastructures/unit_tests/test_unit_rbtree.c", + "line": 97, + "column": 9, + "message": " unused variable 'ret' ", + "flag": "-Wunused-variable", + "snippet": " int ret = cmocka_run_group_tests(tests, NULL, NULL);\n", + "source": "/mnt/host/tests/test_bind_datastructures/unit_tests/test_unit_rbtree.c:97:9: warning: unused variable 'ret' [-Wunused-variable]\n int ret = cmocka_run_group_tests(tests, NULL, NULL);\n" + } +] \ No newline at end of file diff --git a/cmake/flags.cmake b/cmake/flags.cmake new file mode 100644 index 0000000000..abd6d499b9 --- /dev/null +++ b/cmake/flags.cmake @@ -0,0 +1,41 @@ + +if (UNIX) + # Linux and OSX + if (USE_EXTRA_WARNINGS) + add_compile_options(-Wextra -Wall) + else () + add_compile_options(-Werror -Wno-error=deprecated-declarations) + if ("$ENV{GCCVERSION}" STRGREATER "9") + add_compile_options(-Wno-error=unused-result) + endif() + endif () +else() + # Windows + add_compile_options(/ZH:SHA_256 /guard:cf /Qspectre /sdl) + if ($ENV{ARROW_FROM_SOURCE}) + add_compile_definitions(_SILENCE_STDEXT_ARR_ITERS_DEPRECATION_WARNING BOOST_ALL_NO_LIB) + endif() +endif() + +if (LINUX) + # Profiler for Linux + if (NOT "$ENV{BUILD_WITH_PROFILE_OPTION}" STREQUAL "") + add_compile_options(-pg) + add_link_options(-pg) + endif () + + # Code coverage for Linux + if (CLIENT_CODE_COVERAGE) # Only when code coverage is enabled + message("Code coverage is enabled CLIENT_CODE_COVERAGE=" ${CLIENT_CODE_COVERAGE}) + add_compile_options(--coverage -O0 $<$:-fno-elide-constructors> -fno-inline -fno-inline-small-functions -fno-default-inline) + add_link_options(--coverage) + else() + message("Code coverage is disabled CLIENT_CODE_COVERAGE=" ${CLIENT_CODE_COVERAGE}) + endif () + + # Enable mocks + if (MOCK) + set(CMAKE_CXX_FLAGS "${CMAKE_C_FLAGS} -Wl,--wrap=http_perform") + add_definitions(-DMOCK_ENABLED) + endif () +endif () diff --git a/cmake/platform.cmake b/cmake/platform.cmake new file mode 100644 index 0000000000..779bcd6864 --- /dev/null +++ b/cmake/platform.cmake @@ -0,0 +1,28 @@ + +if (UNIX AND NOT APPLE) + set(LINUX TRUE) +endif () + +if (LINUX) + set(PLATFORM linux) + message("Platform: Linux") +endif () + +if (APPLE) + set(PLATFORM darwin) + message("Platform: Apple OSX") +endif () + +if ("${CMAKE_VS_PLATFORM_NAME}" STREQUAL "x64") + set(PLATFORM win64) + message("Platform: Windows 64bit") +endif () + +if ("${CMAKE_VS_PLATFORM_NAME}" STREQUAL "Win32") + set(PLATFORM win32) + message("Platform: Windows 32bit") + if ("${CMAKE_BUILD_TYPE}" STREQUAL "Debug") + set (WIN32_DEBUG ON) + message("WIN32_DEBUG: ${WIN32_DEBUG}") + endif () +endif () diff --git a/scripts/build_libsnowflakeclient.sh b/scripts/build_libsnowflakeclient.sh index 67a7e3d391..90d466bc79 100755 --- a/scripts/build_libsnowflakeclient.sh +++ b/scripts/build_libsnowflakeclient.sh @@ -56,12 +56,16 @@ if [[ "$BUILD_SOURCE_ONLY" == "true" ]]; then cmake_opts+=("-DBUILD_TESTS=OFF") fi +if [[ "$USE_EXTRA_WARNINGS" == "true" ]]; then + cmake_opts+=("-DUSE_EXTRA_WARNINGS=1") +fi + if [[ "$ENABLE_MOCK_OBJECTS" == "true" ]]; then cmake_opts+=("-DMOCK=ON") fi $CMAKE ${cmake_opts[@]} .. -make +make 2>&1 | tee ../build.log BUILD_DIR=$DEPENDENCY_DIR/libsnowflakeclient rm -rf $BUILD_DIR diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index b4a8fe9fc4..7eab19d7ea 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -158,10 +158,6 @@ if (UNIX) endif () if (LINUX) - if ($ENV{GCCVERSION} STRGREATER "9") - set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-error=unused-result") - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-error=unused-result") - endif () # Group all arrow dependencies. set(ARROW_ALL_LIBS diff --git a/tests/unit_test_ocsp/CMakeLists.txt b/tests/unit_test_ocsp/CMakeLists.txt index 796f575120..dc86c5f3ad 100644 --- a/tests/unit_test_ocsp/CMakeLists.txt +++ b/tests/unit_test_ocsp/CMakeLists.txt @@ -1,11 +1,10 @@ project(test_ocsp) -set(CMAKE_C_FLAGS "-pthread -DSIMBA -D_REENTRANT -DCLUNIX -Wall") - add_executable( test_ocsp test_ocsp.c) target_link_libraries(test_ocsp ${TESTLIB_OPTS_C}) +target_compile_definitions(test_ocsp PRIVATE SIMBA _REENTRANT CLUNIX) add_test(test_ocsp test_ocsp) diff --git a/tests/unit_test_ocsp/test_ocsp.c b/tests/unit_test_ocsp/test_ocsp.c index 37306026fa..3d566453ef 100644 --- a/tests/unit_test_ocsp/test_ocsp.c +++ b/tests/unit_test_ocsp/test_ocsp.c @@ -406,7 +406,7 @@ int main(int argc, char **argv) // should be around 5 seconds but no longer than 10. if ((end_time - start_time) > 10) { - fprintf(stderr, "Delay check FAILED! Delayed %d seconds\n", end_time - start_time); + fprintf(stderr, "Delay check FAILED! Delayed %ld seconds\n", end_time - start_time); exit(1); } else From 2daeb00a7e63e83d1b6f319921612e15ed7f6343 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Szczerbi=C5=84ski?= Date: Wed, 11 Dec 2024 17:59:28 +0100 Subject: [PATCH 07/15] SNOW-1812871: Remove baseline and ignore failed checks master (#790) --- .github/workflows/code-quality.yml | 2 + ci/scripts/warning_report.sh | 15 +- ci/scripts/warnings_baseline.json | 4079 ---------------------------- 3 files changed, 16 insertions(+), 4080 deletions(-) delete mode 100644 ci/scripts/warnings_baseline.json diff --git a/.github/workflows/code-quality.yml b/.github/workflows/code-quality.yml index 1f6a5d629b..e72b399d38 100644 --- a/.github/workflows/code-quality.yml +++ b/.github/workflows/code-quality.yml @@ -50,6 +50,8 @@ jobs: if: steps.cache-restore-warnings.outputs.cache-hit == true - name: Warning report shell: bash + env: + BRANCH_NAME: ${{ github.head_ref || github.ref_name }} run: ci/scripts/warning_report.sh - name: Upload build log uses: actions/upload-artifact@v4 diff --git a/ci/scripts/warning_report.sh b/ci/scripts/warning_report.sh index 97a9584526..b18c755472 100755 --- a/ci/scripts/warning_report.sh +++ b/ci/scripts/warning_report.sh @@ -1,5 +1,11 @@ #!/bin/bash +if [[ ! -f ci/scripts/warnings_baseline.json ]]; +then + echo "Baseline file does not exist." + echo "[]" > ci/scripts/warnings_baseline.json +fi + python3 ci/scripts/generate_warning_report.py --build-log build.log --load-warnings ci/scripts/warnings_baseline.json --dump-warnings warnings.json --report report.md if [[ -n "${GITHUB_STEP_SUMMARY}" ]]; @@ -9,5 +15,12 @@ fi if [[ "$(head -n 1 report.md)" == "### Failed" ]]; then - exit 1 + if [[ "${BRANCH_NAME}" == "master" ]]; + then + echo "Failures are ignored on master since there is no base branch to reference." + exit 0 + else + echo "Warnings check failed. Check workflow summary to find out the details." + exit 1 + fi fi diff --git a/ci/scripts/warnings_baseline.json b/ci/scripts/warnings_baseline.json deleted file mode 100644 index 36afa5f3ab..0000000000 --- a/ci/scripts/warnings_baseline.json +++ /dev/null @@ -1,4079 +0,0 @@ -[ - { - "file_path": "/mnt/host/include/snowflake/SF_CRTFunctionSafe.h", - "line": 95, - "column": 65, - "message": " operand of ?: changes signedness from 'long long int' to 'size_t' {aka 'long unsigned int'} due to unsignedness of other operand ", - "flag": "-Wsign-compare", - "snippet": " const size_t copyLen = (srclen < 0) ? strlen(src) + 1 : srclen;\n", - "source": "/mnt/host/include/snowflake/SF_CRTFunctionSafe.h:95:65: warning: operand of ?: changes signedness from 'long long int' to 'size_t' {aka 'long unsigned int'} due to unsignedness of other operand [-Wsign-compare]\n const size_t copyLen = (srclen < 0) ? strlen(src) + 1 : srclen;\n" - }, - { - "file_path": "/mnt/host/include/snowflake/SF_CRTFunctionSafe.h", - "line": 108, - "column": 37, - "message": " comparison of unsigned expression < 0 is always false ", - "flag": "-Wtype-limits", - "snippet": " src, srclen < 0 ? strlen(src) + 1 : srclen);\n", - "source": "/mnt/host/include/snowflake/SF_CRTFunctionSafe.h:108:37: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits]\n src, srclen < 0 ? strlen(src) + 1 : srclen);\n" - }, - { - "file_path": "/mnt/host/include/snowflake/SF_CRTFunctionSafe.h", - "line": 223, - "column": 16, - "message": " unused parameter 'in_sizeOfBuffer' ", - "flag": "-Wunused-parameter", - "snippet": " size_t in_sizeOfBuffer,\n", - "source": "/mnt/host/include/snowflake/SF_CRTFunctionSafe.h:223:16: warning: unused parameter 'in_sizeOfBuffer' [-Wunused-parameter]\n size_t in_sizeOfBuffer,\n" - }, - { - "file_path": "/mnt/host/lib/connection.h", - "line": 28, - "column": null, - "message": " ignoring #pragma comment ", - "flag": "-Wunknown-pragmas", - "snippet": " #pragma comment(lib, \"wldap32.lib\" )\n", - "source": "/mnt/host/lib/connection.h:28: warning: ignoring #pragma comment [-Wunknown-pragmas]\n #pragma comment(lib, \"wldap32.lib\" )\n" - }, - { - "file_path": "/mnt/host/lib/connection.h", - "line": 29, - "column": null, - "message": " ignoring #pragma comment ", - "flag": "-Wunknown-pragmas", - "snippet": " #pragma comment(lib, \"crypt32.lib\" )\n", - "source": "/mnt/host/lib/connection.h:29: warning: ignoring #pragma comment [-Wunknown-pragmas]\n #pragma comment(lib, \"crypt32.lib\" )\n" - }, - { - "file_path": "/mnt/host/lib/connection.h", - "line": 30, - "column": null, - "message": " ignoring #pragma comment ", - "flag": "-Wunknown-pragmas", - "snippet": " #pragma comment(lib, \"Ws2_32.lib\")\n", - "source": "/mnt/host/lib/connection.h:30: warning: ignoring #pragma comment [-Wunknown-pragmas]\n #pragma comment(lib, \"Ws2_32.lib\")\n" - }, - { - "file_path": "/mnt/host/lib/chunk_downloader.h", - "line": 12, - "column": null, - "message": " ignoring #pragma comment ", - "flag": "-Wunknown-pragmas", - "snippet": " #pragma comment(lib, \"wldap32.lib\" )\n", - "source": "/mnt/host/lib/chunk_downloader.h:12: warning: ignoring #pragma comment [-Wunknown-pragmas]\n #pragma comment(lib, \"wldap32.lib\" )\n" - }, - { - "file_path": "/mnt/host/lib/chunk_downloader.h", - "line": 13, - "column": null, - "message": " ignoring #pragma comment ", - "flag": "-Wunknown-pragmas", - "snippet": " #pragma comment(lib, \"crypt32.lib\" )\n", - "source": "/mnt/host/lib/chunk_downloader.h:13: warning: ignoring #pragma comment [-Wunknown-pragmas]\n #pragma comment(lib, \"crypt32.lib\" )\n" - }, - { - "file_path": "/mnt/host/lib/chunk_downloader.h", - "line": 14, - "column": null, - "message": " ignoring #pragma comment ", - "flag": "-Wunknown-pragmas", - "snippet": " #pragma comment(lib, \"Ws2_32.lib\")\n", - "source": "/mnt/host/lib/chunk_downloader.h:14: warning: ignoring #pragma comment [-Wunknown-pragmas]\n #pragma comment(lib, \"Ws2_32.lib\")\n" - }, - { - "file_path": "/mnt/host/lib/client.c", - "line": 136, - "column": 33, - "message": " unused parameter 'udata' ", - "flag": "-Wunused-parameter", - "snippet": " static void log_lock_func(void *udata, int lock) {\n", - "source": "/mnt/host/lib/client.c:136:33: warning: unused parameter 'udata' [-Wunused-parameter]\n static void log_lock_func(void *udata, int lock) {\n" - }, - { - "file_path": "/mnt/host/lib/client.c", - "line": 307, - "column": 10, - "message": " unused variable 'strerror_buf' ", - "flag": "-Wunused-variable", - "snippet": " char strerror_buf[SF_ERROR_BUFSIZE];\n", - "source": "/mnt/host/lib/client.c:307:10: warning: unused variable 'strerror_buf' [-Wunused-variable]\n char strerror_buf[SF_ERROR_BUFSIZE];\n" - }, - { - "file_path": "/mnt/host/lib/client.c", - "line": 1896, - "column": 12, - "message": " unused variable 'raw_row_result' ", - "flag": "-Wunused-variable", - "snippet": " cJSON *raw_row_result;\n", - "source": "/mnt/host/lib/client.c:1896:12: warning: unused variable 'raw_row_result' [-Wunused-variable]\n cJSON *raw_row_result;\n" - }, - { - "file_path": "/mnt/host/lib/client.c", - "line": 1895, - "column": 12, - "message": " unused variable 'row' ", - "flag": "-Wunused-variable", - "snippet": " cJSON *row = NULL;\n", - "source": "/mnt/host/lib/client.c:1895:12: warning: unused variable 'row' [-Wunused-variable]\n cJSON *row = NULL;\n" - }, - { - "file_path": "/mnt/host/lib/client.c", - "line": 1893, - "column": 12, - "message": " unused variable 'i' ", - "flag": "-Wunused-variable", - "snippet": " size_t i;\n", - "source": "/mnt/host/lib/client.c:1893:12: warning: unused variable 'i' [-Wunused-variable]\n size_t i;\n" - }, - { - "file_path": "/mnt/host/lib/client.c", - "line": 3180, - "column": 79, - "message": " unused parameter 'fmt' ", - "flag": "-Wunused-parameter", - "snippet": " SF_STATUS STDCALL snowflake_timestamp_to_string(SF_TIMESTAMP *ts, const char *fmt, char **buffer_ptr,\n", - "source": "/mnt/host/lib/client.c:3180:79: warning: unused parameter 'fmt' [-Wunused-parameter]\n SF_STATUS STDCALL snowflake_timestamp_to_string(SF_TIMESTAMP *ts, const char *fmt, char **buffer_ptr,\n" - }, - { - "file_path": "/mnt/host/lib/client.c", - "line": 40, - "column": 14, - "message": " 'LOG_FP' defined but not used ", - "flag": "-Wunused-variable", - "snippet": " static FILE *LOG_FP = NULL;\n", - "source": "/mnt/host/lib/client.c:40:14: warning: 'LOG_FP' defined but not used [-Wunused-variable]\n static FILE *LOG_FP = NULL;\n" - }, - { - "file_path": "/mnt/host/lib/memory.h", - "line": 28, - "column": 30, - "message": " 'global_hooks' defined but not used ", - "flag": "-Wunused-variable", - "snippet": " static SF_INTERNAL_MEM_HOOKS global_hooks = {malloc, free, realloc, calloc};\n", - "source": "/mnt/host/lib/memory.h:28:30: warning: 'global_hooks' defined but not used [-Wunused-variable]\n static SF_INTERNAL_MEM_HOOKS global_hooks = {malloc, free, realloc, calloc};\n" - }, - { - "file_path": "/mnt/host/lib/rbtree.c", - "line": 135, - "column": 19, - "message": " unused variable 'temp_node' ", - "flag": "-Wunused-variable", - "snippet": " RedBlackNode *temp_node = NULL;\n", - "source": "/mnt/host/lib/rbtree.c:135:19: warning: unused variable 'temp_node' [-Wunused-variable]\n RedBlackNode *temp_node = NULL;\n" - }, - { - "file_path": "/mnt/host/lib/rbtree.c", - "line": 134, - "column": 19, - "message": " unused variable 'parent' ", - "flag": "-Wunused-variable", - "snippet": " RedBlackNode *parent = NULL;\n", - "source": "/mnt/host/lib/rbtree.c:134:19: warning: unused variable 'parent' [-Wunused-variable]\n RedBlackNode *parent = NULL;\n" - }, - { - "file_path": "/mnt/host/lib/memory.c", - "line": 152, - "column": 37, - "message": " unused parameter 'file' ", - "flag": "-Wunused-parameter", - "snippet": " void sf_free(void *ptr, const char *file, int line) {\n", - "source": "/mnt/host/lib/memory.c:152:37: warning: unused parameter 'file' [-Wunused-parameter]\n void sf_free(void *ptr, const char *file, int line) {\n" - }, - { - "file_path": "/mnt/host/lib/memory.c", - "line": 152, - "column": 47, - "message": " unused parameter 'line' ", - "flag": "-Wunused-parameter", - "snippet": " void sf_free(void *ptr, const char *file, int line) {\n", - "source": "/mnt/host/lib/memory.c:152:47: warning: unused parameter 'line' [-Wunused-parameter]\n void sf_free(void *ptr, const char *file, int line) {\n" - }, - { - "file_path": "/mnt/host/lib/connection.c", - "line": 124, - "column": 15, - "message": " 'uimax' defined but not used ", - "flag": "-Wunused-function", - "snippet": " static uint32 uimax(uint32 a, uint32 b) {\n", - "source": "/mnt/host/lib/connection.c:124:15: warning: 'uimax' defined but not used [-Wunused-function]\n static uint32 uimax(uint32 a, uint32 b) {\n" - }, - { - "file_path": "/mnt/host/lib/connection.c", - "line": 82, - "column": 5, - "message": " 'my_trace' defined but not used ", - "flag": "-Wunused-function", - "snippet": " int my_trace(CURL *handle, curl_infotype type,\n", - "source": "/mnt/host/lib/connection.c:82:5: warning: 'my_trace' defined but not used [-Wunused-function]\n int my_trace(CURL *handle, curl_infotype type,\n" - }, - { - "file_path": "/mnt/host/lib/results.c", - "line": 133, - "column": 54, - "message": " unused parameter 'precision' ", - "flag": "-Wunused-parameter", - "snippet": " SF_C_TYPE snowflake_to_c_type(SF_DB_TYPE type, int64 precision, int64 scale) {\n", - "source": "/mnt/host/lib/results.c:133:54: warning: unused parameter 'precision' [-Wunused-parameter]\n SF_C_TYPE snowflake_to_c_type(SF_DB_TYPE type, int64 precision, int64 scale) {\n" - }, - { - "file_path": "/mnt/host/lib/chunk_downloader.c", - "line": 161, - "column": 19, - "message": " comparison of integer expressions of different signedness: 'int' and 'uint64' {aka 'long long unsigned int'} ", - "flag": "-Wsign-compare", - "snippet": " for (i = 0; i < chunk_downloader->queue_size; i++) {\n", - "source": "/mnt/host/lib/chunk_downloader.c:161:19: warning: comparison of integer expressions of different signedness: 'int' and 'uint64' {aka 'long long unsigned int'} [-Wsign-compare]\n for (i = 0; i < chunk_downloader->queue_size; i++) {\n" - }, - { - "file_path": "/mnt/host/lib/chunk_downloader.c", - "line": 334, - "column": 19, - "message": " comparison of integer expressions of different signedness: 'int' and 'uint64' {aka 'long long unsigned int'} ", - "flag": "-Wsign-compare", - "snippet": " for (i = 0; i < thread_count; i++) {\n", - "source": "/mnt/host/lib/chunk_downloader.c:334:19: warning: comparison of integer expressions of different signedness: 'int' and 'uint64' {aka 'long long unsigned int'} [-Wsign-compare]\n for (i = 0; i < thread_count; i++) {\n" - }, - { - "file_path": "/mnt/host/lib/chunk_downloader.c", - "line": 77, - "column": 21, - "message": " 'set_error' defined but not used ", - "flag": "-Wunused-function", - "snippet": " static void STDCALL set_error(struct SF_CHUNK_DOWNLOADER *chunk_downloader, sf_bool value) {\n", - "source": "/mnt/host/lib/chunk_downloader.c:77:21: warning: 'set_error' defined but not used [-Wunused-function]\n static void STDCALL set_error(struct SF_CHUNK_DOWNLOADER *chunk_downloader, sf_bool value) {\n" - }, - { - "file_path": "/mnt/host/lib/http_perform.c", - "line": 380, - "column": 74, - "message": " comparison of integer expressions of different signedness: 'uint64' {aka 'long long unsigned int'} and 'int8' {aka 'char'} ", - "flag": "-Wsign-compare", - "snippet": " if (res == CURLE_COULDNT_CONNECT && curl_retry_ctx.retry_count <\n", - "source": "/mnt/host/lib/http_perform.c:380:74: warning: comparison of integer expressions of different signedness: 'uint64' {aka 'long long unsigned int'} and 'int8' {aka 'char'} [-Wsign-compare]\n if (res == CURLE_COULDNT_CONNECT && curl_retry_ctx.retry_count <\n" - }, - { - "file_path": "/mnt/host/lib/http_perform.c", - "line": 430, - "column": 52, - "message": " comparison of integer expressions of different signedness: 'time_t' {aka 'long int'} and 'uint64' {aka 'long long unsigned int'} ", - "flag": "-Wsign-compare", - "snippet": " ((time(NULL) - elapsedRetryTime) < curl_retry_ctx.retry_timeout) &&\n", - "source": "/mnt/host/lib/http_perform.c:430:52: warning: comparison of integer expressions of different signedness: 'time_t' {aka 'long int'} and 'uint64' {aka 'long long unsigned int'} [-Wsign-compare]\n ((time(NULL) - elapsedRetryTime) < curl_retry_ctx.retry_timeout) &&\n" - }, - { - "file_path": "/mnt/host/lib/http_perform.c", - "line": 431, - "column": 74, - "message": " comparison of integer expressions of different signedness: 'uint64' {aka 'long long unsigned int'} and 'int8' {aka 'char'} ", - "flag": "-Wsign-compare", - "snippet": " ((retry_max_count <= 0) || (curl_retry_ctx.retry_count < retry_max_count)))\n", - "source": "/mnt/host/lib/http_perform.c:431:74: warning: comparison of integer expressions of different signedness: 'uint64' {aka 'long long unsigned int'} and 'int8' {aka 'char'} [-Wsign-compare]\n ((retry_max_count <= 0) || (curl_retry_ctx.retry_count < retry_max_count)))\n" - }, - { - "file_path": "/mnt/host/include/snowflake/IStatementPutGet.hpp", - "line": 46, - "column": 44, - "message": " unused parameter 'url' ", - "flag": "-Wunused-parameter", - "snippet": " virtual bool http_put(std::string const& url,\n", - "source": "/mnt/host/include/snowflake/IStatementPutGet.hpp:46:44: warning: unused parameter 'url' [-Wunused-parameter]\n virtual bool http_put(std::string const& url,\n" - }, - { - "file_path": "/mnt/host/include/snowflake/IStatementPutGet.hpp", - "line": 47, - "column": 57, - "message": " unused parameter 'headers' ", - "flag": "-Wunused-parameter", - "snippet": " std::vector const& headers,\n", - "source": "/mnt/host/include/snowflake/IStatementPutGet.hpp:47:57: warning: unused parameter 'headers' [-Wunused-parameter]\n std::vector const& headers,\n" - }, - { - "file_path": "/mnt/host/include/snowflake/IStatementPutGet.hpp", - "line": 48, - "column": 52, - "message": " unused parameter 'payload' ", - "flag": "-Wunused-parameter", - "snippet": " std::basic_iostream& payload,\n", - "source": "/mnt/host/include/snowflake/IStatementPutGet.hpp:48:52: warning: unused parameter 'payload' [-Wunused-parameter]\n std::basic_iostream& payload,\n" - }, - { - "file_path": "/mnt/host/include/snowflake/IStatementPutGet.hpp", - "line": 49, - "column": 32, - "message": " unused parameter 'payloadLen' ", - "flag": "-Wunused-parameter", - "snippet": " size_t payloadLen,\n", - "source": "/mnt/host/include/snowflake/IStatementPutGet.hpp:49:32: warning: unused parameter 'payloadLen' [-Wunused-parameter]\n size_t payloadLen,\n" - }, - { - "file_path": "/mnt/host/include/snowflake/IStatementPutGet.hpp", - "line": 50, - "column": 38, - "message": " unused parameter 'responseHeaders' ", - "flag": "-Wunused-parameter", - "snippet": " std::string& responseHeaders)\n", - "source": "/mnt/host/include/snowflake/IStatementPutGet.hpp:50:38: warning: unused parameter 'responseHeaders' [-Wunused-parameter]\n std::string& responseHeaders)\n" - }, - { - "file_path": "/mnt/host/include/snowflake/IStatementPutGet.hpp", - "line": 66, - "column": 44, - "message": " unused parameter 'url' ", - "flag": "-Wunused-parameter", - "snippet": " virtual bool http_get(std::string const& url,\n", - "source": "/mnt/host/include/snowflake/IStatementPutGet.hpp:66:44: warning: unused parameter 'url' [-Wunused-parameter]\n virtual bool http_get(std::string const& url,\n" - }, - { - "file_path": "/mnt/host/include/snowflake/IStatementPutGet.hpp", - "line": 67, - "column": 57, - "message": " unused parameter 'headers' ", - "flag": "-Wunused-parameter", - "snippet": " std::vector const& headers,\n", - "source": "/mnt/host/include/snowflake/IStatementPutGet.hpp:67:57: warning: unused parameter 'headers' [-Wunused-parameter]\n std::vector const& headers,\n" - }, - { - "file_path": "/mnt/host/include/snowflake/IStatementPutGet.hpp", - "line": 68, - "column": 52, - "message": " unused parameter 'payload' ", - "flag": "-Wunused-parameter", - "snippet": " std::basic_iostream* payload,\n", - "source": "/mnt/host/include/snowflake/IStatementPutGet.hpp:68:52: warning: unused parameter 'payload' [-Wunused-parameter]\n std::basic_iostream* payload,\n" - }, - { - "file_path": "/mnt/host/include/snowflake/IStatementPutGet.hpp", - "line": 69, - "column": 38, - "message": " unused parameter 'responseHeaders' ", - "flag": "-Wunused-parameter", - "snippet": " std::string& responseHeaders,\n", - "source": "/mnt/host/include/snowflake/IStatementPutGet.hpp:69:38: warning: unused parameter 'responseHeaders' [-Wunused-parameter]\n std::string& responseHeaders,\n" - }, - { - "file_path": "/mnt/host/include/snowflake/IStatementPutGet.hpp", - "line": 70, - "column": 30, - "message": " unused parameter 'headerOnly' ", - "flag": "-Wunused-parameter", - "snippet": " bool headerOnly)\n", - "source": "/mnt/host/include/snowflake/IStatementPutGet.hpp:70:30: warning: unused parameter 'headerOnly' [-Wunused-parameter]\n bool headerOnly)\n" - }, - { - "file_path": "/mnt/host/include/snowflake/IFileTransferAgent.hpp", - "line": 76, - "column": 44, - "message": " unused parameter 'useUrand' ", - "flag": "-Wunused-parameter", - "snippet": " virtual void setRandomDeviceAsUrand(bool useUrand){};\n", - "source": "/mnt/host/include/snowflake/IFileTransferAgent.hpp:76:44: warning: unused parameter 'useUrand' [-Wunused-parameter]\n virtual void setRandomDeviceAsUrand(bool useUrand){};\n" - }, - { - "file_path": "/mnt/host/include/snowflake/IFileTransferAgent.hpp", - "line": 86, - "column": 36, - "message": " unused parameter 'putFastFail' ", - "flag": "-Wunused-parameter", - "snippet": " virtual void setPutFastFail(bool putFastFail){};\n", - "source": "/mnt/host/include/snowflake/IFileTransferAgent.hpp:86:36: warning: unused parameter 'putFastFail' [-Wunused-parameter]\n virtual void setPutFastFail(bool putFastFail){};\n" - }, - { - "file_path": "/mnt/host/include/snowflake/IFileTransferAgent.hpp", - "line": 92, - "column": 37, - "message": " unused parameter 'maxRetries' ", - "flag": "-Wunused-parameter", - "snippet": " virtual void setPutMaxRetries(int maxRetries){};\n", - "source": "/mnt/host/include/snowflake/IFileTransferAgent.hpp:92:37: warning: unused parameter 'maxRetries' [-Wunused-parameter]\n virtual void setPutMaxRetries(int maxRetries){};\n" - }, - { - "file_path": "/mnt/host/include/snowflake/IFileTransferAgent.hpp", - "line": 98, - "column": 36, - "message": " unused parameter 'getFastFail' ", - "flag": "-Wunused-parameter", - "snippet": " virtual void setGetFastFail(bool getFastFail) {};\n", - "source": "/mnt/host/include/snowflake/IFileTransferAgent.hpp:98:36: warning: unused parameter 'getFastFail' [-Wunused-parameter]\n virtual void setGetFastFail(bool getFastFail) {};\n" - }, - { - "file_path": "/mnt/host/include/snowflake/IFileTransferAgent.hpp", - "line": 104, - "column": 37, - "message": " unused parameter 'maxRetries' ", - "flag": "-Wunused-parameter", - "snippet": " virtual void setGetMaxRetries(int maxRetries) {};\n", - "source": "/mnt/host/include/snowflake/IFileTransferAgent.hpp:104:37: warning: unused parameter 'maxRetries' [-Wunused-parameter]\n virtual void setGetMaxRetries(int maxRetries) {};\n" - }, - { - "file_path": "/mnt/host/cpp/IStorageClient.hpp", - "line": 53, - "column": 43, - "message": " unused parameter 'maxRetries' ", - "flag": "-Wunused-parameter", - "snippet": " virtual void setMaxRetries(unsigned int maxRetries) {};\n", - "source": "/mnt/host/cpp/IStorageClient.hpp:53:43: warning: unused parameter 'maxRetries' [-Wunused-parameter]\n virtual void setMaxRetries(unsigned int maxRetries) {};\n" - }, - { - "file_path": "/mnt/host/cpp/FileTransferAgent.hpp", - "line": 101, - "column": 17, - "message": " 'Snowflake::Client::RetryContext::m_putFileName' will be initialized after ", - "flag": "-Wreorder", - "snippet": " std::string m_putFileName;\n", - "source": "/mnt/host/cpp/FileTransferAgent.hpp:101:17: warning: 'Snowflake::Client::RetryContext::m_putFileName' will be initialized after [-Wreorder]\n std::string m_putFileName;\n" - }, - { - "file_path": "/mnt/host/cpp/FileTransferAgent.hpp", - "line": 96, - "column": 19, - "message": " 'long unsigned int Snowflake::Client::RetryContext::m_maxRetryCount' ", - "flag": "-Wreorder", - "snippet": " unsigned long m_maxRetryCount;\n", - "source": "/mnt/host/cpp/FileTransferAgent.hpp:96:19: warning: 'long unsigned int Snowflake::Client::RetryContext::m_maxRetryCount' [-Wreorder]\n unsigned long m_maxRetryCount;\n" - }, - { - "file_path": "/mnt/host/cpp/FileTransferAgent.hpp", - "line": 43, - "column": 5, - "message": " when initialized here ", - "flag": "-Wreorder", - "snippet": " RetryContext(const std::string &fileName, int maxRetries):\n", - "source": "/mnt/host/cpp/FileTransferAgent.hpp:43:5: warning: when initialized here [-Wreorder]\n RetryContext(const std::string &fileName, int maxRetries):\n" - }, - { - "file_path": "/mnt/host/cpp/FileCompressionType.cpp", - "line": 148, - "column": 26, - "message": " comparison of integer expressions of different signedness: 'size_t' {aka 'long unsigned int'} and 'const short int' ", - "flag": "-Wsign-compare", - "snippet": " if (strlen(header) >= m_magicBytes &&\n", - "source": "/mnt/host/cpp/FileCompressionType.cpp:148:26: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'long unsigned int'} and 'const short int' [-Wsign-compare]\n if (strlen(header) >= m_magicBytes &&\n" - }, - { - "file_path": "/mnt/host/cpp/util/ByteArrayStreamBuf.hpp", - "line": 31, - "column": 10, - "message": " type qualifiers ignored on function return type ", - "flag": "-Wignored-qualifiers", - "snippet": " inline const unsigned int getCapacity()\n", - "source": "/mnt/host/cpp/util/ByteArrayStreamBuf.hpp:31:10: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]\n inline const unsigned int getCapacity()\n" - }, - { - "file_path": "/mnt/host/cpp/util/ThreadPool.hpp", - "line": 50, - "column": 8, - "message": " 'Snowflake::Client::Util::ThreadPool::finished' will be initialized after ", - "flag": "-Wreorder", - "snippet": " bool finished;\n", - "source": "/mnt/host/cpp/util/ThreadPool.hpp:50:8: warning: 'Snowflake::Client::Util::ThreadPool::finished' will be initialized after [-Wreorder]\n bool finished;\n" - }, - { - "file_path": "/mnt/host/cpp/util/ThreadPool.hpp", - "line": 38, - "column": 22, - "message": " 'const unsigned int Snowflake::Client::Util::ThreadPool::threadCount' ", - "flag": "-Wreorder", - "snippet": " const unsigned int threadCount;\n", - "source": "/mnt/host/cpp/util/ThreadPool.hpp:38:22: warning: 'const unsigned int Snowflake::Client::Util::ThreadPool::threadCount' [-Wreorder]\n const unsigned int threadCount;\n" - }, - { - "file_path": "/mnt/host/cpp/util/ThreadPool.hpp", - "line": 137, - "column": 3, - "message": " when initialized here ", - "flag": "-Wreorder", - "snippet": " ThreadPool(unsigned int threadNum)\n", - "source": "/mnt/host/cpp/util/ThreadPool.hpp:137:3: warning: when initialized here [-Wreorder]\n ThreadPool(unsigned int threadNum)\n" - }, - { - "file_path": "/mnt/host/cpp/FileTransferAgent.hpp", - "line": 302, - "column": 27, - "message": " 'Snowflake::Client::FileTransferAgent::m_FileMetadataInitializer' will be initialized after ", - "flag": "-Wreorder", - "snippet": " FileMetadataInitializer m_FileMetadataInitializer;\n", - "source": "/mnt/host/cpp/FileTransferAgent.hpp:302:27: warning: 'Snowflake::Client::FileTransferAgent::m_FileMetadataInitializer' will be initialized after [-Wreorder]\n FileMetadataInitializer m_FileMetadataInitializer;\n" - }, - { - "file_path": "/mnt/host/cpp/FileTransferAgent.hpp", - "line": 296, - "column": 32, - "message": " 'Snowflake::Client::FileTransferExecutionResult* Snowflake::Client::FileTransferAgent::m_executionResults' ", - "flag": "-Wreorder", - "snippet": " FileTransferExecutionResult *m_executionResults;\n", - "source": "/mnt/host/cpp/FileTransferAgent.hpp:296:32: warning: 'Snowflake::Client::FileTransferExecutionResult* Snowflake::Client::FileTransferAgent::m_executionResults' [-Wreorder]\n FileTransferExecutionResult *m_executionResults;\n" - }, - { - "file_path": "/mnt/host/cpp/FileTransferAgent.cpp", - "line": 63, - "column": 1, - "message": " when initialized here ", - "flag": "-Wreorder", - "snippet": " Snowflake::Client::FileTransferAgent::FileTransferAgent(\n", - "source": "/mnt/host/cpp/FileTransferAgent.cpp:63:1: warning: when initialized here [-Wreorder]\n Snowflake::Client::FileTransferAgent::FileTransferAgent(\n" - }, - { - "file_path": "/mnt/host/cpp/FileTransferAgent.hpp", - "line": 296, - "column": 32, - "message": " 'Snowflake::Client::FileTransferAgent::m_executionResults' will be initialized after ", - "flag": "-Wreorder", - "snippet": " FileTransferExecutionResult *m_executionResults;\n", - "source": "/mnt/host/cpp/FileTransferAgent.hpp:296:32: warning: 'Snowflake::Client::FileTransferAgent::m_executionResults' will be initialized after [-Wreorder]\n FileTransferExecutionResult *m_executionResults;\n" - }, - { - "file_path": "/mnt/host/cpp/FileTransferAgent.hpp", - "line": 287, - "column": 20, - "message": " 'Snowflake::Client::IStorageClient* Snowflake::Client::FileTransferAgent::m_storageClient' ", - "flag": "-Wreorder", - "snippet": " IStorageClient * m_storageClient;\n", - "source": "/mnt/host/cpp/FileTransferAgent.hpp:287:20: warning: 'Snowflake::Client::IStorageClient* Snowflake::Client::FileTransferAgent::m_storageClient' [-Wreorder]\n IStorageClient * m_storageClient;\n" - }, - { - "file_path": "/mnt/host/cpp/FileTransferAgent.hpp", - "line": 328, - "column": 7, - "message": " 'Snowflake::Client::FileTransferAgent::m_maxPutRetries' will be initialized after ", - "flag": "-Wreorder", - "snippet": " int m_maxPutRetries;\n", - "source": "/mnt/host/cpp/FileTransferAgent.hpp:328:7: warning: 'Snowflake::Client::FileTransferAgent::m_maxPutRetries' will be initialized after [-Wreorder]\n int m_maxPutRetries;\n" - }, - { - "file_path": "/mnt/host/cpp/FileTransferAgent.hpp", - "line": 326, - "column": 8, - "message": " 'bool Snowflake::Client::FileTransferAgent::m_putFastFail' ", - "flag": "-Wreorder", - "snippet": " bool m_putFastFail;\n", - "source": "/mnt/host/cpp/FileTransferAgent.hpp:326:8: warning: 'bool Snowflake::Client::FileTransferAgent::m_putFastFail' [-Wreorder]\n bool m_putFastFail;\n" - }, - { - "file_path": "/mnt/host/cpp/FileTransferAgent.hpp", - "line": 333, - "column": 7, - "message": " 'Snowflake::Client::FileTransferAgent::m_maxGetRetries' will be initialized after ", - "flag": "-Wreorder", - "snippet": " int m_maxGetRetries;\n", - "source": "/mnt/host/cpp/FileTransferAgent.hpp:333:7: warning: 'Snowflake::Client::FileTransferAgent::m_maxGetRetries' will be initialized after [-Wreorder]\n int m_maxGetRetries;\n" - }, - { - "file_path": "/mnt/host/cpp/FileTransferAgent.hpp", - "line": 331, - "column": 8, - "message": " 'bool Snowflake::Client::FileTransferAgent::m_getFastFail' ", - "flag": "-Wreorder", - "snippet": " bool m_getFastFail;\n", - "source": "/mnt/host/cpp/FileTransferAgent.hpp:331:8: warning: 'bool Snowflake::Client::FileTransferAgent::m_getFastFail' [-Wreorder]\n bool m_getFastFail;\n" - }, - { - "file_path": "/mnt/host/cpp/FileTransferAgent.cpp", - "line": 924, - "column": 28, - "message": " comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string::size_type' {aka 'long unsigned int'} ", - "flag": "-Wsign-compare", - "snippet": " (localFilePathBeginIdx > FILE_PROTOCOL.length()) &&\n", - "source": "/mnt/host/cpp/FileTransferAgent.cpp:924:28: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string::size_type' {aka 'long unsigned int'} [-Wsign-compare]\n (localFilePathBeginIdx > FILE_PROTOCOL.length()) &&\n" - }, - { - "file_path": "/mnt/host/cpp/FileTransferAgent.cpp", - "line": 956, - "column": 32, - "message": " comparison of integer expressions of different signedness: 'std::__cxx11::basic_string::size_type' {aka 'long unsigned int'} and 'int' ", - "flag": "-Wsign-compare", - "snippet": " else if (std::string::npos == localFilePathEndIdx)\n", - "source": "/mnt/host/cpp/FileTransferAgent.cpp:956:32: warning: comparison of integer expressions of different signedness: 'std::__cxx11::basic_string::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]\n else if (std::string::npos == localFilePathEndIdx)\n" - }, - { - "file_path": "/mnt/host/cpp/FileTransferExecutionResult.cpp", - "line": 223, - "column": 18, - "message": " comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} ", - "flag": "-Wsign-compare", - "snippet": " for (int i=0; isize(); i++)\n", - "source": "/mnt/host/cpp/FileTransferExecutionResult.cpp:223:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare]\n for (int i=0; isize(); i++)\n" - }, - { - "file_path": "/mnt/host/cpp/SnowflakeS3Client.cpp", - "line": 547, - "column": 21, - "message": " comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} ", - "flag": "-Wsign-compare", - "snippet": " for (int i = 0; i < downloadParts.size(); i++)\n", - "source": "/mnt/host/cpp/SnowflakeS3Client.cpp:547:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare]\n for (int i = 0; i < downloadParts.size(); i++)\n" - }, - { - "file_path": "/mnt/host/cpp/SnowflakeAzureClient.hpp", - "line": 38, - "column": 33, - "message": " unused parameter 'uploadId' ", - "flag": "-Wunused-parameter", - "snippet": " MultiUploadCtx_a(std::string &uploadId,\n", - "source": "/mnt/host/cpp/SnowflakeAzureClient.hpp:38:33: warning: unused parameter 'uploadId' [-Wunused-parameter]\n MultiUploadCtx_a(std::string &uploadId,\n" - }, - { - "file_path": "/mnt/host/cpp/SnowflakeAzureClient.hpp", - "line": 39, - "column": 18, - "message": " unused parameter 'partNumber' ", - "flag": "-Wunused-parameter", - "snippet": " unsigned int partNumber,\n", - "source": "/mnt/host/cpp/SnowflakeAzureClient.hpp:39:18: warning: unused parameter 'partNumber' [-Wunused-parameter]\n unsigned int partNumber,\n" - }, - { - "file_path": "/mnt/host/cpp/SnowflakeAzureClient.hpp", - "line": 40, - "column": 18, - "message": " unused parameter 'key' ", - "flag": "-Wunused-parameter", - "snippet": " std::string &key,\n", - "source": "/mnt/host/cpp/SnowflakeAzureClient.hpp:40:18: warning: unused parameter 'key' [-Wunused-parameter]\n std::string &key,\n" - }, - { - "file_path": "/mnt/host/cpp/SnowflakeAzureClient.hpp", - "line": 41, - "column": 18, - "message": " unused parameter 'bucket' ", - "flag": "-Wunused-parameter", - "snippet": " std::string &bucket)\n", - "source": "/mnt/host/cpp/SnowflakeAzureClient.hpp:41:18: warning: unused parameter 'bucket' [-Wunused-parameter]\n std::string &bucket)\n" - }, - { - "file_path": "/mnt/host/cpp/SnowflakeAzureClient.cpp", - "line": 132, - "column": 58, - "message": " comparison of integer expressions of different signedness: 'long long int' and 'const size_t' {aka 'const long unsigned int'} ", - "flag": "-Wsign-compare", - "snippet": " if(fileMetadata->encryptionMetadata.cipherStreamSize <= m_uploadThreshold)\n", - "source": "/mnt/host/cpp/SnowflakeAzureClient.cpp:132:58: warning: comparison of integer expressions of different signedness: 'long long int' and 'const size_t' {aka 'const long unsigned int'} [-Wsign-compare]\n if(fileMetadata->encryptionMetadata.cipherStreamSize <= m_uploadThreshold)\n" - }, - { - "file_path": "/mnt/host/cpp/SnowflakeAzureClient.cpp", - "line": 181, - "column": 78, - "message": " unused parameter 'uploadCtx' ", - "flag": "-Wunused-parameter", - "snippet": " void Snowflake::Client::SnowflakeAzureClient::uploadParts(MultiUploadCtx_a * uploadCtx)\n", - "source": "/mnt/host/cpp/SnowflakeAzureClient.cpp:181:78: warning: unused parameter 'uploadCtx' [-Wunused-parameter]\n void Snowflake::Client::SnowflakeAzureClient::uploadParts(MultiUploadCtx_a * uploadCtx)\n" - }, - { - "file_path": "/mnt/host/cpp/SnowflakeAzureClient.cpp", - "line": 242, - "column": 10, - "message": " unused variable 'ivEncodeSize' ", - "flag": "-Wunused-variable", - "snippet": " size_t ivEncodeSize = Snowflake::Client::Util::Base64::encodedLength(\n", - "source": "/mnt/host/cpp/SnowflakeAzureClient.cpp:242:10: warning: unused variable 'ivEncodeSize' [-Wunused-variable]\n size_t ivEncodeSize = Snowflake::Client::Util::Base64::encodedLength(\n" - }, - { - "file_path": "/mnt/host/cpp/SnowflakeAzureClient.cpp", - "line": 289, - "column": 23, - "message": " comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} ", - "flag": "-Wsign-compare", - "snippet": " for (int i = 0; i < downloadParts.size(); i++)\n", - "source": "/mnt/host/cpp/SnowflakeAzureClient.cpp:289:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare]\n for (int i = 0; i < downloadParts.size(); i++)\n" - }, - { - "file_path": "/mnt/host/cpp/SnowflakeGCSClient.cpp", - "line": 33, - "column": 75, - "message": " unused parameter 'parallel' ", - "flag": "-Wunused-parameter", - "snippet": " SnowflakeGCSClient::SnowflakeGCSClient(StageInfo *stageInfo, unsigned int parallel,\n", - "source": "/mnt/host/cpp/SnowflakeGCSClient.cpp:33:75: warning: unused parameter 'parallel' [-Wunused-parameter]\n SnowflakeGCSClient::SnowflakeGCSClient(StageInfo *stageInfo, unsigned int parallel,\n" - }, - { - "file_path": "/mnt/host/cpp/SnowflakeGCSClient.cpp", - "line": 34, - "column": 20, - "message": " unused parameter 'transferConfig' ", - "flag": "-Wunused-parameter", - "snippet": " TransferConfig * transferConfig, IStatementPutGet* statement) :\n", - "source": "/mnt/host/cpp/SnowflakeGCSClient.cpp:34:20: warning: unused parameter 'transferConfig' [-Wunused-parameter]\n TransferConfig * transferConfig, IStatementPutGet* statement) :\n" - }, - { - "file_path": "/mnt/host/cpp/util/ByteArrayStreamBuf.hpp", - "line": 134, - "column": 7, - "message": " 'Snowflake::Client::Util::StreamAppender::m_totalPartNum' will be initialized after ", - "flag": "-Wreorder", - "snippet": " int m_totalPartNum;\n", - "source": "/mnt/host/cpp/util/ByteArrayStreamBuf.hpp:134:7: warning: 'Snowflake::Client::Util::StreamAppender::m_totalPartNum' will be initialized after [-Wreorder]\n int m_totalPartNum;\n" - }, - { - "file_path": "/mnt/host/cpp/util/ByteArrayStreamBuf.hpp", - "line": 131, - "column": 7, - "message": " 'int Snowflake::Client::Util::StreamAppender::m_parallel' ", - "flag": "-Wreorder", - "snippet": " int m_parallel;\n", - "source": "/mnt/host/cpp/util/ByteArrayStreamBuf.hpp:131:7: warning: 'int Snowflake::Client::Util::StreamAppender::m_parallel' [-Wreorder]\n int m_parallel;\n" - }, - { - "file_path": "/mnt/host/cpp/util/ByteArrayStreamBuf.cpp", - "line": 85, - "column": 1, - "message": " when initialized here ", - "flag": "-Wreorder", - "snippet": " Snowflake::Client::Util::StreamAppender::StreamAppender(\n", - "source": "/mnt/host/cpp/util/ByteArrayStreamBuf.cpp:85:1: warning: when initialized here [-Wreorder]\n Snowflake::Client::Util::StreamAppender::StreamAppender(\n" - }, - { - "file_path": "/mnt/host/cpp/crypto/CipherStreamBuf.hpp", - "line": 45, - "column": 10, - "message": " 'Snowflake::Client::Crypto::CipherStreamBuf::m_blockSize' will be initialized after ", - "flag": "-Wreorder", - "snippet": " size_t m_blockSize;\n", - "source": "/mnt/host/cpp/crypto/CipherStreamBuf.hpp:45:10: warning: 'Snowflake::Client::Crypto::CipherStreamBuf::m_blockSize' will be initialized after [-Wreorder]\n size_t m_blockSize;\n" - }, - { - "file_path": "/mnt/host/cpp/crypto/CipherStreamBuf.hpp", - "line": 38, - "column": 9, - "message": " 'char* Snowflake::Client::Crypto::CipherStreamBuf::m_srcBuffer' ", - "flag": "-Wreorder", - "snippet": " char *m_srcBuffer;\n", - "source": "/mnt/host/cpp/crypto/CipherStreamBuf.hpp:38:9: warning: 'char* Snowflake::Client::Crypto::CipherStreamBuf::m_srcBuffer' [-Wreorder]\n char *m_srcBuffer;\n" - }, - { - "file_path": "/mnt/host/cpp/crypto/CipherStreamBuf.cpp", - "line": 18, - "column": 1, - "message": " when initialized here ", - "flag": "-Wreorder", - "snippet": " CipherStreamBuf::CipherStreamBuf(::std::basic_streambuf *streambuf,\n", - "source": "/mnt/host/cpp/crypto/CipherStreamBuf.cpp:18:1: warning: when initialized here [-Wreorder]\n CipherStreamBuf::CipherStreamBuf(::std::basic_streambuf *streambuf,\n" - }, - { - "file_path": "/mnt/host/cpp/jwt/ClaimSet.hpp", - "line": 91, - "column": 37, - "message": " unused parameter 'format' ", - "flag": "-Wunused-parameter", - "snippet": " inline std::string serialize(bool format=true) override\n", - "source": "/mnt/host/cpp/jwt/ClaimSet.hpp:91:37: warning: unused parameter 'format' [-Wunused-parameter]\n inline std::string serialize(bool format=true) override\n" - }, - { - "file_path": "/mnt/host/cpp/jwt/Header.hpp", - "line": 74, - "column": 37, - "message": " unused parameter 'format' ", - "flag": "-Wunused-parameter", - "snippet": " inline std::string serialize(bool format=true) override\n", - "source": "/mnt/host/cpp/jwt/Header.hpp:74:37: warning: unused parameter 'format' [-Wunused-parameter]\n inline std::string serialize(bool format=true) override\n" - }, - { - "file_path": "/mnt/host/cpp/jwt/Jwt.cpp", - "line": 54, - "column": 44, - "message": " unused parameter 'format' ", - "flag": "-Wunused-parameter", - "snippet": " bool JWTObject::verify(EVP_PKEY *key, bool format)\n", - "source": "/mnt/host/cpp/jwt/Jwt.cpp:54:44: warning: unused parameter 'format' [-Wunused-parameter]\n bool JWTObject::verify(EVP_PKEY *key, bool format)\n" - }, - { - "file_path": "/mnt/host/cpp/lib/Connection.cpp", - "line": 27, - "column": 63, - "message": " unused parameter 'type_' ", - "flag": "-Wunused-parameter", - "snippet": " void Snowflake::Client::Connection::setAttribute(SF_ATTRIBUTE type_, const void *value_) {\n", - "source": "/mnt/host/cpp/lib/Connection.cpp:27:63: warning: unused parameter 'type_' [-Wunused-parameter]\n void Snowflake::Client::Connection::setAttribute(SF_ATTRIBUTE type_, const void *value_) {\n" - }, - { - "file_path": "/mnt/host/cpp/lib/Connection.cpp", - "line": 27, - "column": 82, - "message": " unused parameter 'value_' ", - "flag": "-Wunused-parameter", - "snippet": " void Snowflake::Client::Connection::setAttribute(SF_ATTRIBUTE type_, const void *value_) {\n", - "source": "/mnt/host/cpp/lib/Connection.cpp:27:82: warning: unused parameter 'value_' [-Wunused-parameter]\n void Snowflake::Client::Connection::setAttribute(SF_ATTRIBUTE type_, const void *value_) {\n" - }, - { - "file_path": "/mnt/host/cpp/lib/Column.cpp", - "line": 7, - "column": 51, - "message": " unused parameter 'column_desc_' ", - "flag": "-Wunused-parameter", - "snippet": " Snowflake::Client::Column::Column(SF_COLUMN_DESC *column_desc_) {}\n", - "source": "/mnt/host/cpp/lib/Column.cpp:7:51: warning: unused parameter 'column_desc_' [-Wunused-parameter]\n Snowflake::Client::Column::Column(SF_COLUMN_DESC *column_desc_) {}\n" - }, - { - "file_path": "/mnt/host/deps-build/linux/Release/arrow/include/arrow/device.h", - "line": 142, - "column": 67, - "message": " unused parameter 'flags' ", - "flag": "-Wunused-parameter", - "snippet": " virtual Result> MakeStream(unsigned int flags) {\n", - "source": "/mnt/host/deps-build/linux/Release/arrow/include/arrow/device.h:142:67: warning: unused parameter 'flags' [-Wunused-parameter]\n virtual Result> MakeStream(unsigned int flags) {\n" - }, - { - "file_path": "/mnt/host/deps-build/linux/Release/arrow/include/arrow/device.h", - "line": 152, - "column": 60, - "message": " unused parameter 'device_stream' ", - "flag": "-Wunused-parameter", - "snippet": " virtual Result> WrapStream(void* device_stream,\n", - "source": "/mnt/host/deps-build/linux/Release/arrow/include/arrow/device.h:152:60: warning: unused parameter 'device_stream' [-Wunused-parameter]\n virtual Result> WrapStream(void* device_stream,\n" - }, - { - "file_path": "/mnt/host/deps-build/linux/Release/arrow/include/arrow/device.h", - "line": 153, - "column": 75, - "message": " unused parameter 'release_fn' ", - "flag": "-Wunused-parameter", - "snippet": " Stream::release_fn_t release_fn) {\n", - "source": "/mnt/host/deps-build/linux/Release/arrow/include/arrow/device.h:153:75: warning: unused parameter 'release_fn' [-Wunused-parameter]\n Stream::release_fn_t release_fn) {\n" - }, - { - "file_path": "/mnt/host/deps-build/linux/Release/arrow/include/arrow/array/builder_base.h", - "line": 178, - "column": 52, - "message": " unused parameter 'array' ", - "flag": "-Wunused-parameter", - "snippet": " virtual Status AppendArraySlice(const ArraySpan& array, int64_t offset,\n", - "source": "/mnt/host/deps-build/linux/Release/arrow/include/arrow/array/builder_base.h:178:52: warning: unused parameter 'array' [-Wunused-parameter]\n virtual Status AppendArraySlice(const ArraySpan& array, int64_t offset,\n" - }, - { - "file_path": "/mnt/host/deps-build/linux/Release/arrow/include/arrow/array/builder_base.h", - "line": 178, - "column": 67, - "message": " unused parameter 'offset' ", - "flag": "-Wunused-parameter", - "snippet": " virtual Status AppendArraySlice(const ArraySpan& array, int64_t offset,\n", - "source": "/mnt/host/deps-build/linux/Release/arrow/include/arrow/array/builder_base.h:178:67: warning: unused parameter 'offset' [-Wunused-parameter]\n virtual Status AppendArraySlice(const ArraySpan& array, int64_t offset,\n" - }, - { - "file_path": "/mnt/host/deps-build/linux/Release/arrow/include/arrow/array/builder_base.h", - "line": 179, - "column": 43, - "message": " unused parameter 'length' ", - "flag": "-Wunused-parameter", - "snippet": " int64_t length) {\n", - "source": "/mnt/host/deps-build/linux/Release/arrow/include/arrow/array/builder_base.h:179:43: warning: unused parameter 'length' [-Wunused-parameter]\n int64_t length) {\n" - }, - { - "file_path": "/mnt/host/deps-build/linux/Release/arrow/include/arrow/array/builder_primitive.h", - "line": 35, - "column": 32, - "message": " unused parameter 'alignment' ", - "flag": "-Wunused-parameter", - "snippet": " int64_t alignment = kDefaultBufferAlignment)\n", - "source": "/mnt/host/deps-build/linux/Release/arrow/include/arrow/array/builder_primitive.h:35:32: warning: unused parameter 'alignment' [-Wunused-parameter]\n int64_t alignment = kDefaultBufferAlignment)\n" - }, - { - "file_path": "/mnt/host/deps-build/linux/Release/arrow/include/arrow/array/builder_primitive.h", - "line": 37, - "column": 57, - "message": " unused parameter 'type' ", - "flag": "-Wunused-parameter", - "snippet": " explicit NullBuilder(const std::shared_ptr& type,\n", - "source": "/mnt/host/deps-build/linux/Release/arrow/include/arrow/array/builder_primitive.h:37:57: warning: unused parameter 'type' [-Wunused-parameter]\n explicit NullBuilder(const std::shared_ptr& type,\n" - }, - { - "file_path": "/mnt/host/deps-build/linux/Release/arrow/include/arrow/array/builder_run_end.h", - "line": 77, - "column": 68, - "message": " unused parameter 'value' ", - "flag": "-Wunused-parameter", - "snippet": " virtual Status WillCloseRun(const std::shared_ptr& value,\n", - "source": "/mnt/host/deps-build/linux/Release/arrow/include/arrow/array/builder_run_end.h:77:68: warning: unused parameter 'value' [-Wunused-parameter]\n virtual Status WillCloseRun(const std::shared_ptr& value,\n" - }, - { - "file_path": "/mnt/host/deps-build/linux/Release/arrow/include/arrow/array/builder_run_end.h", - "line": 78, - "column": 39, - "message": " unused parameter 'length' ", - "flag": "-Wunused-parameter", - "snippet": " int64_t length) {\n", - "source": "/mnt/host/deps-build/linux/Release/arrow/include/arrow/array/builder_run_end.h:78:39: warning: unused parameter 'length' [-Wunused-parameter]\n int64_t length) {\n" - }, - { - "file_path": "/mnt/host/deps-build/linux/Release/arrow/include/arrow/array/builder_run_end.h", - "line": 89, - "column": 52, - "message": " unused parameter 'length' ", - "flag": "-Wunused-parameter", - "snippet": " virtual Status WillCloseRunOfEmptyValues(int64_t length) { return Status::OK(); }\n", - "source": "/mnt/host/deps-build/linux/Release/arrow/include/arrow/array/builder_run_end.h:89:52: warning: unused parameter 'length' [-Wunused-parameter]\n virtual Status WillCloseRunOfEmptyValues(int64_t length) { return Status::OK(); }\n" - }, - { - "file_path": "/mnt/host/deps-build/linux/Release/arrow/include/arrow/util/mutex.h", - "line": 40, - "column": 42, - "message": " unused parameter 'mutex' ", - "flag": "-Wunused-parameter", - "snippet": " Guard() : locked_(NULLPTR, [](Mutex* mutex) {}) {}\n", - "source": "/mnt/host/deps-build/linux/Release/arrow/include/arrow/util/mutex.h:40:42: warning: unused parameter 'mutex' [-Wunused-parameter]\n Guard() : locked_(NULLPTR, [](Mutex* mutex) {}) {}\n" - }, - { - "file_path": "/mnt/host/cpp/lib/ArrowChunkIterator.cpp", - "line": 62, - "column": 27, - "message": " comparison of integer expressions of different signedness: 'int' and 'uint32' {aka 'unsigned int'} ", - "flag": "-Wsign-compare", - "snippet": " for (int col = 0; col < m_columnCount; ++col) {\n", - "source": "/mnt/host/cpp/lib/ArrowChunkIterator.cpp:62:27: warning: comparison of integer expressions of different signedness: 'int' and 'uint32' {aka 'unsigned int'} [-Wsign-compare]\n for (int col = 0; col < m_columnCount; ++col) {\n" - }, - { - "file_path": "/mnt/host/cpp/lib/ArrowChunkIterator.cpp", - "line": 1094, - "column": 23, - "message": " comparison of integer expressions of different signedness: 'int' and 'uint32' {aka 'unsigned int'} ", - "flag": "-Wsign-compare", - "snippet": " for (int i = 0; i < m_columnCount; i++)\n", - "source": "/mnt/host/cpp/lib/ArrowChunkIterator.cpp:1094:23: warning: comparison of integer expressions of different signedness: 'int' and 'uint32' {aka 'unsigned int'} [-Wsign-compare]\n for (int i = 0; i < m_columnCount; i++)\n" - }, - { - "file_path": "/mnt/host/cpp/lib/result_set.cpp", - "line": 350, - "column": 20, - "message": " this statement may fall through ", - "flag": "-Wimplicit-fallthrough=", - "snippet": " rs_obj = static_cast(((rs_arrow_t *)rs)->rs_object);\n", - "source": "/mnt/host/cpp/lib/result_set.cpp:350:20: warning: this statement may fall through [-Wimplicit-fallthrough=]\n rs_obj = static_cast(((rs_arrow_t *)rs)->rs_object);\n" - }, - { - "file_path": "/mnt/host/cpp/lib/result_set.cpp", - "line": 352, - "column": 20, - "message": " this statement may fall through ", - "flag": "-Wimplicit-fallthrough=", - "snippet": " rs_obj = static_cast(((rs_json_t *)rs)->rs_object);\n", - "source": "/mnt/host/cpp/lib/result_set.cpp:352:20: warning: this statement may fall through [-Wimplicit-fallthrough=]\n rs_obj = static_cast(((rs_json_t *)rs)->rs_object);\n" - }, - { - "file_path": "/mnt/host/cpp/lib/result_set.cpp", - "line": 374, - "column": 20, - "message": " this statement may fall through ", - "flag": "-Wimplicit-fallthrough=", - "snippet": " rs_obj = static_cast(((rs_arrow_t *)rs)->rs_object);\n", - "source": "/mnt/host/cpp/lib/result_set.cpp:374:20: warning: this statement may fall through [-Wimplicit-fallthrough=]\n rs_obj = static_cast(((rs_arrow_t *)rs)->rs_object);\n" - }, - { - "file_path": "/mnt/host/cpp/lib/result_set.cpp", - "line": 376, - "column": 20, - "message": " this statement may fall through ", - "flag": "-Wimplicit-fallthrough=", - "snippet": " rs_obj = static_cast(((rs_json_t *)rs)->rs_object);\n", - "source": "/mnt/host/cpp/lib/result_set.cpp:376:20: warning: this statement may fall through [-Wimplicit-fallthrough=]\n rs_obj = static_cast(((rs_json_t *)rs)->rs_object);\n" - }, - { - "file_path": "/mnt/host/cpp/lib/ResultSet.hpp", - "line": 321, - "column": 10, - "message": " 'Snowflake::Client::ResultSet::m_isFirstChunk' will be initialized after ", - "flag": "-Wreorder", - "snippet": " bool m_isFirstChunk;\n", - "source": "/mnt/host/cpp/lib/ResultSet.hpp:321:10: warning: 'Snowflake::Client::ResultSet::m_isFirstChunk' will be initialized after [-Wreorder]\n bool m_isFirstChunk;\n" - }, - { - "file_path": "/mnt/host/cpp/lib/ResultSet.hpp", - "line": 311, - "column": 17, - "message": " 'std::__cxx11::string Snowflake::Client::ResultSet::m_tzString' ", - "flag": "-Wreorder", - "snippet": " std::string m_tzString;\n", - "source": "/mnt/host/cpp/lib/ResultSet.hpp:311:17: warning: 'std::__cxx11::string Snowflake::Client::ResultSet::m_tzString' [-Wreorder]\n std::string m_tzString;\n" - }, - { - "file_path": "/mnt/host/cpp/lib/ResultSet.cpp", - "line": 36, - "column": 1, - "message": " when initialized here ", - "flag": "-Wreorder", - "snippet": " ResultSet::ResultSet(\n", - "source": "/mnt/host/cpp/lib/ResultSet.cpp:36:1: warning: when initialized here [-Wreorder]\n ResultSet::ResultSet(\n" - }, - { - "file_path": "/mnt/host/cpp/lib/ResultSetArrow.cpp", - "line": 76, - "column": 27, - "message": " comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} ", - "flag": "-Wsign-compare", - "snippet": " for (int i = 0; i < m_totalColumnCount; i++)\n", - "source": "/mnt/host/cpp/lib/ResultSetArrow.cpp:76:27: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare]\n for (int i = 0; i < m_totalColumnCount; i++)\n" - }, - { - "file_path": "/mnt/host/cpp/lib/ResultSetArrow.cpp", - "line": 87, - "column": 23, - "message": " comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} ", - "flag": "-Wsign-compare", - "snippet": " for (int i = 0; i < m_totalColumnCount; i++)\n", - "source": "/mnt/host/cpp/lib/ResultSetArrow.cpp:87:23: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare]\n for (int i = 0; i < m_totalColumnCount; i++)\n" - }, - { - "file_path": "/mnt/host/cpp/lib/ResultSetArrow.cpp", - "line": 154, - "column": 13, - "message": " unused variable 'isNull' ", - "flag": "-Wunused-variable", - "snippet": " sf_bool isNull = SF_BOOLEAN_FALSE;\n", - "source": "/mnt/host/cpp/lib/ResultSetArrow.cpp:154:13: warning: unused variable 'isNull' [-Wunused-variable]\n sf_bool isNull = SF_BOOLEAN_FALSE;\n" - }, - { - "file_path": "/mnt/host/cpp/jwt/jwtWrapper.cpp", - "line": 147, - "column": 16, - "message": " unused variable 'temp_obj' ", - "flag": "-Wunused-variable", - "snippet": " IClaimSet *temp_obj = NULL;\n", - "source": "/mnt/host/cpp/jwt/jwtWrapper.cpp:147:16: warning: unused variable 'temp_obj' [-Wunused-variable]\n IClaimSet *temp_obj = NULL;\n" - }, - { - "file_path": "/mnt/host/cpp/util/CurlDescPool.cpp", - "line": 224, - "column": 42, - "message": " unused parameter 'handle' ", - "flag": "-Wunused-parameter", - "snippet": " void CurlDescPool::curlShareLock(CURL *handle, curl_lock_data data,\n", - "source": "/mnt/host/cpp/util/CurlDescPool.cpp:224:42: warning: unused parameter 'handle' [-Wunused-parameter]\n void CurlDescPool::curlShareLock(CURL *handle, curl_lock_data data,\n" - }, - { - "file_path": "/mnt/host/cpp/util/CurlDescPool.cpp", - "line": 225, - "column": 53, - "message": " unused parameter 'access' ", - "flag": "-Wunused-parameter", - "snippet": " curl_lock_access access, void *ctx)\n", - "source": "/mnt/host/cpp/util/CurlDescPool.cpp:225:53: warning: unused parameter 'access' [-Wunused-parameter]\n curl_lock_access access, void *ctx)\n" - }, - { - "file_path": "/mnt/host/cpp/util/CurlDescPool.cpp", - "line": 255, - "column": 44, - "message": " unused parameter 'handle' ", - "flag": "-Wunused-parameter", - "snippet": " void CurlDescPool::curlShareUnlock(CURL *handle, curl_lock_data data,\n", - "source": "/mnt/host/cpp/util/CurlDescPool.cpp:255:44: warning: unused parameter 'handle' [-Wunused-parameter]\n void CurlDescPool::curlShareUnlock(CURL *handle, curl_lock_data data,\n" - }, - { - "file_path": "/mnt/host/include/snowflake/CurlDescPool.hpp", - "line": 86, - "column": 13, - "message": " 'Snowflake::Client::CurlDescPool::SubPool::m_curlShareDesc' will be initialized after ", - "flag": "-Wreorder", - "snippet": " CURLSH *m_curlShareDesc;\n", - "source": "/mnt/host/include/snowflake/CurlDescPool.hpp:86:13: warning: 'Snowflake::Client::CurlDescPool::SubPool::m_curlShareDesc' will be initialized after [-Wreorder]\n CURLSH *m_curlShareDesc;\n" - }, - { - "file_path": "/mnt/host/include/snowflake/CurlDescPool.hpp", - "line": 76, - "column": 19, - "message": " 'Snowflake::Client::CurlDescPool& Snowflake::Client::CurlDescPool::SubPool::m_parentPool' ", - "flag": "-Wreorder", - "snippet": " CurlDescPool& m_parentPool;\n", - "source": "/mnt/host/include/snowflake/CurlDescPool.hpp:76:19: warning: 'Snowflake::Client::CurlDescPool& Snowflake::Client::CurlDescPool::SubPool::m_parentPool' [-Wreorder]\n CurlDescPool& m_parentPool;\n" - }, - { - "file_path": "/mnt/host/cpp/util/CurlDescPool.cpp", - "line": 345, - "column": 3, - "message": " when initialized here ", - "flag": "-Wreorder", - "snippet": " CurlDescPool::SubPool::SubPool(const std::string &endPointName,\n", - "source": "/mnt/host/cpp/util/CurlDescPool.cpp:345:3: warning: when initialized here [-Wreorder]\n CurlDescPool::SubPool::SubPool(const std::string &endPointName,\n" - }, - { - "file_path": "/mnt/host/tests/utils/test_setup.c", - "line": 155, - "column": 23, - "message": " comparison of integer expressions of different signedness: 'int' and 'long unsigned int' ", - "flag": "-Wsign-compare", - "snippet": " for (int i = 0; i < sizeof(uuid); i++)\n", - "source": "/mnt/host/tests/utils/test_setup.c:155:23: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare]\n for (int i = 0; i < sizeof(uuid); i++)\n" - }, - { - "file_path": "/mnt/host/tests/test_perf_type_conversion.c", - "line": 207, - "column": 44, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_col_conv_int64_type_arrow(void **unused) {\n", - "source": "/mnt/host/tests/test_perf_type_conversion.c:207:44: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_col_conv_int64_type_arrow(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_perf_type_conversion.c", - "line": 211, - "column": 43, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_col_conv_int64_type_json(void **unused) {\n", - "source": "/mnt/host/tests/test_perf_type_conversion.c:211:43: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_col_conv_int64_type_json(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_perf_type_conversion.c", - "line": 215, - "column": 46, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_col_conv_float64_type_arrow(void **unused) {\n", - "source": "/mnt/host/tests/test_perf_type_conversion.c:215:46: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_col_conv_float64_type_arrow(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_perf_type_conversion.c", - "line": 219, - "column": 45, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_col_conv_float64_type_json(void **unused) {\n", - "source": "/mnt/host/tests/test_perf_type_conversion.c:219:45: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_col_conv_float64_type_json(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_perf_type_conversion.c", - "line": 223, - "column": 42, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_col_conv_str_type_arrow(void **unused) {\n", - "source": "/mnt/host/tests/test_perf_type_conversion.c:223:42: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_col_conv_str_type_arrow(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_perf_type_conversion.c", - "line": 227, - "column": 41, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_col_conv_str_type_json(void **unused) {\n", - "source": "/mnt/host/tests/test_perf_type_conversion.c:227:41: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_col_conv_str_type_json(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_perf_type_conversion.c", - "line": 231, - "column": 48, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_col_conv_timestamp_type_arrow(void **unused) {\n", - "source": "/mnt/host/tests/test_perf_type_conversion.c:231:48: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_col_conv_timestamp_type_arrow(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_perf_type_conversion.c", - "line": 235, - "column": 47, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_col_conv_timestamp_type_json(void **unused) {\n", - "source": "/mnt/host/tests/test_perf_type_conversion.c:235:47: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_col_conv_timestamp_type_json(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_perf_type_conversion.c", - "line": 239, - "column": 44, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_col_conv_multi_type_arrow(void **unused) {\n", - "source": "/mnt/host/tests/test_perf_type_conversion.c:239:44: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_col_conv_multi_type_arrow(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_perf_type_conversion.c", - "line": 243, - "column": 43, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_col_conv_multi_type_json(void **unused) {\n", - "source": "/mnt/host/tests/test_perf_type_conversion.c:243:43: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_col_conv_multi_type_json(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_perf_type_conversion.c", - "line": 247, - "column": 53, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_col_conv_multi_types_per_row_arrow(void **unused) {\n", - "source": "/mnt/host/tests/test_perf_type_conversion.c:247:53: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_col_conv_multi_types_per_row_arrow(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_perf_type_conversion.c", - "line": 251, - "column": 52, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_col_conv_multi_types_per_row_json(void **unused) {\n", - "source": "/mnt/host/tests/test_perf_type_conversion.c:251:52: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_col_conv_multi_types_per_row_json(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_perf_column_evaluation.c", - "line": 199, - "column": 38, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_eval_all_cols_arrow(void **unused) {\n", - "source": "/mnt/host/tests/test_perf_column_evaluation.c:199:38: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_eval_all_cols_arrow(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_perf_column_evaluation.c", - "line": 203, - "column": 37, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_eval_all_cols_json(void **unused) {\n", - "source": "/mnt/host/tests/test_perf_column_evaluation.c:203:37: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_eval_all_cols_json(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_perf_column_evaluation.c", - "line": 207, - "column": 39, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_eval_half_cols_arrow(void **unused) {\n", - "source": "/mnt/host/tests/test_perf_column_evaluation.c:207:39: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_eval_half_cols_arrow(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_perf_column_evaluation.c", - "line": 211, - "column": 38, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_eval_half_cols_json(void **unused) {\n", - "source": "/mnt/host/tests/test_perf_column_evaluation.c:211:38: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_eval_half_cols_json(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_perf_column_evaluation.c", - "line": 215, - "column": 39, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_skip_rows_half_arrow(void **unused) {\n", - "source": "/mnt/host/tests/test_perf_column_evaluation.c:215:39: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_skip_rows_half_arrow(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_perf_column_evaluation.c", - "line": 219, - "column": 38, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_skip_rows_half_json(void **unused) {\n", - "source": "/mnt/host/tests/test_perf_column_evaluation.c:219:38: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_skip_rows_half_json(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_perf_column_evaluation.c", - "line": 223, - "column": 38, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_skip_all_rows_arrow(void **unused) {\n", - "source": "/mnt/host/tests/test_perf_column_evaluation.c:223:38: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_skip_all_rows_arrow(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_perf_column_evaluation.c", - "line": 227, - "column": 37, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_skip_all_rows_json(void **unused) {\n", - "source": "/mnt/host/tests/test_perf_column_evaluation.c:227:37: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_skip_all_rows_json(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_perf_column_evaluation.c", - "line": 231, - "column": 46, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_skip_all_rows_no_bind_arrow(void **unused) {\n", - "source": "/mnt/host/tests/test_perf_column_evaluation.c:231:46: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_skip_all_rows_no_bind_arrow(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_perf_column_evaluation.c", - "line": 235, - "column": 45, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_skip_all_rows_no_bind_json(void **unused) {\n", - "source": "/mnt/host/tests/test_perf_column_evaluation.c:235:45: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_skip_all_rows_no_bind_json(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_sfurl.cpp", - "line": 12, - "column": 31, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_parse_basic(void ** unused)\n", - "source": "/mnt/host/tests/test_unit_sfurl.cpp:12:31: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_parse_basic(void ** unused)\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_sfurl.cpp", - "line": 65, - "column": 35, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_parse_authority(void ** unused)\n", - "source": "/mnt/host/tests/test_unit_sfurl.cpp:65:35: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_parse_authority(void ** unused)\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_sfurl.cpp", - "line": 94, - "column": 29, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_construct(void ** unused)\n", - "source": "/mnt/host/tests/test_unit_sfurl.cpp:94:29: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_construct(void ** unused)\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_sfurl.cpp", - "line": 129, - "column": 31, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_error_parse(void ** unused)\n", - "source": "/mnt/host/tests/test_unit_sfurl.cpp:129:31: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_error_parse(void ** unused)\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_sfurl.cpp", - "line": 143, - "column": 28, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " static int gr_setup(void **unused)\n", - "source": "/mnt/host/tests/test_unit_sfurl.cpp:143:28: warning: unused parameter 'unused' [-Wunused-parameter]\n static int gr_setup(void **unused)\n" - }, - { - "file_path": "/mnt/host/tests/../cpp/IStorageClient.hpp", - "line": 53, - "column": 43, - "message": " unused parameter 'maxRetries' ", - "flag": "-Wunused-parameter", - "snippet": " virtual void setMaxRetries(unsigned int maxRetries) {};\n", - "source": "/mnt/host/tests/../cpp/IStorageClient.hpp:53:43: warning: unused parameter 'maxRetries' [-Wunused-parameter]\n virtual void setMaxRetries(unsigned int maxRetries) {};\n" - }, - { - "file_path": "/mnt/host/tests/../cpp/FileTransferAgent.hpp", - "line": 101, - "column": 17, - "message": " 'Snowflake::Client::RetryContext::m_putFileName' will be initialized after ", - "flag": "-Wreorder", - "snippet": " std::string m_putFileName;\n", - "source": "/mnt/host/tests/../cpp/FileTransferAgent.hpp:101:17: warning: 'Snowflake::Client::RetryContext::m_putFileName' will be initialized after [-Wreorder]\n std::string m_putFileName;\n" - }, - { - "file_path": "/mnt/host/tests/../cpp/FileTransferAgent.hpp", - "line": 96, - "column": 19, - "message": " 'long unsigned int Snowflake::Client::RetryContext::m_maxRetryCount' ", - "flag": "-Wreorder", - "snippet": " unsigned long m_maxRetryCount;\n", - "source": "/mnt/host/tests/../cpp/FileTransferAgent.hpp:96:19: warning: 'long unsigned int Snowflake::Client::RetryContext::m_maxRetryCount' [-Wreorder]\n unsigned long m_maxRetryCount;\n" - }, - { - "file_path": "/mnt/host/tests/../cpp/FileTransferAgent.hpp", - "line": 43, - "column": 5, - "message": " when initialized here ", - "flag": "-Wreorder", - "snippet": " RetryContext(const std::string &fileName, int maxRetries):\n", - "source": "/mnt/host/tests/../cpp/FileTransferAgent.hpp:43:5: warning: when initialized here [-Wreorder]\n RetryContext(const std::string &fileName, int maxRetries):\n" - }, - { - "file_path": "/mnt/host/tests/../cpp/util/ByteArrayStreamBuf.hpp", - "line": 31, - "column": 10, - "message": " type qualifiers ignored on function return type ", - "flag": "-Wignored-qualifiers", - "snippet": " inline const unsigned int getCapacity()\n", - "source": "/mnt/host/tests/../cpp/util/ByteArrayStreamBuf.hpp:31:10: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]\n inline const unsigned int getCapacity()\n" - }, - { - "file_path": "/mnt/host/tests/../cpp/util/ThreadPool.hpp", - "line": 50, - "column": 8, - "message": " 'Snowflake::Client::Util::ThreadPool::finished' will be initialized after ", - "flag": "-Wreorder", - "snippet": " bool finished;\n", - "source": "/mnt/host/tests/../cpp/util/ThreadPool.hpp:50:8: warning: 'Snowflake::Client::Util::ThreadPool::finished' will be initialized after [-Wreorder]\n bool finished;\n" - }, - { - "file_path": "/mnt/host/tests/../cpp/util/ThreadPool.hpp", - "line": 38, - "column": 22, - "message": " 'const unsigned int Snowflake::Client::Util::ThreadPool::threadCount' ", - "flag": "-Wreorder", - "snippet": " const unsigned int threadCount;\n", - "source": "/mnt/host/tests/../cpp/util/ThreadPool.hpp:38:22: warning: 'const unsigned int Snowflake::Client::Util::ThreadPool::threadCount' [-Wreorder]\n const unsigned int threadCount;\n" - }, - { - "file_path": "/mnt/host/tests/../cpp/util/ThreadPool.hpp", - "line": 137, - "column": 3, - "message": " when initialized here ", - "flag": "-Wreorder", - "snippet": " ThreadPool(unsigned int threadNum)\n", - "source": "/mnt/host/tests/../cpp/util/ThreadPool.hpp:137:3: warning: when initialized here [-Wreorder]\n ThreadPool(unsigned int threadNum)\n" - }, - { - "file_path": "/mnt/host/tests/../cpp/SnowflakeAzureClient.hpp", - "line": 38, - "column": 33, - "message": " unused parameter 'uploadId' ", - "flag": "-Wunused-parameter", - "snippet": " MultiUploadCtx_a(std::string &uploadId,\n", - "source": "/mnt/host/tests/../cpp/SnowflakeAzureClient.hpp:38:33: warning: unused parameter 'uploadId' [-Wunused-parameter]\n MultiUploadCtx_a(std::string &uploadId,\n" - }, - { - "file_path": "/mnt/host/tests/../cpp/SnowflakeAzureClient.hpp", - "line": 39, - "column": 18, - "message": " unused parameter 'partNumber' ", - "flag": "-Wunused-parameter", - "snippet": " unsigned int partNumber,\n", - "source": "/mnt/host/tests/../cpp/SnowflakeAzureClient.hpp:39:18: warning: unused parameter 'partNumber' [-Wunused-parameter]\n unsigned int partNumber,\n" - }, - { - "file_path": "/mnt/host/tests/../cpp/SnowflakeAzureClient.hpp", - "line": 40, - "column": 18, - "message": " unused parameter 'key' ", - "flag": "-Wunused-parameter", - "snippet": " std::string &key,\n", - "source": "/mnt/host/tests/../cpp/SnowflakeAzureClient.hpp:40:18: warning: unused parameter 'key' [-Wunused-parameter]\n std::string &key,\n" - }, - { - "file_path": "/mnt/host/tests/../cpp/SnowflakeAzureClient.hpp", - "line": 41, - "column": 18, - "message": " unused parameter 'bucket' ", - "flag": "-Wunused-parameter", - "snippet": " std::string &bucket)\n", - "source": "/mnt/host/tests/../cpp/SnowflakeAzureClient.hpp:41:18: warning: unused parameter 'bucket' [-Wunused-parameter]\n std::string &bucket)\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_azure_client.cpp", - "line": 55, - "column": 51, - "message": " unused parameter 'command' ", - "flag": "-Wunused-parameter", - "snippet": " virtual ITransferResult *execute(std::string *command)\n", - "source": "/mnt/host/tests/test_unit_azure_client.cpp:55:51: warning: unused parameter 'command' [-Wunused-parameter]\n virtual ITransferResult *execute(std::string *command)\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_azure_client.cpp", - "line": 61, - "column": 62, - "message": " unused parameter 'uploadStream' ", - "flag": "-Wunused-parameter", - "snippet": " virtual void setUploadStream(std::basic_iostream * uploadStream,\n", - "source": "/mnt/host/tests/test_unit_azure_client.cpp:61:62: warning: unused parameter 'uploadStream' [-Wunused-parameter]\n virtual void setUploadStream(std::basic_iostream * uploadStream,\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_azure_client.cpp", - "line": 62, - "column": 41, - "message": " unused parameter 'dataSize' ", - "flag": "-Wunused-parameter", - "snippet": " size_t dataSize)\n", - "source": "/mnt/host/tests/test_unit_azure_client.cpp:62:41: warning: unused parameter 'dataSize' [-Wunused-parameter]\n size_t dataSize)\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_azure_client.cpp", - "line": 95, - "column": 40, - "message": " unused parameter 'sql' ", - "flag": "-Wunused-parameter", - "snippet": " bool parsePutGetCommand(std::string *sql,\n", - "source": "/mnt/host/tests/test_unit_azure_client.cpp:95:40: warning: unused parameter 'sql' [-Wunused-parameter]\n bool parsePutGetCommand(std::string *sql,\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_azure_client.cpp", - "line": 154, - "column": 46, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_azure_cafile_path_too_long(void ** unused)\n", - "source": "/mnt/host/tests/test_unit_azure_client.cpp:154:46: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_azure_cafile_path_too_long(void ** unused)\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_azure_client.cpp", - "line": 171, - "column": 44, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_azure_empty_cafile_noenv(void ** unused)\n", - "source": "/mnt/host/tests/test_unit_azure_client.cpp:171:44: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_azure_empty_cafile_noenv(void ** unused)\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_azure_client.cpp", - "line": 208, - "column": 47, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_azure_empty_cafile_from_env(void ** unused)\n", - "source": "/mnt/host/tests/test_unit_azure_client.cpp:208:47: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_azure_empty_cafile_from_env(void ** unused)\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_azure_client.cpp", - "line": 242, - "column": 54, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_azure_empty_cafile_from_global_env(void ** unused)\n", - "source": "/mnt/host/tests/test_unit_azure_client.cpp:242:54: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_azure_empty_cafile_from_global_env(void ** unused)\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_azure_client.cpp", - "line": 276, - "column": 75, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_azure_cafile_path_too_long_from_env_transferconfig_null(void ** unused)\n", - "source": "/mnt/host/tests/test_unit_azure_client.cpp:276:75: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_azure_cafile_path_too_long_from_env_transferconfig_null(void ** unused)\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_azure_client.cpp", - "line": 310, - "column": 82, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_azure_cafile_path_too_long_from_global_env_transferconfig_null(void ** unused)\n", - "source": "/mnt/host/tests/test_unit_azure_client.cpp:310:82: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_azure_cafile_path_too_long_from_global_env_transferconfig_null(void ** unused)\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_set_get_attributes.cpp", - "line": 83, - "column": 41, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_set_get_all_attributes(void **unused)\n", - "source": "/mnt/host/tests/test_unit_set_get_attributes.cpp:83:41: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_set_get_all_attributes(void **unused)\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_oob.cpp", - "line": 137, - "column": 25, - "message": " comparison of integer expressions of different signedness: 'int' and 'long unsigned int' ", - "flag": "-Wsign-compare", - "snippet": " for (evnt = 0; evnt < sizeof(testcase)/sizeof(SF_SETTINGS); ++evnt) {\n", - "source": "/mnt/host/tests/test_unit_oob.cpp:137:25: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare]\n for (evnt = 0; evnt < sizeof(testcase)/sizeof(SF_SETTINGS); ++evnt) {\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_oob.cpp", - "line": 207, - "column": 27, - "message": " comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} ", - "flag": "-Wsign-compare", - "snippet": " for (int j = 0; j < SF_SENSITIVE_KEYS.size(); ++j) {\n", - "source": "/mnt/host/tests/test_unit_oob.cpp:207:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare]\n for (int j = 0; j < SF_SENSITIVE_KEYS.size(); ++j) {\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_oob.cpp", - "line": 230, - "column": 29, - "message": " comparison of integer expressions of different signedness: 'int' and 'long unsigned int' ", - "flag": "-Wsign-compare", - "snippet": " for (int evnt = 0; evnt < sizeof(dsnParameters)/sizeof(SF_PAIR); ++evnt) {\n", - "source": "/mnt/host/tests/test_unit_oob.cpp:230:29: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare]\n for (int evnt = 0; evnt < sizeof(dsnParameters)/sizeof(SF_PAIR); ++evnt) {\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_oob.cpp", - "line": 238, - "column": 27, - "message": " comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} ", - "flag": "-Wsign-compare", - "snippet": " for (int i = 0; i < SF_SENSITIVE_KEYS.size(); ++i) {\n", - "source": "/mnt/host/tests/test_unit_oob.cpp:238:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare]\n for (int i = 0; i < SF_SENSITIVE_KEYS.size(); ++i) {\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_oob.cpp", - "line": 297, - "column": 23, - "message": " comparison of integer expressions of different signedness: 'int' and 'long unsigned int' ", - "flag": "-Wsign-compare", - "snippet": " for (int i = 0; i < sizeof(simbaParameters)/sizeof(SF_PAIR); ++i) {\n", - "source": "/mnt/host/tests/test_unit_oob.cpp:297:23: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare]\n for (int i = 0; i < sizeof(simbaParameters)/sizeof(SF_PAIR); ++i) {\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_proxy.cpp", - "line": 18, - "column": 21, - "message": " unused parameter 'scheme' ", - "flag": "-Wunused-parameter", - "snippet": " Proxy::Protocol scheme,\n", - "source": "/mnt/host/tests/test_unit_proxy.cpp:18:21: warning: unused parameter 'scheme' [-Wunused-parameter]\n Proxy::Protocol scheme,\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_proxy.cpp", - "line": 36, - "column": 37, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_proxy_machine_only(void **unused)\n", - "source": "/mnt/host/tests/test_unit_proxy.cpp:36:37: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_proxy_machine_only(void **unused)\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_proxy.cpp", - "line": 41, - "column": 41, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_proxy_machine_and_port(void **unused)\n", - "source": "/mnt/host/tests/test_unit_proxy.cpp:41:41: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_proxy_machine_and_port(void **unused)\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_proxy.cpp", - "line": 46, - "column": 43, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_proxy_machine_and_scheme(void **unused)\n", - "source": "/mnt/host/tests/test_unit_proxy.cpp:46:43: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_proxy_machine_and_scheme(void **unused)\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_proxy.cpp", - "line": 51, - "column": 44, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_proxy_machine_port_scheme(void **unused)\n", - "source": "/mnt/host/tests/test_unit_proxy.cpp:51:44: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_proxy_machine_port_scheme(void **unused)\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_proxy.cpp", - "line": 56, - "column": 28, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_proxy_all(void **unused)\n", - "source": "/mnt/host/tests/test_unit_proxy.cpp:56:28: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_proxy_all(void **unused)\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_proxy.cpp", - "line": 62, - "column": 30, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_proxy_empty(void **unused)\n", - "source": "/mnt/host/tests/test_unit_proxy.cpp:62:30: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_proxy_empty(void **unused)\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_proxy.cpp", - "line": 67, - "column": 43, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_allproxy_noproxy_fromenv(void **unused)\n", - "source": "/mnt/host/tests/test_unit_proxy.cpp:67:43: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_allproxy_noproxy_fromenv(void **unused)\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_proxy.cpp", - "line": 76, - "column": 37, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_httpsproxy_fromenv(void **unused)\n", - "source": "/mnt/host/tests/test_unit_proxy.cpp:76:37: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_httpsproxy_fromenv(void **unused)\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_proxy.cpp", - "line": 83, - "column": 36, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_httpproxy_fromenv(void **unused)\n", - "source": "/mnt/host/tests/test_unit_proxy.cpp:83:36: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_httpproxy_fromenv(void **unused)\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_proxy.cpp", - "line": 90, - "column": 34, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_noproxy_fromenv(void **unused)\n", - "source": "/mnt/host/tests/test_unit_proxy.cpp:90:34: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_noproxy_fromenv(void **unused)\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_query_context_cache.cpp", - "line": 99, - "column": 28, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_is_empty(void ** unused)\n", - "source": "/mnt/host/tests/test_unit_query_context_cache.cpp:99:28: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_is_empty(void ** unused)\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_query_context_cache.cpp", - "line": 106, - "column": 34, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_with_some_data(void ** unused)\n", - "source": "/mnt/host/tests/test_unit_query_context_cache.cpp:106:34: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_with_some_data(void ** unused)\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_query_context_cache.cpp", - "line": 114, - "column": 50, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_with_some_data_in_random_order(void ** unused)\n", - "source": "/mnt/host/tests/test_unit_query_context_cache.cpp:114:50: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_with_some_data_in_random_order(void ** unused)\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_query_context_cache.cpp", - "line": 122, - "column": 38, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_more_than_capacity(void ** unused)\n", - "source": "/mnt/host/tests/test_unit_query_context_cache.cpp:122:38: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_more_than_capacity(void ** unused)\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_query_context_cache.cpp", - "line": 137, - "column": 36, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_update_timestamp(void ** unused)\n", - "source": "/mnt/host/tests/test_unit_query_context_cache.cpp:137:36: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_update_timestamp(void ** unused)\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_query_context_cache.cpp", - "line": 156, - "column": 35, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_update_priority(void ** unused)\n", - "source": "/mnt/host/tests/test_unit_query_context_cache.cpp:156:35: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_update_priority(void ** unused)\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_query_context_cache.cpp", - "line": 187, - "column": 37, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_add_same_priority(void ** unused)\n", - "source": "/mnt/host/tests/test_unit_query_context_cache.cpp:187:37: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_add_same_priority(void ** unused)\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_query_context_cache.cpp", - "line": 205, - "column": 51, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_add_same_id_but_stale_timestamp(void ** unused)\n", - "source": "/mnt/host/tests/test_unit_query_context_cache.cpp:205:51: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_add_same_id_but_stale_timestamp(void ** unused)\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_query_context_cache.cpp", - "line": 220, - "column": 46, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_empty_cache_with_null_data(void ** unused)\n", - "source": "/mnt/host/tests/test_unit_query_context_cache.cpp:220:46: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_empty_cache_with_null_data(void ** unused)\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_query_context_cache.cpp", - "line": 231, - "column": 56, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_empty_cache_with_empty_response_data(void ** unused)\n", - "source": "/mnt/host/tests/test_unit_query_context_cache.cpp:231:56: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_empty_cache_with_empty_response_data(void ** unused)\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_query_context_cache.cpp", - "line": 242, - "column": 67, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_serialize_request_and_deserialize_response_data(void ** unused)\n", - "source": "/mnt/host/tests/test_unit_query_context_cache.cpp:242:67: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_serialize_request_and_deserialize_response_data(void ** unused)\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_query_context_cache.cpp", - "line": 260, - "column": 86, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_serialize_request_and_deserialize_response_data_with_empty_context(void ** unused)\n", - "source": "/mnt/host/tests/test_unit_query_context_cache.cpp:260:86: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_serialize_request_and_deserialize_response_data_with_empty_context(void ** unused)\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_query_context_cache.cpp", - "line": 277, - "column": 28, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " static int gr_setup(void **unused)\n", - "source": "/mnt/host/tests/test_unit_query_context_cache.cpp:277:28: warning: unused parameter 'unused' [-Wunused-parameter]\n static int gr_setup(void **unused)\n" - }, - { - "file_path": "/mnt/host/tests/test_jwt.cpp", - "line": 171, - "column": 38, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_missing_private_key(void **unused) {\n", - "source": "/mnt/host/tests/test_jwt.cpp:171:38: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_missing_private_key(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_jwt.cpp", - "line": 192, - "column": 34, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_unencrypted_pem(void **unused) {\n", - "source": "/mnt/host/tests/test_jwt.cpp:192:34: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_unencrypted_pem(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_jwt.cpp", - "line": 217, - "column": 32, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_encrypted_pem(void **unused) {\n", - "source": "/mnt/host/tests/test_jwt.cpp:217:32: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_encrypted_pem(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_jwt.cpp", - "line": 279, - "column": 24, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_renew(void **unused) {\n", - "source": "/mnt/host/tests/test_jwt.cpp:279:24: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_renew(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_thread_pool.cpp", - "line": 10, - "column": 30, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_thread_pool(void **unused)\n", - "source": "/mnt/host/tests/test_unit_thread_pool.cpp:10:30: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_thread_pool(void **unused)\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_put_get_gcs.cpp", - "line": 170, - "column": 8, - "message": " 'MockedGCSStatement::m_isPut' will be initialized after ", - "flag": "-Wreorder", - "snippet": " bool m_isPut;\n", - "source": "/mnt/host/tests/test_unit_put_get_gcs.cpp:170:8: warning: 'MockedGCSStatement::m_isPut' will be initialized after [-Wreorder]\n bool m_isPut;\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_put_get_gcs.cpp", - "line": 38, - "column": 43, - "message": " base 'Snowflake::Client::IStatementPutGet' ", - "flag": "-Wreorder", - "snippet": " Snowflake::Client::IStatementPutGet()\n", - "source": "/mnt/host/tests/test_unit_put_get_gcs.cpp:38:43: warning: base 'Snowflake::Client::IStatementPutGet' [-Wreorder]\n Snowflake::Client::IStatementPutGet()\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_put_get_gcs.cpp", - "line": 34, - "column": 3, - "message": " when initialized here ", - "flag": "-Wreorder", - "snippet": " MockedGCSStatement(bool useGcsToken)\n", - "source": "/mnt/host/tests/test_unit_put_get_gcs.cpp:34:3: warning: when initialized here [-Wreorder]\n MockedGCSStatement(bool useGcsToken)\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_put_get_gcs.cpp", - "line": 106, - "column": 23, - "message": " comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} ", - "flag": "-Wsign-compare", - "snippet": " for (int i = 0; i < headers.size(); i++)\n", - "source": "/mnt/host/tests/test_unit_put_get_gcs.cpp:106:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare]\n for (int i = 0; i < headers.size(); i++)\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_put_get_gcs.cpp", - "line": 97, - "column": 52, - "message": " unused parameter 'payload' ", - "flag": "-Wunused-parameter", - "snippet": " std::basic_iostream& payload,\n", - "source": "/mnt/host/tests/test_unit_put_get_gcs.cpp:97:52: warning: unused parameter 'payload' [-Wunused-parameter]\n std::basic_iostream& payload,\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_put_get_gcs.cpp", - "line": 98, - "column": 32, - "message": " unused parameter 'payloadLen' ", - "flag": "-Wunused-parameter", - "snippet": " size_t payloadLen,\n", - "source": "/mnt/host/tests/test_unit_put_get_gcs.cpp:98:32: warning: unused parameter 'payloadLen' [-Wunused-parameter]\n size_t payloadLen,\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_put_get_gcs.cpp", - "line": 99, - "column": 38, - "message": " unused parameter 'responseHeaders' ", - "flag": "-Wunused-parameter", - "snippet": " std::string& responseHeaders) override\n", - "source": "/mnt/host/tests/test_unit_put_get_gcs.cpp:99:38: warning: unused parameter 'responseHeaders' [-Wunused-parameter]\n std::string& responseHeaders) override\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_put_get_gcs.cpp", - "line": 144, - "column": 25, - "message": " comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} ", - "flag": "-Wsign-compare", - "snippet": " for (int i = 0; i < headers.size(); i++)\n", - "source": "/mnt/host/tests/test_unit_put_get_gcs.cpp:144:25: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare]\n for (int i = 0; i < headers.size(); i++)\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_put_get_gcs.cpp", - "line": 117, - "column": 52, - "message": " unused parameter 'payload' ", - "flag": "-Wunused-parameter", - "snippet": " std::basic_iostream* payload,\n", - "source": "/mnt/host/tests/test_unit_put_get_gcs.cpp:117:52: warning: unused parameter 'payload' [-Wunused-parameter]\n std::basic_iostream* payload,\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_put_get_gcs.cpp", - "line": 232, - "column": 45, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_simple_put_gcs_with_token(void ** unused)\n", - "source": "/mnt/host/tests/test_unit_put_get_gcs.cpp:232:45: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_simple_put_gcs_with_token(void ** unused)\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_put_get_gcs.cpp", - "line": 240, - "column": 45, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_simple_get_gcs_with_token(void ** unused)\n", - "source": "/mnt/host/tests/test_unit_put_get_gcs.cpp:240:45: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_simple_get_gcs_with_token(void ** unused)\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_put_get_gcs.cpp", - "line": 248, - "column": 52, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_simple_put_gcs_with_presignedurl(void ** unused)\n", - "source": "/mnt/host/tests/test_unit_put_get_gcs.cpp:248:52: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_simple_put_gcs_with_presignedurl(void ** unused)\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_put_get_gcs.cpp", - "line": 256, - "column": 52, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_simple_get_gcs_with_presignedurl(void ** unused)\n", - "source": "/mnt/host/tests/test_unit_put_get_gcs.cpp:256:52: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_simple_get_gcs_with_presignedurl(void ** unused)\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_put_get_gcs.cpp", - "line": 261, - "column": 28, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " static int gr_setup(void **unused)\n", - "source": "/mnt/host/tests/test_unit_put_get_gcs.cpp:261:28: warning: unused parameter 'unused' [-Wunused-parameter]\n static int gr_setup(void **unused)\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_snowflake_types_to_string.cpp", - "line": 53, - "column": 43, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_snowflake_type_to_string(void **unused)\n", - "source": "/mnt/host/tests/test_unit_snowflake_types_to_string.cpp:53:43: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_snowflake_type_to_string(void **unused)\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_snowflake_types_to_string.cpp", - "line": 65, - "column": 45, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_snowflake_c_type_to_string(void **unused)\n", - "source": "/mnt/host/tests/test_unit_snowflake_types_to_string.cpp:65:45: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_snowflake_c_type_to_string(void **unused)\n" - }, - { - "file_path": "/mnt/host/tests/test_bool.c", - "line": 157, - "column": 29, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_bool_arrow(void **unused) {\n", - "source": "/mnt/host/tests/test_bool.c:157:29: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_bool_arrow(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_bool.c", - "line": 161, - "column": 28, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_bool_json(void **unused) {\n", - "source": "/mnt/host/tests/test_bool.c:161:28: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_bool_json(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_binary.c", - "line": 138, - "column": 34, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_selectbin_arrow(void **unused) {\n", - "source": "/mnt/host/tests/test_binary.c:138:34: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_selectbin_arrow(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_binary.c", - "line": 142, - "column": 33, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_selectbin_json(void **unused) {\n", - "source": "/mnt/host/tests/test_binary.c:142:33: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_selectbin_json(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_base64.cpp", - "line": 169, - "column": 32, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_base64_coding(void **unused)\n", - "source": "/mnt/host/tests/test_unit_base64.cpp:169:32: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_base64_coding(void **unused)\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_base64.cpp", - "line": 228, - "column": 25, - "message": " comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} ", - "flag": "-Wsign-compare", - "snippet": " for (int i = 0; i < decodeActual.size(); i++)\n", - "source": "/mnt/host/tests/test_unit_base64.cpp:228:25: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare]\n for (int i = 0; i < decodeActual.size(); i++)\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_base64.cpp", - "line": 242, - "column": 36, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_base64_url_coding(void **unused)\n", - "source": "/mnt/host/tests/test_unit_base64.cpp:242:36: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_base64_url_coding(void **unused)\n" - }, - { - "file_path": "/mnt/host/tests/test_timezone.c", - "line": 8, - "column": 27, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_timezone(void **unused) {\n", - "source": "/mnt/host/tests/test_timezone.c:8:27: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_timezone(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_transaction.c", - "line": 7, - "column": 30, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_transaction(void **unused) {\n", - "source": "/mnt/host/tests/test_transaction.c:7:30: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_transaction(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_large_result_set.c", - "line": 76, - "column": 41, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_large_result_set_arrow(void **unused) {\n", - "source": "/mnt/host/tests/test_large_result_set.c:76:41: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_large_result_set_arrow(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_large_result_set.c", - "line": 80, - "column": 40, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_large_result_set_json(void **unused) {\n", - "source": "/mnt/host/tests/test_large_result_set.c:80:40: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_large_result_set_json(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_connect_parameters.c", - "line": 11, - "column": 53, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_connection_parameters_default_port(void **unused) {\n", - "source": "/mnt/host/tests/test_unit_connect_parameters.c:11:53: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_connection_parameters_default_port(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_connect_parameters.c", - "line": 26, - "column": 48, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_connection_parameters_no_host(void **unused) {\n", - "source": "/mnt/host/tests/test_unit_connect_parameters.c:26:48: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_connection_parameters_no_host(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_connect_parameters.c", - "line": 41, - "column": 52, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_connection_parameters_with_region(void **unused) {\n", - "source": "/mnt/host/tests/test_unit_connect_parameters.c:41:52: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_connection_parameters_with_region(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_connect_parameters.c", - "line": 58, - "column": 55, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_connection_parameters_with_cn_region(void **unused) {\n", - "source": "/mnt/host/tests/test_unit_connect_parameters.c:58:55: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_connection_parameters_with_cn_region(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_connect_parameters.c", - "line": 75, - "column": 57, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_connection_parameters_including_region(void **unused) {\n", - "source": "/mnt/host/tests/test_unit_connect_parameters.c:75:57: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_connection_parameters_including_region(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_connect_parameters.c", - "line": 96, - "column": 71, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_connection_parameters_including_region_including_dot(void **unused) {\n", - "source": "/mnt/host/tests/test_unit_connect_parameters.c:96:71: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_connection_parameters_including_region_including_dot(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_connect_parameters.c", - "line": 114, - "column": 61, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_connection_parameters_for_global_url_basic(void **unused) {\n", - "source": "/mnt/host/tests/test_unit_connect_parameters.c:114:61: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_connection_parameters_for_global_url_basic(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_connect_parameters.c", - "line": 132, - "column": 60, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_connection_parameters_for_global_url_full(void **unused) {\n", - "source": "/mnt/host/tests/test_unit_connect_parameters.c:132:60: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_connection_parameters_for_global_url_full(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_connect_parameters.c", - "line": 153, - "column": 71, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_connection_parameters_for_global_with_account_dashes(void **unused) {\n", - "source": "/mnt/host/tests/test_unit_connect_parameters.c:153:71: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_connection_parameters_for_global_with_account_dashes(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_connect_parameters.c", - "line": 174, - "column": 52, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_connection_parameters_application(void **unused) {\n", - "source": "/mnt/host/tests/test_unit_connect_parameters.c:174:52: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_connection_parameters_application(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_put_get_fips.cpp", - "line": 78, - "column": 51, - "message": " unused parameter 'command' ", - "flag": "-Wunused-parameter", - "snippet": " virtual ITransferResult *execute(std::string *command)\n", - "source": "/mnt/host/tests/test_unit_put_get_fips.cpp:78:51: warning: unused parameter 'command' [-Wunused-parameter]\n virtual ITransferResult *execute(std::string *command)\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_put_get_fips.cpp", - "line": 84, - "column": 62, - "message": " unused parameter 'uploadStream' ", - "flag": "-Wunused-parameter", - "snippet": " virtual void setUploadStream(std::basic_iostream * uploadStream,\n", - "source": "/mnt/host/tests/test_unit_put_get_fips.cpp:84:62: warning: unused parameter 'uploadStream' [-Wunused-parameter]\n virtual void setUploadStream(std::basic_iostream * uploadStream,\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_put_get_fips.cpp", - "line": 85, - "column": 41, - "message": " unused parameter 'dataSize' ", - "flag": "-Wunused-parameter", - "snippet": " size_t dataSize)\n", - "source": "/mnt/host/tests/test_unit_put_get_fips.cpp:85:41: warning: unused parameter 'dataSize' [-Wunused-parameter]\n size_t dataSize)\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_put_get_fips.cpp", - "line": 125, - "column": 40, - "message": " unused parameter 'sql' ", - "flag": "-Wunused-parameter", - "snippet": " bool parsePutGetCommand(std::string *sql,\n", - "source": "/mnt/host/tests/test_unit_put_get_fips.cpp:125:40: warning: unused parameter 'sql' [-Wunused-parameter]\n bool parsePutGetCommand(std::string *sql,\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_put_get_fips.cpp", - "line": 210, - "column": 45, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_simple_put_stage_endpoint(void ** unused)\n", - "source": "/mnt/host/tests/test_unit_put_get_fips.cpp:210:45: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_simple_put_stage_endpoint(void ** unused)\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_put_get_fips.cpp", - "line": 239, - "column": 44, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_simple_put_stage_regional(void** unused)\n", - "source": "/mnt/host/tests/test_unit_put_get_fips.cpp:239:44: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_simple_put_stage_regional(void** unused)\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_put_get_fips.cpp", - "line": 250, - "column": 40, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_s3_cafile_path_empty(void ** unused)\n", - "source": "/mnt/host/tests/test_unit_put_get_fips.cpp:250:40: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_s3_cafile_path_empty(void ** unused)\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_put_get_fips.cpp", - "line": 263, - "column": 43, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_s3_cafile_path_too_long(void ** unused)\n", - "source": "/mnt/host/tests/test_unit_put_get_fips.cpp:263:43: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_s3_cafile_path_too_long(void ** unused)\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_put_get_fips.cpp", - "line": 279, - "column": 50, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_s3_global_cafile_path_too_long(void ** unused)\n", - "source": "/mnt/host/tests/test_unit_put_get_fips.cpp:279:50: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_s3_global_cafile_path_too_long(void ** unused)\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_put_get_fips.cpp", - "line": 304, - "column": 28, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " static int gr_setup(void **unused)\n", - "source": "/mnt/host/tests/test_unit_put_get_fips.cpp:304:28: warning: unused parameter 'unused' [-Wunused-parameter]\n static int gr_setup(void **unused)\n" - }, - { - "file_path": "/mnt/host/tests/test_stmt_functions.c", - "line": 9, - "column": 24, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_sfqid(void **unused) {\n", - "source": "/mnt/host/tests/test_stmt_functions.c:9:24: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_sfqid(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_oauth.c", - "line": 13, - "column": 38, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_oauth_with_no_token(void** unused)\n", - "source": "/mnt/host/tests/test_unit_oauth.c:13:38: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_oauth_with_no_token(void** unused)\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_oauth.c", - "line": 33, - "column": 37, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_json_data_in_oauth(void** unused)\n", - "source": "/mnt/host/tests/test_unit_oauth.c:33:37: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_json_data_in_oauth(void** unused)\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_cred_renew.cpp", - "line": 32, - "column": 48, - "message": " unused parameter 'sql' ", - "flag": "-Wunused-parameter", - "snippet": " virtual bool parsePutGetCommand(std::string *sql,\n", - "source": "/mnt/host/tests/test_unit_cred_renew.cpp:32:48: warning: unused parameter 'sql' [-Wunused-parameter]\n virtual bool parsePutGetCommand(std::string *sql,\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_cred_renew.cpp", - "line": 33, - "column": 56, - "message": " unused parameter 'putGetParseResponse' ", - "flag": "-Wunused-parameter", - "snippet": " PutGetParseResponse *putGetParseResponse)\n", - "source": "/mnt/host/tests/test_unit_cred_renew.cpp:33:56: warning: unused parameter 'putGetParseResponse' [-Wunused-parameter]\n PutGetParseResponse *putGetParseResponse)\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_cred_renew.cpp", - "line": 56, - "column": 48, - "message": " unused parameter 'sql' ", - "flag": "-Wunused-parameter", - "snippet": " virtual bool parsePutGetCommand(std::string *sql,\n", - "source": "/mnt/host/tests/test_unit_cred_renew.cpp:56:48: warning: unused parameter 'sql' [-Wunused-parameter]\n virtual bool parsePutGetCommand(std::string *sql,\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_cred_renew.cpp", - "line": 107, - "column": 48, - "message": " unused parameter 'sql' ", - "flag": "-Wunused-parameter", - "snippet": " virtual bool parsePutGetCommand(std::string *sql,\n", - "source": "/mnt/host/tests/test_unit_cred_renew.cpp:107:48: warning: unused parameter 'sql' [-Wunused-parameter]\n virtual bool parsePutGetCommand(std::string *sql,\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_cred_renew.cpp", - "line": 146, - "column": 48, - "message": " unused parameter 'sql' ", - "flag": "-Wunused-parameter", - "snippet": " virtual bool parsePutGetCommand(std::string *sql,\n", - "source": "/mnt/host/tests/test_unit_cred_renew.cpp:146:48: warning: unused parameter 'sql' [-Wunused-parameter]\n virtual bool parsePutGetCommand(std::string *sql,\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_cred_renew.cpp", - "line": 193, - "column": 60, - "message": " unused parameter 'fileMetadata' ", - "flag": "-Wunused-parameter", - "snippet": " virtual RemoteStorageRequestOutcome upload(FileMetadata *fileMetadata,\n", - "source": "/mnt/host/tests/test_unit_cred_renew.cpp:193:60: warning: unused parameter 'fileMetadata' [-Wunused-parameter]\n virtual RemoteStorageRequestOutcome upload(FileMetadata *fileMetadata,\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_cred_renew.cpp", - "line": 194, - "column": 61, - "message": " unused parameter 'dataStream' ", - "flag": "-Wunused-parameter", - "snippet": " std::basic_iostream *dataStream)\n", - "source": "/mnt/host/tests/test_unit_cred_renew.cpp:194:61: warning: unused parameter 'dataStream' [-Wunused-parameter]\n std::basic_iostream *dataStream)\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_cred_renew.cpp", - "line": 210, - "column": 19, - "message": " unused parameter 'filePathFull' ", - "flag": "-Wunused-parameter", - "snippet": " std::string * filePathFull, FileMetadata *fileMetadata)\n", - "source": "/mnt/host/tests/test_unit_cred_renew.cpp:210:19: warning: unused parameter 'filePathFull' [-Wunused-parameter]\n std::string * filePathFull, FileMetadata *fileMetadata)\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_cred_renew.cpp", - "line": 232, - "column": 63, - "message": " unused parameter 'fileMetadata' ", - "flag": "-Wunused-parameter", - "snippet": " virtual RemoteStorageRequestOutcome download(FileMetadata * fileMetadata,\n", - "source": "/mnt/host/tests/test_unit_cred_renew.cpp:232:63: warning: unused parameter 'fileMetadata' [-Wunused-parameter]\n virtual RemoteStorageRequestOutcome download(FileMetadata * fileMetadata,\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_cred_renew.cpp", - "line": 233, - "column": 75, - "message": " unused parameter 'dataStream' ", - "flag": "-Wunused-parameter", - "snippet": " std::basic_iostream* dataStream)\n", - "source": "/mnt/host/tests/test_unit_cred_renew.cpp:233:75: warning: unused parameter 'dataStream' [-Wunused-parameter]\n std::basic_iostream* dataStream)\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_cred_renew.cpp", - "line": 275, - "column": 60, - "message": " unused parameter 'fileMetadata' ", - "flag": "-Wunused-parameter", - "snippet": " virtual RemoteStorageRequestOutcome upload(FileMetadata *fileMetadata,\n", - "source": "/mnt/host/tests/test_unit_cred_renew.cpp:275:60: warning: unused parameter 'fileMetadata' [-Wunused-parameter]\n virtual RemoteStorageRequestOutcome upload(FileMetadata *fileMetadata,\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_cred_renew.cpp", - "line": 276, - "column": 61, - "message": " unused parameter 'dataStream' ", - "flag": "-Wunused-parameter", - "snippet": " std::basic_iostream *dataStream)\n", - "source": "/mnt/host/tests/test_unit_cred_renew.cpp:276:61: warning: unused parameter 'dataStream' [-Wunused-parameter]\n std::basic_iostream *dataStream)\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_cred_renew.cpp", - "line": 282, - "column": 63, - "message": " unused parameter 'fileMetadata' ", - "flag": "-Wunused-parameter", - "snippet": " virtual RemoteStorageRequestOutcome download(FileMetadata * fileMetadata,\n", - "source": "/mnt/host/tests/test_unit_cred_renew.cpp:282:63: warning: unused parameter 'fileMetadata' [-Wunused-parameter]\n virtual RemoteStorageRequestOutcome download(FileMetadata * fileMetadata,\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_cred_renew.cpp", - "line": 283, - "column": 75, - "message": " unused parameter 'dataStream' ", - "flag": "-Wunused-parameter", - "snippet": " std::basic_iostream* dataStream)\n", - "source": "/mnt/host/tests/test_unit_cred_renew.cpp:283:75: warning: unused parameter 'dataStream' [-Wunused-parameter]\n std::basic_iostream* dataStream)\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_cred_renew.cpp", - "line": 290, - "column": 19, - "message": " unused parameter 'filePathFull' ", - "flag": "-Wunused-parameter", - "snippet": " std::string * filePathFull, FileMetadata *fileMetadata)\n", - "source": "/mnt/host/tests/test_unit_cred_renew.cpp:290:19: warning: unused parameter 'filePathFull' [-Wunused-parameter]\n std::string * filePathFull, FileMetadata *fileMetadata)\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_cred_renew.cpp", - "line": 327, - "column": 43, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_token_renew_small_files(void ** unused)\n", - "source": "/mnt/host/tests/test_unit_cred_renew.cpp:327:43: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_token_renew_small_files(void ** unused)\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_cred_renew.cpp", - "line": 332, - "column": 42, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_token_renew_large_file(void ** unused)\n", - "source": "/mnt/host/tests/test_unit_cred_renew.cpp:332:42: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_token_renew_large_file(void ** unused)\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_cred_renew.cpp", - "line": 349, - "column": 46, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_token_renew_get_remote_meta(void **unused)\n", - "source": "/mnt/host/tests/test_unit_cred_renew.cpp:349:46: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_token_renew_get_remote_meta(void **unused)\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_cred_renew.cpp", - "line": 387, - "column": 22, - "message": " unused variable 'result' ", - "flag": "-Wunused-variable", - "snippet": " ITransferResult *result = agent.execute(&cmd);\n", - "source": "/mnt/host/tests/test_unit_cred_renew.cpp:387:22: warning: unused variable 'result' [-Wunused-variable]\n ITransferResult *result = agent.execute(&cmd);\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_cred_renew.cpp", - "line": 375, - "column": 34, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_parse_exception(void **unused)\n", - "source": "/mnt/host/tests/test_unit_cred_renew.cpp:375:34: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_parse_exception(void **unused)\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_cred_renew.cpp", - "line": 416, - "column": 22, - "message": " unused variable 'result' ", - "flag": "-Wunused-variable", - "snippet": " ITransferResult *result = agent.execute(&cmd);\n", - "source": "/mnt/host/tests/test_unit_cred_renew.cpp:416:22: warning: unused variable 'result' [-Wunused-variable]\n ITransferResult *result = agent.execute(&cmd);\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_cred_renew.cpp", - "line": 400, - "column": 44, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_transfer_exception_upload(void **unused)\n", - "source": "/mnt/host/tests/test_unit_cred_renew.cpp:400:44: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_transfer_exception_upload(void **unused)\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_cred_renew.cpp", - "line": 425, - "column": 46, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_transfer_exception_download(void **unused)\n", - "source": "/mnt/host/tests/test_unit_cred_renew.cpp:425:46: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_transfer_exception_download(void **unused)\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_cred_renew.cpp", - "line": 447, - "column": 38, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " static int large_file_removal(void **unused)\n", - "source": "/mnt/host/tests/test_unit_cred_renew.cpp:447:38: warning: unused parameter 'unused' [-Wunused-parameter]\n static int large_file_removal(void **unused)\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_cred_renew.cpp", - "line": 456, - "column": 28, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " static int gr_setup(void **unused)\n", - "source": "/mnt/host/tests/test_unit_cred_renew.cpp:456:28: warning: unused parameter 'unused' [-Wunused-parameter]\n static int gr_setup(void **unused)\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_cred_renew.cpp", - "line": 447, - "column": 12, - "message": " 'int large_file_removal(void**)' defined but not used ", - "flag": "-Wunused-function", - "snippet": " static int large_file_removal(void **unused)\n", - "source": "/mnt/host/tests/test_unit_cred_renew.cpp:447:12: warning: 'int large_file_removal(void**)' defined but not used [-Wunused-function]\n static int large_file_removal(void **unused)\n" - }, - { - "file_path": "/mnt/host/tests/test_variant.c", - "line": 126, - "column": 32, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_variant_arrow(void **unused) {\n", - "source": "/mnt/host/tests/test_variant.c:126:32: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_variant_arrow(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_variant.c", - "line": 130, - "column": 31, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_variant_json(void **unused) {\n", - "source": "/mnt/host/tests/test_variant.c:130:31: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_variant_json(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_time.c", - "line": 152, - "column": 29, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_time_arrow(void **unused) {\n", - "source": "/mnt/host/tests/test_time.c:152:29: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_time_arrow(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_time.c", - "line": 156, - "column": 28, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_time_json(void **unused) {\n", - "source": "/mnt/host/tests/test_time.c:156:28: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_time_json(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_timestamp_ntz.c", - "line": 189, - "column": 38, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_timestamp_ntz_arrow(void **unused) {\n", - "source": "/mnt/host/tests/test_timestamp_ntz.c:189:38: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_timestamp_ntz_arrow(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_timestamp_ntz.c", - "line": 194, - "column": 37, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_timestamp_ntz_json(void **unused) {\n", - "source": "/mnt/host/tests/test_timestamp_ntz.c:194:37: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_timestamp_ntz_json(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_ping_pong.c", - "line": 9, - "column": 28, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_ping_pong(void **unused) {\n", - "source": "/mnt/host/tests/test_ping_pong.c:9:28: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_ping_pong(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_retry_context.c", - "line": 31, - "column": 5, - "message": " missing initializer for field 'start_time' of 'RETRY_CONTEXT' {aka 'struct RETRY_CONTEXT'} ", - "flag": "-Wmissing-field-initializers", - "snippet": " };\n", - "source": "/mnt/host/tests/test_unit_retry_context.c:31:5: warning: missing initializer for field 'start_time' of 'RETRY_CONTEXT' {aka 'struct RETRY_CONTEXT'} [-Wmissing-field-initializers]\n };\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_retry_context.c", - "line": 22, - "column": 37, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_update_url_no_guid(void **unused) {\n", - "source": "/mnt/host/tests/test_unit_retry_context.c:22:37: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_update_url_no_guid(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_retry_context.c", - "line": 47, - "column": 3, - "message": " missing initializer for field 'start_time' of 'RETRY_CONTEXT' {aka 'struct RETRY_CONTEXT'} ", - "flag": "-Wmissing-field-initializers", - "snippet": " };\n", - "source": "/mnt/host/tests/test_unit_retry_context.c:47:3: warning: missing initializer for field 'start_time' of 'RETRY_CONTEXT' {aka 'struct RETRY_CONTEXT'} [-Wmissing-field-initializers]\n };\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_retry_context.c", - "line": 38, - "column": 45, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_update_other_url_with_guid(void **unused) {\n", - "source": "/mnt/host/tests/test_unit_retry_context.c:38:45: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_update_other_url_with_guid(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_retry_context.c", - "line": 64, - "column": 62, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_update_query_url_with_retry_reason_disabled(void **unused) {\n", - "source": "/mnt/host/tests/test_unit_retry_context.c:64:62: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_update_query_url_with_retry_reason_disabled(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_retry_context.c", - "line": 140, - "column": 61, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_update_query_url_with_retry_reason_enabled(void **unused) {\n", - "source": "/mnt/host/tests/test_unit_retry_context.c:140:61: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_update_query_url_with_retry_reason_enabled(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_retry_context.c", - "line": 245, - "column": 21, - "message": " comparison of integer expressions of different signedness: 'uint32' {aka 'unsigned int'} and 'int' ", - "flag": "-Wsign-compare", - "snippet": " if (total_backoff < SF_RETRY_TIMEOUT - delta)\n", - "source": "/mnt/host/tests/test_unit_retry_context.c:245:21: warning: comparison of integer expressions of different signedness: 'uint32' {aka 'unsigned int'} and 'int' [-Wsign-compare]\n if (total_backoff < SF_RETRY_TIMEOUT - delta)\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_retry_context.c", - "line": 222, - "column": 10, - "message": " unused variable 'backoff' ", - "flag": "-Wunused-variable", - "snippet": " uint32 backoff = SF_BACKOFF_BASE;\n", - "source": "/mnt/host/tests/test_unit_retry_context.c:222:10: warning: unused variable 'backoff' [-Wunused-variable]\n uint32 backoff = SF_BACKOFF_BASE;\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_retry_context.c", - "line": 207, - "column": 37, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_new_retry_strategy(void **unused) {\n", - "source": "/mnt/host/tests/test_unit_retry_context.c:207:37: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_new_retry_strategy(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_retry_context.c", - "line": 258, - "column": 39, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_retry_request_header(void **unused) {\n", - "source": "/mnt/host/tests/test_unit_retry_context.c:258:39: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_retry_request_header(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_connect_negative.c", - "line": 7, - "column": 42, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_connect_account_missing(void **unused) {\n", - "source": "/mnt/host/tests/test_connect_negative.c:7:42: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_connect_account_missing(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_connect_negative.c", - "line": 24, - "column": 39, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_connect_user_missing(void **unused) {\n", - "source": "/mnt/host/tests/test_connect_negative.c:24:39: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_connect_user_missing(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_connect_negative.c", - "line": 41, - "column": 43, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_connect_password_missing(void **unused) {\n", - "source": "/mnt/host/tests/test_connect_negative.c:41:43: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_connect_password_missing(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_connect_negative.c", - "line": 58, - "column": 43, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_connect_invalid_database(void **unused) {\n", - "source": "/mnt/host/tests/test_connect_negative.c:58:43: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_connect_invalid_database(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_connect_negative.c", - "line": 73, - "column": 41, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_connect_invalid_schema(void **unused) {\n", - "source": "/mnt/host/tests/test_connect_negative.c:73:41: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_connect_invalid_schema(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_connect_negative.c", - "line": 88, - "column": 44, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_connect_invalid_warehouse(void **unused) {\n", - "source": "/mnt/host/tests/test_connect_negative.c:88:44: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_connect_invalid_warehouse(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_connect_negative.c", - "line": 103, - "column": 39, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_connect_invalid_role(void **unused) {\n", - "source": "/mnt/host/tests/test_connect_negative.c:103:39: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_connect_invalid_role(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_connect_negative.c", - "line": 118, - "column": 40, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_connect_login_timeout(void** unused) {\n", - "source": "/mnt/host/tests/test_connect_negative.c:118:40: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_connect_login_timeout(void** unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_connect_negative.c", - "line": 138, - "column": 44, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_chunk_downloading_timeout(void** unused) {\n", - "source": "/mnt/host/tests/test_connect_negative.c:138:44: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_chunk_downloading_timeout(void** unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_null.c", - "line": 202, - "column": 29, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_null_arrow(void **unused) {\n", - "source": "/mnt/host/tests/test_null.c:202:29: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_null_arrow(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_null.c", - "line": 206, - "column": 28, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_null_json(void **unused) {\n", - "source": "/mnt/host/tests/test_null.c:206:28: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_null_json(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_error_handlings.c", - "line": 6, - "column": 31, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_syntax_error(void **unused) {\n", - "source": "/mnt/host/tests/test_error_handlings.c:6:31: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_syntax_error(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_error_handlings.c", - "line": 27, - "column": 37, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_incorrect_password(void **unused) {\n", - "source": "/mnt/host/tests/test_error_handlings.c:27:37: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_incorrect_password(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_connect.c", - "line": 10, - "column": 34, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_null_sf_connect(void **unused) {\n", - "source": "/mnt/host/tests/test_connect.c:10:34: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_null_sf_connect(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_connect.c", - "line": 20, - "column": 43, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_no_connection_parameters(void **unused) {\n", - "source": "/mnt/host/tests/test_connect.c:20:43: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_no_connection_parameters(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_connect.c", - "line": 32, - "column": 50, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_connect_with_minimum_parameters(void **unused) {\n", - "source": "/mnt/host/tests/test_connect.c:32:50: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_connect_with_minimum_parameters(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_connect.c", - "line": 64, - "column": 47, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_connect_with_full_parameters(void **unused) {\n", - "source": "/mnt/host/tests/test_connect.c:64:47: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_connect_with_full_parameters(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_connect.c", - "line": 78, - "column": 43, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_connect_with_disable_qcc(void **unused) {\n", - "source": "/mnt/host/tests/test_connect.c:78:43: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_connect_with_disable_qcc(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_connect.c", - "line": 100, - "column": 53, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_connect_with_include_retry_context(void **unused) {\n", - "source": "/mnt/host/tests/test_connect.c:100:53: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_connect_with_include_retry_context(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_connect.c", - "line": 156, - "column": 53, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_connect_with_ocsp_cache_server_off(void **unused) {\n", - "source": "/mnt/host/tests/test_connect.c:156:53: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_connect_with_ocsp_cache_server_off(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_connect.c", - "line": 174, - "column": 52, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_connect_with_ocsp_cache_server_on(void **unused) {\n", - "source": "/mnt/host/tests/test_connect.c:174:52: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_connect_with_ocsp_cache_server_on(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_connect.c", - "line": 196, - "column": 37, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_connect_with_proxy(void **unused) {\n", - "source": "/mnt/host/tests/test_connect.c:196:37: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_connect_with_proxy(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_bind_params.c", - "line": 10, - "column": 34, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_bind_parameters(void **unused) {\n", - "source": "/mnt/host/tests/test_bind_params.c:10:34: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_bind_parameters(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_mfa_auth.c", - "line": 13, - "column": 40, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_json_data_in_MFA_Auth(void **unused)\n", - "source": "/mnt/host/tests/test_unit_mfa_auth.c:13:40: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_json_data_in_MFA_Auth(void **unused)\n" - }, - { - "file_path": "/mnt/host/tests/test_bind_named_params.c", - "line": 10, - "column": 40, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_bind_named_parameters(void **unused) {\n", - "source": "/mnt/host/tests/test_bind_named_params.c:10:40: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_bind_named_parameters(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_change_current.c", - "line": 7, - "column": 40, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_change_current_schema(void **unused) {\n", - "source": "/mnt/host/tests/test_change_current.c:7:40: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_change_current_schema(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_perf_string_reads_and_writes.c", - "line": 78, - "column": 12, - "message": " unused variable 'len' ", - "flag": "-Wunused-variable", - "snippet": " size_t len;\n", - "source": "/mnt/host/tests/test_perf_string_reads_and_writes.c:78:12: warning: unused variable 'len' [-Wunused-variable]\n size_t len;\n" - }, - { - "file_path": "/mnt/host/tests/test_perf_string_reads_and_writes.c", - "line": 166, - "column": 9, - "message": " unused variable 'row' ", - "flag": "-Wunused-variable", - "snippet": " int row = 0;\n", - "source": "/mnt/host/tests/test_perf_string_reads_and_writes.c:166:9: warning: unused variable 'row' [-Wunused-variable]\n int row = 0;\n" - }, - { - "file_path": "/mnt/host/tests/test_perf_string_reads_and_writes.c", - "line": 214, - "column": 51, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_col_string_read_fixed_size_arrow(void **unused) {\n", - "source": "/mnt/host/tests/test_perf_string_reads_and_writes.c:214:51: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_col_string_read_fixed_size_arrow(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_perf_string_reads_and_writes.c", - "line": 218, - "column": 50, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_col_string_read_fixed_size_json(void **unused) {\n", - "source": "/mnt/host/tests/test_perf_string_reads_and_writes.c:218:50: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_col_string_read_fixed_size_json(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_perf_string_reads_and_writes.c", - "line": 222, - "column": 57, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_col_string_manipulate_fixed_size_arrow(void **unused) {\n", - "source": "/mnt/host/tests/test_perf_string_reads_and_writes.c:222:57: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_col_string_manipulate_fixed_size_arrow(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_perf_string_reads_and_writes.c", - "line": 226, - "column": 56, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_col_string_manipulate_fixed_size_json(void **unused) {\n", - "source": "/mnt/host/tests/test_perf_string_reads_and_writes.c:226:56: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_col_string_manipulate_fixed_size_json(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_perf_string_reads_and_writes.c", - "line": 230, - "column": 68, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_col_buffer_copy_unknown_size_dynamic_memory_arrow(void **unused) {\n", - "source": "/mnt/host/tests/test_perf_string_reads_and_writes.c:230:68: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_col_buffer_copy_unknown_size_dynamic_memory_arrow(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_perf_string_reads_and_writes.c", - "line": 234, - "column": 67, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_col_buffer_copy_unknown_size_dynamic_memory_json(void **unused) {\n", - "source": "/mnt/host/tests/test_perf_string_reads_and_writes.c:234:67: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_col_buffer_copy_unknown_size_dynamic_memory_json(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_perf_string_reads_and_writes.c", - "line": 238, - "column": 61, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_col_buffer_copy_concat_multiple_rows_arrow(void **unused) {\n", - "source": "/mnt/host/tests/test_perf_string_reads_and_writes.c:238:61: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_col_buffer_copy_concat_multiple_rows_arrow(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_perf_string_reads_and_writes.c", - "line": 242, - "column": 60, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_col_buffer_copy_concat_multiple_rows_json(void **unused) {\n", - "source": "/mnt/host/tests/test_perf_string_reads_and_writes.c:242:60: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_col_buffer_copy_concat_multiple_rows_json(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_number.c", - "line": 177, - "column": 31, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_number_arrow(void **unused) {\n", - "source": "/mnt/host/tests/test_number.c:177:31: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_number_arrow(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_number.c", - "line": 181, - "column": 30, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_number_json(void **unused) {\n", - "source": "/mnt/host/tests/test_number.c:181:30: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_number_json(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_stmt_with_bad_connect.c", - "line": 10, - "column": 39, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_no_connect_and_retry(void **unused) {\n", - "source": "/mnt/host/tests/test_stmt_with_bad_connect.c:10:39: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_no_connect_and_retry(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_crud.c", - "line": 63, - "column": 23, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_crud(void **unused) {\n", - "source": "/mnt/host/tests/test_crud.c:63:23: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_crud(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_check_ctypes.c", - "line": 6, - "column": 32, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_check_c_types(void **unused) {\n", - "source": "/mnt/host/tests/test_check_ctypes.c:6:32: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_check_c_types(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_put_fast_fail.cpp", - "line": 67, - "column": 48, - "message": " unused parameter 'sql' ", - "flag": "-Wunused-parameter", - "snippet": " virtual bool parsePutGetCommand(std::string *sql,\n", - "source": "/mnt/host/tests/test_unit_put_fast_fail.cpp:67:48: warning: unused parameter 'sql' [-Wunused-parameter]\n virtual bool parsePutGetCommand(std::string *sql,\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_put_fast_fail.cpp", - "line": 68, - "column": 56, - "message": " unused parameter 'putGetParseResponse' ", - "flag": "-Wunused-parameter", - "snippet": " PutGetParseResponse *putGetParseResponse)\n", - "source": "/mnt/host/tests/test_unit_put_fast_fail.cpp:68:56: warning: unused parameter 'putGetParseResponse' [-Wunused-parameter]\n PutGetParseResponse *putGetParseResponse)\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_put_fast_fail.cpp", - "line": 93, - "column": 48, - "message": " unused parameter 'sql' ", - "flag": "-Wunused-parameter", - "snippet": " virtual bool parsePutGetCommand(std::string *sql,\n", - "source": "/mnt/host/tests/test_unit_put_fast_fail.cpp:93:48: warning: unused parameter 'sql' [-Wunused-parameter]\n virtual bool parsePutGetCommand(std::string *sql,\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_put_fast_fail.cpp", - "line": 131, - "column": 48, - "message": " unused parameter 'sql' ", - "flag": "-Wunused-parameter", - "snippet": " virtual bool parsePutGetCommand(std::string *sql,\n", - "source": "/mnt/host/tests/test_unit_put_fast_fail.cpp:131:48: warning: unused parameter 'sql' [-Wunused-parameter]\n virtual bool parsePutGetCommand(std::string *sql,\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_put_fast_fail.cpp", - "line": 174, - "column": 61, - "message": " unused parameter 'dataStream' ", - "flag": "-Wunused-parameter", - "snippet": " std::basic_iostream *dataStream)\n", - "source": "/mnt/host/tests/test_unit_put_fast_fail.cpp:174:61: warning: unused parameter 'dataStream' [-Wunused-parameter]\n std::basic_iostream *dataStream)\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_put_fast_fail.cpp", - "line": 201, - "column": 19, - "message": " unused parameter 'filePathFull' ", - "flag": "-Wunused-parameter", - "snippet": " std::string * filePathFull, FileMetadata *fileMetadata)\n", - "source": "/mnt/host/tests/test_unit_put_fast_fail.cpp:201:19: warning: unused parameter 'filePathFull' [-Wunused-parameter]\n std::string * filePathFull, FileMetadata *fileMetadata)\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_put_fast_fail.cpp", - "line": 212, - "column": 75, - "message": " unused parameter 'dataStream' ", - "flag": "-Wunused-parameter", - "snippet": " std::basic_iostream* dataStream)\n", - "source": "/mnt/host/tests/test_unit_put_fast_fail.cpp:212:75: warning: unused parameter 'dataStream' [-Wunused-parameter]\n std::basic_iostream* dataStream)\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_put_fast_fail.cpp", - "line": 368, - "column": 43, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_put_fast_fail_sequential(void **unused)\n", - "source": "/mnt/host/tests/test_unit_put_fast_fail.cpp:368:43: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_put_fast_fail_sequential(void **unused)\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_put_fast_fail.cpp", - "line": 381, - "column": 41, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_put_fast_fail_parallel(void **unused)\n", - "source": "/mnt/host/tests/test_unit_put_fast_fail.cpp:381:41: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_put_fast_fail_parallel(void **unused)\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_put_fast_fail.cpp", - "line": 388, - "column": 49, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_put_fast_fail_large_sequential(void **unused)\n", - "source": "/mnt/host/tests/test_unit_put_fast_fail.cpp:388:49: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_put_fast_fail_large_sequential(void **unused)\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_put_fast_fail.cpp", - "line": 395, - "column": 43, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_get_fast_fail_sequential(void **unused)\n", - "source": "/mnt/host/tests/test_unit_put_fast_fail.cpp:395:43: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_get_fast_fail_sequential(void **unused)\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_put_fast_fail.cpp", - "line": 402, - "column": 41, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_get_fast_fail_parallel(void **unused)\n", - "source": "/mnt/host/tests/test_unit_put_fast_fail.cpp:402:41: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_get_fast_fail_parallel(void **unused)\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_put_fast_fail.cpp", - "line": 409, - "column": 49, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_get_fast_fail_large_sequential(void **unused)\n", - "source": "/mnt/host/tests/test_unit_put_fast_fail.cpp:409:49: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_get_fast_fail_large_sequential(void **unused)\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_put_fast_fail.cpp", - "line": 416, - "column": 31, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " static int gr_teardown(void **unused)\n", - "source": "/mnt/host/tests/test_unit_put_fast_fail.cpp:416:31: warning: unused parameter 'unused' [-Wunused-parameter]\n static int gr_teardown(void **unused)\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_put_fast_fail.cpp", - "line": 430, - "column": 28, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " static int gr_setup(void **unused)\n", - "source": "/mnt/host/tests/test_unit_put_fast_fail.cpp:430:28: warning: unused parameter 'unused' [-Wunused-parameter]\n static int gr_setup(void **unused)\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_put_fast_fail.cpp", - "line": 438, - "column": 10, - "message": " unused variable 'unused' ", - "flag": "-Wunused-variable", - "snippet": " void **unused;\n", - "source": "/mnt/host/tests/test_unit_put_fast_fail.cpp:438:10: warning: unused variable 'unused' [-Wunused-variable]\n void **unused;\n" - }, - { - "file_path": "/mnt/host/tests/test_timestamp_tz.c", - "line": 199, - "column": 37, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_timestamp_tz_arrow(void **unused) {\n", - "source": "/mnt/host/tests/test_timestamp_tz.c:199:37: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_timestamp_tz_arrow(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_timestamp_tz.c", - "line": 204, - "column": 36, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_timestamp_tz_json(void **unused) {\n", - "source": "/mnt/host/tests/test_timestamp_tz.c:204:36: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_timestamp_tz_json(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_adjust_fetch_data.c", - "line": 12, - "column": 61, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_select_long_data_with_small_initial_buffer(void **unused) {\n", - "source": "/mnt/host/tests/test_adjust_fetch_data.c:12:61: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_select_long_data_with_small_initial_buffer(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_issue_76.c", - "line": 8, - "column": 27, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_issue_76(void **unused) {\n", - "source": "/mnt/host/tests/test_issue_76.c:8:27: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_issue_76(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_column_fetch.c", - "line": 1313, - "column": 42, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_column_as_boolean_arrow(void **unused) {\n", - "source": "/mnt/host/tests/test_column_fetch.c:1313:42: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_column_as_boolean_arrow(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_column_fetch.c", - "line": 1317, - "column": 41, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_column_as_boolean_json(void **unused) {\n", - "source": "/mnt/host/tests/test_column_fetch.c:1317:41: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_column_as_boolean_json(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_column_fetch.c", - "line": 1321, - "column": 39, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_column_as_int8_arrow(void **unused) {\n", - "source": "/mnt/host/tests/test_column_fetch.c:1321:39: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_column_as_int8_arrow(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_column_fetch.c", - "line": 1325, - "column": 38, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_column_as_int8_json(void **unused) {\n", - "source": "/mnt/host/tests/test_column_fetch.c:1325:38: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_column_as_int8_json(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_column_fetch.c", - "line": 1329, - "column": 40, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_column_as_int32_arrow(void **unused) {\n", - "source": "/mnt/host/tests/test_column_fetch.c:1329:40: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_column_as_int32_arrow(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_column_fetch.c", - "line": 1333, - "column": 39, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_column_as_int32_json(void **unused) {\n", - "source": "/mnt/host/tests/test_column_fetch.c:1333:39: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_column_as_int32_json(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_column_fetch.c", - "line": 1337, - "column": 40, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_column_as_int64_arrow(void **unused) {\n", - "source": "/mnt/host/tests/test_column_fetch.c:1337:40: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_column_as_int64_arrow(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_column_fetch.c", - "line": 1341, - "column": 39, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_column_as_int64_json(void **unused) {\n", - "source": "/mnt/host/tests/test_column_fetch.c:1341:39: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_column_as_int64_json(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_column_fetch.c", - "line": 1345, - "column": 40, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_column_as_uint8_arrow(void **unused) {\n", - "source": "/mnt/host/tests/test_column_fetch.c:1345:40: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_column_as_uint8_arrow(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_column_fetch.c", - "line": 1349, - "column": 39, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_column_as_uint8_json(void **unused) {\n", - "source": "/mnt/host/tests/test_column_fetch.c:1349:39: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_column_as_uint8_json(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_column_fetch.c", - "line": 1353, - "column": 41, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_column_as_uint32_arrow(void **unused) {\n", - "source": "/mnt/host/tests/test_column_fetch.c:1353:41: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_column_as_uint32_arrow(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_column_fetch.c", - "line": 1357, - "column": 40, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_column_as_uint32_json(void **unused) {\n", - "source": "/mnt/host/tests/test_column_fetch.c:1357:40: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_column_as_uint32_json(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_column_fetch.c", - "line": 1361, - "column": 41, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_column_as_uint64_arrow(void **unused) {\n", - "source": "/mnt/host/tests/test_column_fetch.c:1361:41: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_column_as_uint64_arrow(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_column_fetch.c", - "line": 1365, - "column": 40, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_column_as_uint64_json(void **unused) {\n", - "source": "/mnt/host/tests/test_column_fetch.c:1365:40: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_column_as_uint64_json(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_column_fetch.c", - "line": 1369, - "column": 42, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_column_as_float32_arrow(void **unused) {\n", - "source": "/mnt/host/tests/test_column_fetch.c:1369:42: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_column_as_float32_arrow(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_column_fetch.c", - "line": 1373, - "column": 41, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_column_as_float32_json(void **unused) {\n", - "source": "/mnt/host/tests/test_column_fetch.c:1373:41: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_column_as_float32_json(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_column_fetch.c", - "line": 1377, - "column": 42, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_column_as_float64_arrow(void **unused) {\n", - "source": "/mnt/host/tests/test_column_fetch.c:1377:42: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_column_as_float64_arrow(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_column_fetch.c", - "line": 1381, - "column": 41, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_column_as_float64_json(void **unused) {\n", - "source": "/mnt/host/tests/test_column_fetch.c:1381:41: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_column_as_float64_json(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_column_fetch.c", - "line": 1385, - "column": 44, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_column_as_timestamp_arrow(void **unused) {\n", - "source": "/mnt/host/tests/test_column_fetch.c:1385:44: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_column_as_timestamp_arrow(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_column_fetch.c", - "line": 1389, - "column": 43, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_column_as_timestamp_json(void **unused) {\n", - "source": "/mnt/host/tests/test_column_fetch.c:1389:43: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_column_as_timestamp_json(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_column_fetch.c", - "line": 1393, - "column": 52, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_column_as_timestamp_windows_arrow(void **unused) {\n", - "source": "/mnt/host/tests/test_column_fetch.c:1393:52: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_column_as_timestamp_windows_arrow(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_column_fetch.c", - "line": 1397, - "column": 51, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_column_as_timestamp_windows_json(void **unused) {\n", - "source": "/mnt/host/tests/test_column_fetch.c:1397:51: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_column_as_timestamp_windows_json(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_column_fetch.c", - "line": 1401, - "column": 44, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_column_as_const_str_arrow(void **unused) {\n", - "source": "/mnt/host/tests/test_column_fetch.c:1401:44: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_column_as_const_str_arrow(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_column_fetch.c", - "line": 1405, - "column": 43, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_column_as_const_str_json(void **unused) {\n", - "source": "/mnt/host/tests/test_column_fetch.c:1405:43: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_column_as_const_str_json(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_column_fetch.c", - "line": 1409, - "column": 39, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_column_is_null_arrow(void **unused) {\n", - "source": "/mnt/host/tests/test_column_fetch.c:1409:39: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_column_is_null_arrow(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_column_fetch.c", - "line": 1413, - "column": 38, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_column_is_null_json(void **unused) {\n", - "source": "/mnt/host/tests/test_column_fetch.c:1413:38: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_column_is_null_json(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_column_fetch.c", - "line": 1417, - "column": 38, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_column_strlen_arrow(void **unused) {\n", - "source": "/mnt/host/tests/test_column_fetch.c:1417:38: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_column_strlen_arrow(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_column_fetch.c", - "line": 1421, - "column": 37, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_column_strlen_json(void **unused) {\n", - "source": "/mnt/host/tests/test_column_fetch.c:1421:37: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_column_strlen_json(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_column_fetch.c", - "line": 1425, - "column": 38, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_column_as_str_arrow(void **unused) {\n", - "source": "/mnt/host/tests/test_column_fetch.c:1425:38: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_column_as_str_arrow(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_column_fetch.c", - "line": 1429, - "column": 37, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_column_as_str_json(void **unused) {\n", - "source": "/mnt/host/tests/test_column_fetch.c:1429:37: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_column_as_str_json(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_select1.c", - "line": 7, - "column": 26, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_select1(void **unused) {\n", - "source": "/mnt/host/tests/test_select1.c:7:26: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_select1(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/../lib/connection.h", - "line": 28, - "column": null, - "message": " ignoring #pragma comment ", - "flag": "-Wunknown-pragmas", - "snippet": " #pragma comment(lib, \"wldap32.lib\" )\n", - "source": "/mnt/host/tests/../lib/connection.h:28: warning: ignoring #pragma comment [-Wunknown-pragmas]\n #pragma comment(lib, \"wldap32.lib\" )\n" - }, - { - "file_path": "/mnt/host/tests/../lib/connection.h", - "line": 29, - "column": null, - "message": " ignoring #pragma comment ", - "flag": "-Wunknown-pragmas", - "snippet": " #pragma comment(lib, \"crypt32.lib\" )\n", - "source": "/mnt/host/tests/../lib/connection.h:29: warning: ignoring #pragma comment [-Wunknown-pragmas]\n #pragma comment(lib, \"crypt32.lib\" )\n" - }, - { - "file_path": "/mnt/host/tests/../lib/connection.h", - "line": 30, - "column": null, - "message": " ignoring #pragma comment ", - "flag": "-Wunknown-pragmas", - "snippet": " #pragma comment(lib, \"Ws2_32.lib\")\n", - "source": "/mnt/host/tests/../lib/connection.h:30: warning: ignoring #pragma comment [-Wunknown-pragmas]\n #pragma comment(lib, \"Ws2_32.lib\")\n" - }, - { - "file_path": "/mnt/host/tests/test_timestamp_ltz.c", - "line": 208, - "column": 38, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_timestamp_ltz_arrow(void **unused) {\n", - "source": "/mnt/host/tests/test_timestamp_ltz.c:208:38: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_timestamp_ltz_arrow(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_timestamp_ltz.c", - "line": 213, - "column": 37, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_timestamp_ltz_json(void **unused) {\n", - "source": "/mnt/host/tests/test_timestamp_ltz.c:213:37: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_timestamp_ltz_json(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_native_timestamp.c", - "line": 91, - "column": 41, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_native_timestamp_arrow(void **unused) {\n", - "source": "/mnt/host/tests/test_native_timestamp.c:91:41: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_native_timestamp_arrow(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_native_timestamp.c", - "line": 95, - "column": 40, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_native_timestamp_json(void **unused) {\n", - "source": "/mnt/host/tests/test_native_timestamp.c:95:40: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_native_timestamp_json(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_encryption.cpp", - "line": 52, - "column": 42, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_aes_cbc_mode_encryption(void **unused) {\n", - "source": "/mnt/host/tests/test_unit_encryption.cpp:52:42: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_aes_cbc_mode_encryption(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_encryption.cpp", - "line": 78, - "column": 42, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_aes_gcm_mode_encryption(void **unused) {\n", - "source": "/mnt/host/tests/test_unit_encryption.cpp:78:42: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_aes_gcm_mode_encryption(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_get_query_result_response.c", - "line": 15, - "column": 44, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_get_query_result_response(void **unused) {\n", - "source": "/mnt/host/tests/test_get_query_result_response.c:15:44: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_get_query_result_response(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_get_query_result_response.c", - "line": 62, - "column": 51, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_get_query_result_response_failed(void **unused) {\n", - "source": "/mnt/host/tests/test_get_query_result_response.c:62:51: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_get_query_result_response_failed(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_file_type_detect.cpp", - "line": 23, - "column": 30, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_detect_gzip(void **unused)\n", - "source": "/mnt/host/tests/test_unit_file_type_detect.cpp:23:30: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_detect_gzip(void **unused)\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_file_type_detect.cpp", - "line": 28, - "column": 30, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_detect_none(void **unused)\n", - "source": "/mnt/host/tests/test_unit_file_type_detect.cpp:28:30: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_detect_none(void **unused)\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_file_type_detect.cpp", - "line": 33, - "column": 29, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_detect_bz2(void **unused)\n", - "source": "/mnt/host/tests/test_unit_file_type_detect.cpp:33:29: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_detect_bz2(void **unused)\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_file_type_detect.cpp", - "line": 38, - "column": 29, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_detect_zst(void **unused)\n", - "source": "/mnt/host/tests/test_unit_file_type_detect.cpp:38:29: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_detect_zst(void **unused)\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_file_type_detect.cpp", - "line": 43, - "column": 30, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_detect_zero(void **unused)\n", - "source": "/mnt/host/tests/test_unit_file_type_detect.cpp:43:30: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_detect_zero(void **unused)\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_file_type_detect.cpp", - "line": 48, - "column": 29, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_detect_one(void **unused)\n", - "source": "/mnt/host/tests/test_unit_file_type_detect.cpp:48:29: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_detect_one(void **unused)\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_file_type_detect.cpp", - "line": 53, - "column": 32, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_detect_brotli(void **unused)\n", - "source": "/mnt/host/tests/test_unit_file_type_detect.cpp:53:32: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_detect_brotli(void **unused)\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_file_type_detect.cpp", - "line": 58, - "column": 33, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_detect_parquet(void **unused)\n", - "source": "/mnt/host/tests/test_unit_file_type_detect.cpp:58:33: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_detect_parquet(void **unused)\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_file_type_detect.cpp", - "line": 63, - "column": 29, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_detect_orc(void **unused)\n", - "source": "/mnt/host/tests/test_unit_file_type_detect.cpp:63:29: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_detect_orc(void **unused)\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_file_type_detect.cpp", - "line": 68, - "column": 37, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_detect_noextension(void **unused)\n", - "source": "/mnt/host/tests/test_unit_file_type_detect.cpp:68:37: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_detect_noextension(void **unused)\n" - }, - { - "file_path": "/mnt/host/tests/test_ocsp_fail_open.c", - "line": 43, - "column": 36, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_fail_open_revoked(void **unused) {\n", - "source": "/mnt/host/tests/test_ocsp_fail_open.c:43:36: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_fail_open_revoked(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_ocsp_fail_open.c", - "line": 69, - "column": 37, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_fail_close_timeout(void** unused) {\n", - "source": "/mnt/host/tests/test_ocsp_fail_open.c:69:37: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_fail_close_timeout(void** unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_ocsp_fail_open.c", - "line": 95, - "column": 36, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_fail_open_timeout(void** unused) {\n", - "source": "/mnt/host/tests/test_ocsp_fail_open.c:95:36: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_fail_open_timeout(void** unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_logger.c", - "line": 14, - "column": 35, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_log_str_to_level(void **unused) {\n", - "source": "/mnt/host/tests/test_unit_logger.c:14:35: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_log_str_to_level(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_logger.c", - "line": 31, - "column": 31, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_log_creation(void **unused) {\n", - "source": "/mnt/host/tests/test_unit_logger.c:31:31: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_log_creation(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_logger.c", - "line": 57, - "column": 34, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_mask_secret_log(void **unused) {\n", - "source": "/mnt/host/tests/test_unit_logger.c:57:34: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_mask_secret_log(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_cipher_stream_buf.cpp", - "line": 47, - "column": 41, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_cipher_stream_buf_zero(void **unused)\n", - "source": "/mnt/host/tests/test_unit_cipher_stream_buf.cpp:47:41: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_cipher_stream_buf_zero(void **unused)\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_cipher_stream_buf.cpp", - "line": 56, - "column": 40, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_cipher_stream_buf_one(void **unused)\n", - "source": "/mnt/host/tests/test_unit_cipher_stream_buf.cpp:56:40: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_cipher_stream_buf_one(void **unused)\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_cipher_stream_buf.cpp", - "line": 65, - "column": 40, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_cipher_stream_buf_two(void **unused)\n", - "source": "/mnt/host/tests/test_unit_cipher_stream_buf.cpp:65:40: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_cipher_stream_buf_two(void **unused)\n" - }, - { - "file_path": "/mnt/host/tests/test_manual_connect.c", - "line": 10, - "column": 32, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_oauth_connect(void **unused)\n", - "source": "/mnt/host/tests/test_manual_connect.c:10:32: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_oauth_connect(void **unused)\n" - }, - { - "file_path": "/mnt/host/tests/test_manual_connect.c", - "line": 50, - "column": 44, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_mfa_connect_with_duo_push(void** unused)\n", - "source": "/mnt/host/tests/test_manual_connect.c:50:44: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_mfa_connect_with_duo_push(void** unused)\n" - }, - { - "file_path": "/mnt/host/tests/test_manual_connect.c", - "line": 84, - "column": 48, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_mfa_connect_with_duo_passcode(void** unused)\n", - "source": "/mnt/host/tests/test_manual_connect.c:84:48: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_mfa_connect_with_duo_passcode(void** unused)\n" - }, - { - "file_path": "/mnt/host/tests/test_manual_connect.c", - "line": 126, - "column": 58, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_mfa_connect_with_duo_passcodeInPassword(void** unused)\n", - "source": "/mnt/host/tests/test_manual_connect.c:126:58: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_mfa_connect_with_duo_passcodeInPassword(void** unused)\n" - }, - { - "file_path": "/mnt/host/tests/test_manual_connect.c", - "line": 163, - "column": 23, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_none(void** unused) {}\n", - "source": "/mnt/host/tests/test_manual_connect.c:163:23: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_none(void** unused) {}\n" - }, - { - "file_path": "/mnt/host/tests/../cpp/jwt/ClaimSet.hpp", - "line": 91, - "column": 37, - "message": " unused parameter 'format' ", - "flag": "-Wunused-parameter", - "snippet": " inline std::string serialize(bool format=true) override\n", - "source": "/mnt/host/tests/../cpp/jwt/ClaimSet.hpp:91:37: warning: unused parameter 'format' [-Wunused-parameter]\n inline std::string serialize(bool format=true) override\n" - }, - { - "file_path": "/mnt/host/tests/../cpp/jwt/Header.hpp", - "line": 74, - "column": 37, - "message": " unused parameter 'format' ", - "flag": "-Wunused-parameter", - "snippet": " inline std::string serialize(bool format=true) override\n", - "source": "/mnt/host/tests/../cpp/jwt/Header.hpp:74:37: warning: unused parameter 'format' [-Wunused-parameter]\n inline std::string serialize(bool format=true) override\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_stream_splitter.cpp", - "line": 25, - "column": 36, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_byte_array_stream(void **unused)\n", - "source": "/mnt/host/tests/test_unit_stream_splitter.cpp:25:36: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_byte_array_stream(void **unused)\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_stream_splitter.cpp", - "line": 44, - "column": 43, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_stream_splitter_appender(void **unused)\n", - "source": "/mnt/host/tests/test_unit_stream_splitter.cpp:44:43: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_stream_splitter_appender(void **unused)\n" - }, - { - "file_path": "/mnt/host/tests/test_get_describe_only_query_result.c", - "line": 15, - "column": 49, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_get_describe_only_query_result(void **unused) {\n", - "source": "/mnt/host/tests/test_get_describe_only_query_result.c:15:49: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_get_describe_only_query_result(void **unused) {\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_file_metadata_init.cpp", - "line": 111, - "column": 48, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " static int file_pattern_match_teardown(void ** unused)\n", - "source": "/mnt/host/tests/test_unit_file_metadata_init.cpp:111:48: warning: unused parameter 'unused' [-Wunused-parameter]\n static int file_pattern_match_teardown(void ** unused)\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_file_metadata_init.cpp", - "line": 118, - "column": 44, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " static int file_pattern_match_setup(void **unused)\n", - "source": "/mnt/host/tests/test_unit_file_metadata_init.cpp:118:44: warning: unused parameter 'unused' [-Wunused-parameter]\n static int file_pattern_match_setup(void **unused)\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_file_metadata_init.cpp", - "line": 135, - "column": 37, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_file_pattern_match(void **unused)\n", - "source": "/mnt/host/tests/test_unit_file_metadata_init.cpp:135:37: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_file_pattern_match(void **unused)\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_file_metadata_init.cpp", - "line": 153, - "column": 28, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " static int gr_setup(void **unused)\n", - "source": "/mnt/host/tests/test_unit_file_metadata_init.cpp:153:28: warning: unused parameter 'unused' [-Wunused-parameter]\n static int gr_setup(void **unused)\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_file_metadata_init.cpp", - "line": 159, - "column": 31, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " static int gr_teardown(void **unused)\n", - "source": "/mnt/host/tests/test_unit_file_metadata_init.cpp:159:31: warning: unused parameter 'unused' [-Wunused-parameter]\n static int gr_teardown(void **unused)\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_put_retry.cpp", - "line": 32, - "column": 48, - "message": " unused parameter 'sql' ", - "flag": "-Wunused-parameter", - "snippet": " virtual bool parsePutGetCommand(std::string *sql,\n", - "source": "/mnt/host/tests/test_unit_put_retry.cpp:32:48: warning: unused parameter 'sql' [-Wunused-parameter]\n virtual bool parsePutGetCommand(std::string *sql,\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_put_retry.cpp", - "line": 33, - "column": 56, - "message": " unused parameter 'putGetParseResponse' ", - "flag": "-Wunused-parameter", - "snippet": " PutGetParseResponse *putGetParseResponse)\n", - "source": "/mnt/host/tests/test_unit_put_retry.cpp:33:56: warning: unused parameter 'putGetParseResponse' [-Wunused-parameter]\n PutGetParseResponse *putGetParseResponse)\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_put_retry.cpp", - "line": 55, - "column": 48, - "message": " unused parameter 'sql' ", - "flag": "-Wunused-parameter", - "snippet": " virtual bool parsePutGetCommand(std::string *sql,\n", - "source": "/mnt/host/tests/test_unit_put_retry.cpp:55:48: warning: unused parameter 'sql' [-Wunused-parameter]\n virtual bool parsePutGetCommand(std::string *sql,\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_put_retry.cpp", - "line": 93, - "column": 48, - "message": " unused parameter 'sql' ", - "flag": "-Wunused-parameter", - "snippet": " virtual bool parsePutGetCommand(std::string *sql,\n", - "source": "/mnt/host/tests/test_unit_put_retry.cpp:93:48: warning: unused parameter 'sql' [-Wunused-parameter]\n virtual bool parsePutGetCommand(std::string *sql,\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_put_retry.cpp", - "line": 135, - "column": 60, - "message": " unused parameter 'fileMetadata' ", - "flag": "-Wunused-parameter", - "snippet": " virtual RemoteStorageRequestOutcome upload(FileMetadata *fileMetadata,\n", - "source": "/mnt/host/tests/test_unit_put_retry.cpp:135:60: warning: unused parameter 'fileMetadata' [-Wunused-parameter]\n virtual RemoteStorageRequestOutcome upload(FileMetadata *fileMetadata,\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_put_retry.cpp", - "line": 136, - "column": 61, - "message": " unused parameter 'dataStream' ", - "flag": "-Wunused-parameter", - "snippet": " std::basic_iostream *dataStream)\n", - "source": "/mnt/host/tests/test_unit_put_retry.cpp:136:61: warning: unused parameter 'dataStream' [-Wunused-parameter]\n std::basic_iostream *dataStream)\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_put_retry.cpp", - "line": 149, - "column": 19, - "message": " unused parameter 'filePathFull' ", - "flag": "-Wunused-parameter", - "snippet": " std::string * filePathFull, FileMetadata *fileMetadata)\n", - "source": "/mnt/host/tests/test_unit_put_retry.cpp:149:19: warning: unused parameter 'filePathFull' [-Wunused-parameter]\n std::string * filePathFull, FileMetadata *fileMetadata)\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_put_retry.cpp", - "line": 149, - "column": 47, - "message": " unused parameter 'fileMetadata' ", - "flag": "-Wunused-parameter", - "snippet": " std::string * filePathFull, FileMetadata *fileMetadata)\n", - "source": "/mnt/host/tests/test_unit_put_retry.cpp:149:47: warning: unused parameter 'fileMetadata' [-Wunused-parameter]\n std::string * filePathFull, FileMetadata *fileMetadata)\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_put_retry.cpp", - "line": 154, - "column": 63, - "message": " unused parameter 'fileMetadata' ", - "flag": "-Wunused-parameter", - "snippet": " virtual RemoteStorageRequestOutcome download(FileMetadata * fileMetadata,\n", - "source": "/mnt/host/tests/test_unit_put_retry.cpp:154:63: warning: unused parameter 'fileMetadata' [-Wunused-parameter]\n virtual RemoteStorageRequestOutcome download(FileMetadata * fileMetadata,\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_put_retry.cpp", - "line": 155, - "column": 75, - "message": " unused parameter 'dataStream' ", - "flag": "-Wunused-parameter", - "snippet": " std::basic_iostream* dataStream)\n", - "source": "/mnt/host/tests/test_unit_put_retry.cpp:155:75: warning: unused parameter 'dataStream' [-Wunused-parameter]\n std::basic_iostream* dataStream)\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_put_retry.cpp", - "line": 191, - "column": 36, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_simple_put_retry(void ** unused)\n", - "source": "/mnt/host/tests/test_unit_put_retry.cpp:191:36: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_simple_put_retry(void ** unused)\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_put_retry.cpp", - "line": 211, - "column": 32, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_set_max_retry(void **unused)\n", - "source": "/mnt/host/tests/test_unit_put_retry.cpp:211:32: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_set_max_retry(void **unused)\n" - }, - { - "file_path": "/mnt/host/tests/test_unit_put_retry.cpp", - "line": 216, - "column": 28, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " static int gr_setup(void **unused)\n", - "source": "/mnt/host/tests/test_unit_put_retry.cpp:216:28: warning: unused parameter 'unused' [-Wunused-parameter]\n static int gr_setup(void **unused)\n" - }, - { - "file_path": "/mnt/host/tests/unit_test_ocsp/test_ocsp.c", - "line": 409, - "column": 55, - "message": " format '%d' expects argument of type 'int', but argument 3 has type 'time_t' {aka 'long int'} ", - "flag": "-Wformat=", - "snippet": " fprintf(stderr, \"Delay check FAILED! Delayed %d seconds\\n\", end_time - start_time);\n", - "source": "/mnt/host/tests/unit_test_ocsp/test_ocsp.c:409:55: warning: format '%d' expects argument of type 'int', but argument 3 has type 'time_t' {aka 'long int'} [-Wformat=]\n fprintf(stderr, \"Delay check FAILED! Delayed %d seconds\\n\", end_time - start_time);\n" - }, - { - "file_path": "/mnt/host/tests/test_bind_datastructures/unit_tests/test_unit_treemap.c", - "line": 14, - "column": 24, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_init( void **unused)\n", - "source": "/mnt/host/tests/test_bind_datastructures/unit_tests/test_unit_treemap.c:14:24: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_init( void **unused)\n" - }, - { - "file_path": "/mnt/host/tests/test_bind_datastructures/unit_tests/test_unit_treemap.c", - "line": 85, - "column": 9, - "message": " unused variable 'ret' ", - "flag": "-Wunused-variable", - "snippet": " int ret = cmocka_run_group_tests(tests, NULL, NULL);\n", - "source": "/mnt/host/tests/test_bind_datastructures/unit_tests/test_unit_treemap.c:85:9: warning: unused variable 'ret' [-Wunused-variable]\n int ret = cmocka_run_group_tests(tests, NULL, NULL);\n" - }, - { - "file_path": "/mnt/host/tests/test_bind_datastructures/unit_tests/test_unit_rbtree.c", - "line": 14, - "column": 24, - "message": " unused parameter 'unused' ", - "flag": "-Wunused-parameter", - "snippet": " void test_init( void **unused)\n", - "source": "/mnt/host/tests/test_bind_datastructures/unit_tests/test_unit_rbtree.c:14:24: warning: unused parameter 'unused' [-Wunused-parameter]\n void test_init( void **unused)\n" - }, - { - "file_path": "/mnt/host/tests/test_bind_datastructures/unit_tests/test_unit_rbtree.c", - "line": 97, - "column": 9, - "message": " unused variable 'ret' ", - "flag": "-Wunused-variable", - "snippet": " int ret = cmocka_run_group_tests(tests, NULL, NULL);\n", - "source": "/mnt/host/tests/test_bind_datastructures/unit_tests/test_unit_rbtree.c:97:9: warning: unused variable 'ret' [-Wunused-variable]\n int ret = cmocka_run_group_tests(tests, NULL, NULL);\n" - } -] \ No newline at end of file From 4d5da2d855c6746209fbc710bde84a5d07335dbf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Szczerbi=C5=84ski?= Date: Thu, 12 Dec 2024 10:06:30 +0100 Subject: [PATCH 08/15] SNOW-1812871: Fix warnings cache key on master (#792) --- .github/workflows/code-quality.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/code-quality.yml b/.github/workflows/code-quality.yml index e72b399d38..e49bd231fe 100644 --- a/.github/workflows/code-quality.yml +++ b/.github/workflows/code-quality.yml @@ -73,6 +73,6 @@ jobs: uses: actions/cache/save@v4 with: path: warnings.json - key: ${{ github.event.pull_request.base.sha }}-compile-warnings + key: ${{ github.sha }}-compile-warnings if: github.ref_name == github.event.repository.default_branch From 3106377c3ca8ce0ebb9782362ad0c0e5f63a4973 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Szczerbi=C5=84ski?= Date: Thu, 12 Dec 2024 15:07:14 +0100 Subject: [PATCH 09/15] SNOW-1812871: Fix cache-hit comparision (#793) --- .github/workflows/code-quality.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/code-quality.yml b/.github/workflows/code-quality.yml index e49bd231fe..ba1da991c6 100644 --- a/.github/workflows/code-quality.yml +++ b/.github/workflows/code-quality.yml @@ -47,7 +47,7 @@ jobs: - name: Use cached warnings as a baseline shell: bash run: cp warnings.json ./ci/scripts/warnings_baseline.json - if: steps.cache-restore-warnings.outputs.cache-hit == true + if: steps.cache-restore-warnings.outputs.cache-hit == 'true' - name: Warning report shell: bash env: From 9de508d0fbce7e9abe3776351c26e42912a3ff9c Mon Sep 17 00:00:00 2001 From: David Szmolka <69192509+sfc-gh-dszmolka@users.noreply.github.com> Date: Fri, 13 Dec 2024 12:10:24 +0100 Subject: [PATCH 10/15] NO-SNOW change jira assignee, labels, priority (#795) --- .github/workflows/jira_issue.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/jira_issue.yml b/.github/workflows/jira_issue.yml index 700cf4059e..a1c1ba3d1e 100644 --- a/.github/workflows/jira_issue.yml +++ b/.github/workflows/jira_issue.yml @@ -37,7 +37,7 @@ jobs: summary: '${{ github.event.issue.title }}' description: | ${{ github.event.issue.body }} \\ \\ _Created from GitHub Action_ for ${{ github.event.issue.html_url }} - fields: '{ "customfield_11401": {"id": "14723"}, "assignee": {"id": "712020:3c0352b5-63f7-4e26-9afe-38f6f9f0f4c5"}, "components":[{"id":"19292"}] }' + fields: '{ "customfield_11401": {"id": "14723"}, "assignee": {"id": "712020:e1f41916-da57-4fe8-b317-116d5229aa51"}, "components":[{"id":"19292"}], "labels": ["oss"], "priority": {"id": "10001"} }' - name: Update GitHub Issue uses: ./jira/gajira-issue-update From 610e540ee3b81528078213e51de2e64937995873 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Szczerbi=C5=84ski?= Date: Mon, 16 Dec 2024 07:35:13 +0100 Subject: [PATCH 11/15] NO-SNOW: Prepare next development version (#797) --- include/snowflake/version.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/snowflake/version.h b/include/snowflake/version.h index df0207e042..b600dfa872 100644 --- a/include/snowflake/version.h +++ b/include/snowflake/version.h @@ -5,6 +5,6 @@ #ifndef SNOWFLAKE_CLIENT_VERSION_H #define SNOWFLAKE_CLIENT_VERSION_H -#define SF_API_VERSION "1.1.1" +#define SF_API_VERSION "1.1.2" #endif /* SNOWFLAKE_CLIENT_VERSION_H */ From 9d050a639a7f7013c97089da97d8a4dfed8405c8 Mon Sep 17 00:00:00 2001 From: Harry Xi Date: Mon, 16 Dec 2024 01:34:08 -0800 Subject: [PATCH 12/15] SNOW-864140 update build scripts instruction (#785) --- README.rst | 52 ++++++++++++++++++----- cpp/FileTransferAgent.cpp | 14 +++--- deps/curl/lib/vtls/sf_ocsp.c | 12 +++--- include/snowflake/QueryContextCache.hpp | 1 + lib/client.c | 10 +++-- lib/results.c | 2 +- scripts/_init.sh | 43 ++++++++++--------- scripts/build_arrow.bat | 8 ++-- scripts/build_arrow_source.bat | 6 +-- scripts/build_awssdk.bat | 8 ++-- scripts/build_azuresdk.bat | 6 +-- scripts/build_boost_source.bat | 6 +-- scripts/build_cmocka.bat | 10 ++--- scripts/build_curl.bat | 17 +++----- scripts/build_dependencies.bat | 49 +++++++++++++++++++++ scripts/build_dependencies.sh | 7 +-- scripts/build_libsnowflakeclient.bat | 14 +++--- scripts/build_oob.bat | 10 ++--- scripts/build_oob.sh | 1 + scripts/build_openssl.bat | 25 ++++------- scripts/build_picojson.bat | 4 +- scripts/build_zlib.bat | 19 +++------ scripts/run_tests.sh | 21 +++++++++ tests/test_perf_string_reads_and_writes.c | 10 ++++- tests/test_unit_logger.c | 2 +- tests/test_unit_put_fast_fail.cpp | 2 +- 26 files changed, 230 insertions(+), 129 deletions(-) create mode 100644 scripts/build_dependencies.bat create mode 100755 scripts/run_tests.sh diff --git a/README.rst b/README.rst index 2836498d08..0f59116f46 100644 --- a/README.rst +++ b/README.rst @@ -12,37 +12,61 @@ Snowflake Connector for C/C++ :target: http://www.apache.org/licenses/LICENSE-2.0.txt +Prerequisites +================================================================================ + +Operating system +For a list of the operating systems supported by Snowflake clients, see `Operating system support `_. + +To build libsnowflakeclient, the following software must be installed: + +- On Windows: Visual Studio 2015, 2017, 2019 or 2022 +- On Linux: + + - gcc/g++ 8.3 or higher. **Note**: on certain OS (e.g. Centos 7) the preinstalled gcc/libstdc++ version is below the required minimum. For Centos 7, this is 4.8.5, which is below the requirement. Building libsnowflakeclient might be unsuccessful on such OS's until the prerequisite is fulfilled, i.e. libraries upgraded to at least the minimum version. + - cmake 3.17 or higher + +- On macOS: + + - clang + - cmake 3.17 or higher + +To run test cases, the following software must be installed: + +- jq: https://jqlang.github.io/jq/download/ +- python 3.7 or higher + Build and Tests ====================================================================== Build ---------------------------------------------------------------------- -Ensure you have cmake 3.17 or later version. - Linux and OSX ^^^^^^^^^^^^^ .. code-block:: bash + ./scripts/build_dependencies.sh ./scripts/build_libsnowflakeclient.sh Windows ^^^^^^^^^^ - Set environment variables: PLATFORM: [x64, x86], BUILD_TYPE: [Debug, Release], VS_VERSION: [VS14, VS15, VS16, VS17] and run the script. .. code-block:: bash set platform=x64 - set build_type=Debug - set vs_version=VS14 - ci\build.bat + set build_type=Release + set vs_version=VS17 + + .\scripts\build_dependencies.bat + .\scripts\build_libsnowflakeclient.bat Prepare for Test ---------------------------------------------------------------------- -Set the Snowflake connection info in ``parameters.json`` and place it in $HOME: +Set the Snowflake connection info in ``parameters.json`` and place it in the root path of libsnowflakeclient repository: .. code-block:: json @@ -55,9 +79,16 @@ Set the Snowflake connection info in ``parameters.json`` and place it in $HOME: "SNOWFLAKE_TEST_DATABASE": "", "SNOWFLAKE_TEST_SCHEMA": "", "SNOWFLAKE_TEST_ROLE": "" + "SNOWFLAKE_TEST_HOST": "" + "CLOUD_PROVIDER": "" } } +where: + +- :code:`` is optional. Set it when your Snowflake URL is not in the format of :code:`account.snowflakecomputing.com`. +- :code:`` is the cloud platform of your Snowflake account. (:code:`AWS`, :code:`AZURE` or :code:`GCP`). + Proxy ^^^^^^^^^^ @@ -96,9 +127,10 @@ Set environment variables: PLATFORM: [x64, x86], BUILD_TYPE: [Debug, Release], V .. code-block:: bash set platform=x64 - set build_type=Debug - set vs_version=VS14 - ci\test.bat + set build_type=Release + set vs_version=VS17 + + .\scripts\run_tests.bat Code Coverage (Linux) diff --git a/cpp/FileTransferAgent.cpp b/cpp/FileTransferAgent.cpp index 80066899a1..c99ff06953 100755 --- a/cpp/FileTransferAgent.cpp +++ b/cpp/FileTransferAgent.cpp @@ -265,7 +265,7 @@ void Snowflake::Client::FileTransferAgent::upload(string *command) } else if( outcome == RemoteStorageRequestOutcome::FAILED) { - m_failedTransfers.append(m_largeFilesMeta[i].srcFileName) + ", "; + m_failedTransfers += m_largeFilesMeta[i].srcFileName + ", "; //Fast fail, return when the first file fails to upload. if (isPutFastFailEnabled()) { @@ -351,7 +351,7 @@ void Snowflake::Client::FileTransferAgent::uploadFilesInParallel(std::string *co { if (outcome == RemoteStorageRequestOutcome::FAILED) { CXX_LOG_DEBUG("Sequential upload %s FAILED.", metadata->srcFileName.c_str()); - m_failedTransfers.append(metadata->srcFileName) + ", "; + m_failedTransfers += metadata->srcFileName + ", "; //Fast fail, return when the first file fails to upload. if(isPutFastFailEnabled()) { @@ -405,7 +405,7 @@ void Snowflake::Client::FileTransferAgent::uploadFilesInParallel(std::string *co //Cannot throw and catch error from a thread. CXX_LOG_DEBUG("Parallel upload %s FAILED", metadata->srcFileName.c_str()); _mutex_lock(&m_parallelFailedMsgMutex); - m_failedTransfers.append(metadata->srcFileName) + ", "; + m_failedTransfers += metadata->srcFileName + ", "; _mutex_unlock(&m_parallelFailedMsgMutex); } else if (outcome == RemoteStorageRequestOutcome::SUCCESS) @@ -682,7 +682,7 @@ void Snowflake::Client::FileTransferAgent::download(string *command) { CXX_LOG_DEBUG("Putget serial large file download, %s file download FAILED.", m_largeFilesMeta[i].srcFileName.c_str()); - m_failedTransfers.append(m_largeFilesMeta[i].srcFileName) + ", "; + m_failedTransfers += m_largeFilesMeta[i].srcFileName + ", "; //Fast fail, return when the first file fails to download. if (isGetFastFailEnabled()) { @@ -748,7 +748,7 @@ void Snowflake::Client::FileTransferAgent::downloadFilesInParallel(std::string * else if (outcome == RemoteStorageRequestOutcome::FAILED) { CXX_LOG_DEBUG("Sequential download %s FAILED.", metadata->srcFileName.c_str()); - m_failedTransfers.append(metadata->srcFileName) + ", "; + m_failedTransfers += metadata->srcFileName + ", "; //Fast fail, return when the first file fails to download. if (isGetFastFailEnabled()) { @@ -796,7 +796,7 @@ void Snowflake::Client::FileTransferAgent::downloadFilesInParallel(std::string * { CXX_LOG_DEBUG("Parallel download %s FAILED.", metadata->srcFileName.c_str()); _mutex_lock(&m_parallelFailedMsgMutex); - m_failedTransfers.append(metadata->srcFileName) + ", "; + m_failedTransfers += metadata->srcFileName + ", "; _mutex_unlock(&m_parallelFailedMsgMutex); } else if (outcome == RemoteStorageRequestOutcome::SUCCESS) @@ -810,7 +810,7 @@ void Snowflake::Client::FileTransferAgent::downloadFilesInParallel(std::string * RemoteStorageRequestOutcome::FAILED, resultIndex); CXX_LOG_DEBUG("Parallel download %s FAILED.", metadata->srcFileName.c_str()); _mutex_lock(&m_parallelFailedMsgMutex); - m_failedTransfers.append(metadata->srcFileName) + ", "; + m_failedTransfers += metadata->srcFileName + ", "; _mutex_unlock(&m_parallelFailedMsgMutex); } diff --git a/deps/curl/lib/vtls/sf_ocsp.c b/deps/curl/lib/vtls/sf_ocsp.c index 2df7a8d0b4..c290d47b0f 100644 --- a/deps/curl/lib/vtls/sf_ocsp.c +++ b/deps/curl/lib/vtls/sf_ocsp.c @@ -549,7 +549,7 @@ SF_CERT_STATUS checkResponse(OCSP_RESPONSE *resp, long validity = (pday*24*60*60 + psec)/100; skewInSec = validity > skewInSec ? validity : skewInSec; infof(data, "Diff between thisupd and nextupd " - "day: %d, sec: %d, Tolerant skew: %d", pday, psec, + "day: %d, sec: %d, Tolerant skew: %ld", pday, psec, skewInSec); } else @@ -779,7 +779,7 @@ static OCSP_RESPONSE * queryResponderUsingCurl(char *url, OCSP_CERTID *certid, c } else { - snprintf(urlbuf, sizeof(urlbuf), + snprintf(urlbuf, sizeof(urlbuf), "%s", ocsp_cache_server_retry_url_pattern); } } @@ -882,7 +882,7 @@ static OCSP_RESPONSE * queryResponderUsingCurl(char *url, OCSP_CERTID *certid, c } else if (response_code < 200 || response_code >= 300) { - failf(data, "OCSP request failed with non-200 level code: %d", + failf(data, "OCSP request failed with non-200 level code: %ld", response_code); if (ocsp_retry_cnt == max_retry-1) @@ -1247,7 +1247,7 @@ static SF_OCSP_STATUS checkResponseTimeValidity(OCSP_RESPONSE *resp, struct Curl long validity = (pday*24*60*60 + psec)/100; skewInSec = validity > skewInSec ? validity : skewInSec; infof(data, "Diff between thisupd and nextupd " - "day: %d, sec: %d, Tolerant skew: %d", pday, psec, + "day: %d, sec: %d, Tolerant skew: %ld", pday, psec, skewInSec); } else @@ -1550,7 +1550,7 @@ void downloadOCSPCache(struct Curl_easy *data, SF_OTD *ocsp_log_data, char *last } else if (response_code < 200 || response_code >= 300 ) { - failf(data, "OCSP cache download request failed with non-200 level code: %d, OCSP Cache Could not be downloaded", + failf(data, "OCSP cache download request failed with non-200 level code: %ld, OCSP Cache Could not be downloaded", response_code); sf_otd_set_event_sub_type(OCSP_RESPONSE_CACHE_DOWNLOAD_FAILED, ocsp_log_data); goto end; @@ -2450,7 +2450,7 @@ SF_PUBLIC(CURLcode) checkCertOCSP(struct connectdata *conn, sf_otd_set_insecure_mode(0, &ocsp_log_data); - infof(data, "Cert Data Store: %s, Certifcate Chain: %s", st, ch); + infof(data, "Cert Data Store: %s, Certifcate Chain: %s", (char*)st, (char*)ch); initOCSPCacheServer(data); infof(data, "Start SF OCSP Validation..."); diff --git a/include/snowflake/QueryContextCache.hpp b/include/snowflake/QueryContextCache.hpp index f1b3064666..f820a24351 100644 --- a/include/snowflake/QueryContextCache.hpp +++ b/include/snowflake/QueryContextCache.hpp @@ -10,6 +10,7 @@ #include #include #include +#include #include "snowflake/client.h" namespace Snowflake diff --git a/lib/client.c b/lib/client.c index 6b818a4fb6..c7efb91110 100644 --- a/lib/client.c +++ b/lib/client.c @@ -3258,15 +3258,17 @@ SF_STATUS STDCALL snowflake_timestamp_get_epoch_seconds(SF_TIMESTAMP *ts, return SF_STATUS_ERROR_NULL_POINTER; } - time_t epoch_time_local; + time_t epoch_time; ts->tm_obj.tm_isdst = -1; - epoch_time_local = (time_t) mktime(&ts->tm_obj); // mktime takes into account tm_gmtoff which is a Linux and OS X ONLY field #if defined(__linux__) || defined(__APPLE__) - epoch_time_local += ts->tm_obj.tm_gmtoff; + epoch_time = (time_t)mktime(&ts->tm_obj); + epoch_time += ts->tm_obj.tm_gmtoff; +#else + epoch_time = _mkgmtime64(&ts->tm_obj); #endif - *epoch_time_ptr = epoch_time_local - (ts->tzoffset * 60); + *epoch_time_ptr = epoch_time - (ts->tzoffset * 60); return SF_STATUS_SUCCESS; } diff --git a/lib/results.c b/lib/results.c index 7d6d810192..742b6a0d39 100644 --- a/lib/results.c +++ b/lib/results.c @@ -221,7 +221,7 @@ char *value_to_string(void *value, size_t len, SF_C_TYPE c_type) { return ret; case SF_C_TYPE_BOOLEAN: ret = (char*) SF_CALLOC(1, size + 1); - sf_strncpy(ret, size + 1, *(sf_bool*)value != (sf_bool)0 ? SF_BOOLEAN_INTERNAL_TRUE_STR : SF_BOOLEAN_INTERNAL_FALSE_STR, size + 1); + sf_strcpy(ret, size + 1, *(sf_bool*)value != (sf_bool)0 ? SF_BOOLEAN_INTERNAL_TRUE_STR : SF_BOOLEAN_INTERNAL_FALSE_STR); return ret; case SF_C_TYPE_BINARY: size = (size_t)len * 2 + 1; diff --git a/scripts/_init.sh b/scripts/_init.sh index 534a8a488f..79f8a41aad 100755 --- a/scripts/_init.sh +++ b/scripts/_init.sh @@ -3,7 +3,6 @@ # Initialize varizbles set -o pipefail - export PATH=/usr/local/bin:$PATH export TERM=vt100 @@ -35,64 +34,67 @@ if [[ -z "$GCC" || -z "$GXX" ]]; then elif (test -f "/usr/lib64/ccache/gcc52") && (test -f "/usr/lib64/ccache/g++52"); then GCC="/usr/lib64/ccache/gcc52" GXX="/usr/lib64/ccache/g++52" - elif which gcc-5 >& /dev/null; then + elif which g++-5 >& /dev/null; then GCC="$(which gcc-5)" GXX="$(which g++-5)" - elif which gcc5 >& /dev/null; then + elif which g++5 >& /dev/null; then GCC="$(which gcc5)" GXX="$(which g++5)" - elif which gcc-62 >& /dev/null; then + elif which g++-62 >& /dev/null; then GCC="$(which gcc-62)" GXX="$(which g++-62)" - elif which gcc62 >& /dev/null; then + elif which g++62 >& /dev/null; then GCC="$(which gcc62)" GXX="$(which g++62)" - elif which gcc-6 >& /dev/null; then + elif which g++-6 >& /dev/null; then GCC="$(which gcc-6)" GXX="$(which g++-6)" - elif which gcc6 >& /dev/null; then + elif which g++6 >& /dev/null; then GCC="$(which gcc6)" GXX="$(which g++6)" - elif which gcc-72 >& /dev/null; then + elif which g++-72 >& /dev/null; then GCC="$(which gcc-72)" GXX="$(which g++-72)" - elif which gcc72 >& /dev/null; then + elif which g++72 >& /dev/null; then GCC="$(which gcc72)" GXX="$(which g++72)" - elif which gcc-7 >& /dev/null; then + elif which g++-7 >& /dev/null; then GCC="$(which gcc-7)" GXX="$(which g++-7)" - elif which gcc7 >& /dev/null; then + elif which g++7 >& /dev/null; then GCC="$(which gcc7)" GXX="$(which g++7)" - elif which gcc-82 >& /dev/null; then + elif which g++-82 >& /dev/null; then GCC="$(which gcc-82)" GXX="$(which g++-82)" - elif which gcc82 >& /dev/null; then + elif which g++82 >& /dev/null; then GCC="$(which gcc82)" GXX="$(which g++82)" - elif which gcc-8 >& /dev/null; then + elif which g++-8 >& /dev/null; then GCC="$(which gcc-8)" GXX="$(which g++-8)" - elif which gcc8 >& /dev/null; then + elif which g++8 >& /dev/null; then GCC="$(which gcc8)" GXX="$(which g++8)" - elif which gcc-92 >& /dev/null; then + elif which g++-92 >& /dev/null; then GCC="$(which gcc-92)" GXX="$(which g++-92)" - elif which gcc92 >& /dev/null; then + elif which g++92 >& /dev/null; then GCC="$(which gcc92)" GXX="$(which g++92)" - elif which gcc-9 >& /dev/null; then + elif which g++-9 >& /dev/null; then GCC="$(which gcc-9)" GXX="$(which g++-9)" - elif which gcc9 >& /dev/null; then + elif which g++9 >& /dev/null; then GCC="$(which gcc9)" GXX="$(which g++9)" - else + elif which g++ >& /dev/null; then # Default to system GCC="$(which gcc)" GXX="$(which g++)" + else + echo "Error: gcc/g++ not found. Please install gcc/g++." + exit 1 fi fi @@ -164,3 +166,4 @@ fi export DEPENDENCY_DIR=$DIR/../deps-build/$PLATFORM/$target mkdir -p $DEPENDENCY_DIR + diff --git a/scripts/build_arrow.bat b/scripts/build_arrow.bat index d6da5ecc84..8d34941cf6 100644 --- a/scripts/build_arrow.bat +++ b/scripts/build_arrow.bat @@ -31,7 +31,7 @@ set scriptdir=%~dp0 call "%scriptdir%_init.bat" %platform% %build_type% %vs_version% if %ERRORLEVEL% NEQ 0 goto :error -set curdir=%cd% +set currdir=%cd% set dependencydir=%scriptdir%..\deps-build\ cd %dependencydir% @@ -55,7 +55,7 @@ if defined GITHUB_ACTIONS ( del %dependencydir%\*.gz ) -cd "%curdir%" +cd "%currdir%" echo === archiving the library call "%scriptdir%utils.bat" :zip_files arrow %arrow_version% "arrow arrow_deps boost" @@ -64,9 +64,9 @@ if %ERRORLEVEL% NEQ 0 goto :error goto :success :success -cd "%curdir%" +cd "%currdir%" exit /b 0 :error -cd "%curdir%" +cd "%currdir%" exit /b 1 diff --git a/scripts/build_arrow_source.bat b/scripts/build_arrow_source.bat index 91bd259681..ca9d0ef754 100644 --- a/scripts/build_arrow_source.bat +++ b/scripts/build_arrow_source.bat @@ -23,7 +23,7 @@ if %ERRORLEVEL% NEQ 0 goto :error call "%scriptdir%utils.bat" :setup_visual_studio %vs_version% if %ERRORLEVEL% NEQ 0 goto :error -set curdir=%cd% +set currdir=%cd% if /I "%platform%"=="x64" ( set engine_dir=Program Files @@ -96,7 +96,7 @@ if %ERRORLEVEL% NEQ 0 goto :error msbuild INSTALL.vcxproj /p:Configuration=%build_type% if %ERRORLEVEL% NEQ 0 goto :error -cd "%curdir%" +cd "%currdir%" goto :success @@ -104,5 +104,5 @@ goto :success exit /b 0 :error -cd "%curdir%" +cd "%currdir%" exit /b 1 diff --git a/scripts/build_awssdk.bat b/scripts/build_awssdk.bat index fbfe9ea3ae..d358b01674 100755 --- a/scripts/build_awssdk.bat +++ b/scripts/build_awssdk.bat @@ -28,7 +28,7 @@ if %ERRORLEVEL% NEQ 0 goto :error call "%scriptdir%utils.bat" :setup_visual_studio %vs_version% if %ERRORLEVEL% NEQ 0 goto :error -set curdir=%cd% +set currdir=%cd% if /I "%platform%"=="x64" ( set engine_dir=Program Files @@ -76,7 +76,7 @@ if %ERRORLEVEL% NEQ 0 goto :error msbuild INSTALL.vcxproj /p:Configuration=%build_type% if %ERRORLEVEL% NEQ 0 goto :error -cd "%curdir%" +cd "%currdir%" echo === archiving the library call "%scriptdir%utils.bat" :zip_file aws %aws_version% @@ -85,9 +85,9 @@ if %ERRORLEVEL% NEQ 0 goto :error goto :success :success -cd "%curdir%" +cd "%currdir%" exit /b 0 :error -cd "%curdir%" +cd "%currdir%" exit /b 1 diff --git a/scripts/build_azuresdk.bat b/scripts/build_azuresdk.bat index 7fd030f974..79c02e258f 100644 --- a/scripts/build_azuresdk.bat +++ b/scripts/build_azuresdk.bat @@ -27,7 +27,7 @@ if %ERRORLEVEL% NEQ 0 goto :error call "%scriptdir%utils.bat" :setup_visual_studio %vs_version% if %ERRORLEVEL% NEQ 0 goto :error -set curdir=%cd% +set currdir=%cd% if /I "%platform%"=="x64" ( set engine_dir=Program Files @@ -71,7 +71,7 @@ if %ERRORLEVEL% NEQ 0 goto :error msbuild INSTALL.vcxproj /p:Configuration=%build_type% if %ERRORLEVEL% NEQ 0 goto :error -cd "%curdir%" +cd "%currdir%" xcopy /S /E /I /Y /Q %AZURE_CMAKE_BUILD_DIR%\%build_type%\azure-storage-lite.lib %AZURE_INSTALL_DIR%\lib\ xcopy /S /E /I /Y /Q %AZURE_SOURCE_DIR%\include %AZURE_INSTALL_DIR%\include @@ -85,5 +85,5 @@ goto :success exit /b 0 :error -cd "%curdir%" +cd "%currdir%" exit /b 1 diff --git a/scripts/build_boost_source.bat b/scripts/build_boost_source.bat index 28f218e4e6..2a46152781 100644 --- a/scripts/build_boost_source.bat +++ b/scripts/build_boost_source.bat @@ -26,7 +26,7 @@ if %ERRORLEVEL% NEQ 0 goto :error call "%scriptdir%utils.bat" :setup_visual_studio %vs_version% if %ERRORLEVEL% NEQ 0 goto :error -set curdir=%cd% +set currdir=%cd% if /I "%platform%"=="x64" ( set engine_dir=Program Files @@ -68,7 +68,7 @@ if %ERRORLEVEL% NEQ 0 goto :error ::remove cmake files including local build path information rd /S /Q %BOOST_INSTALL_DIR%\lib\cmake -cd "%curdir%" +cd "%currdir%" echo === archiving the library call "%scriptdir%utils.bat" :zip_file boost %boost_version% @@ -80,5 +80,5 @@ goto :success exit /b 0 :error -cd "%curdir%" +cd "%currdir%" exit /b 1 diff --git a/scripts/build_cmocka.bat b/scripts/build_cmocka.bat index c1ad8bff52..630b067eac 100644 --- a/scripts/build_cmocka.bat +++ b/scripts/build_cmocka.bat @@ -29,7 +29,7 @@ if %ERRORLEVEL% NEQ 0 goto :error call "%scriptdir%utils.bat" :setup_visual_studio %vs_version% if %ERRORLEVEL% NEQ 0 goto :error -set curdir=%cd% +set currdir=%cd% set target_name=cmocka_a.lib call "%scriptdir%utils.bat" :setup_visual_studio %vs_version% @@ -40,7 +40,7 @@ set INSTALL_DIR=%TMP%\cmocka rd /S /Q "%INSTALL_DIR%" md "%INSTALL_DIR%" -cd "%curdir%\deps\%CMOCKA_DIR%" +cd "%currdir%\deps\%CMOCKA_DIR%" set cmake_dir=cmake-build-%arcdir%-%vs_version%-%build_type% rd /S /Q %cmake_dir% md %cmake_dir% @@ -56,7 +56,7 @@ cmake --build . --config %build_type% if %ERRORLEVEL% NEQ 0 goto :error echo === staging cmocka -cd "%curdir%" +cd "%currdir%" rmdir /q /s .\deps-build\%build_dir%\cmocka md .\deps-build\%build_dir%\cmocka\include md .\deps-build\%build_dir%\cmocka\lib @@ -77,9 +77,9 @@ if %ERRORLEVEL% NEQ 0 goto :error goto :success :success -cd "%curdir%" +cd "%currdir%" exit /b 0 :error -cd "%curdir%" +cd "%currdir%" exit /b 1 diff --git a/scripts/build_curl.bat b/scripts/build_curl.bat index b770c6ffaa..093a2d11a6 100644 --- a/scripts/build_curl.bat +++ b/scripts/build_curl.bat @@ -1,13 +1,6 @@ :: :: Build Curl :: GitHub repo: https://github.com/curl/curl.git -:: -:: Prerequisite: -:: - VC 2015 or 2017 -:: Arguments: -:: - x86 / x64 -:: - Debug / Release -:: - vs14 / vs15 @echo off set CURL_SRC_VERSION=8.10.1 @@ -34,7 +27,7 @@ set dynamic_runtime=%4 set scriptdir=%~dp0 call "%scriptdir%_init.bat" %platform% %build_type% %vs_version% if %ERRORLEVEL% NEQ 0 goto :error -set curdir=%cd% +set currdir=%cd% if /I "%platform%"=="x64" ( set openssl_target=VC-WIN64A @@ -96,7 +89,7 @@ copy /v /y .\deps-build\%build_dir%\oob\include\*.h %curl_dep%\include if %ERRORLEVEL% NEQ 0 goto :error echo === building curl -cd "%curdir%" +cd "%currdir%" set install_dir=.\deps\%CURL_DIR%\builds\libcurl-vc%vc_version%-%arch%-%buildtype%-static-ssl-static-zlib-static-ipv6-sspi rmdir /S /Q %install_dir%-obj rmdir /S /Q %install_dir%-obj-curl @@ -116,7 +109,7 @@ nmake ^ MACHINE=%arch% if %ERRORLEVEL% NEQ 0 goto :error -cd "%curdir%" +cd "%currdir%" rd /s /q .\deps-build\%build_dir%\curl md .\deps-build\%build_dir%\curl\bin md .\deps-build\%build_dir%\curl\lib @@ -142,9 +135,9 @@ call "%scriptdir%utils.bat" :zip_file curl %curl_version% if %ERRORLEVEL% NEQ 0 goto :error :success -cd "%curdir%" +cd "%currdir%" exit /b 0 :error -cd "%curdir%" +cd "%currdir%" exit /b 1 diff --git a/scripts/build_dependencies.bat b/scripts/build_dependencies.bat new file mode 100644 index 0000000000..0096059311 --- /dev/null +++ b/scripts/build_dependencies.bat @@ -0,0 +1,49 @@ +:: +:: Build Dependencies +:: +:: Prerequisite: +:: - VC 2015, 2017, 2019 or 2022 +:: Arguments: +:: - x86 / x64 +:: - Debug / Release +:: - vs14 / vs15 / vs16 / vs17 +:: - ON / OFF +@echo off + +call :build %platform% %build_type% %vs_version% OFF +if %ERRORLEVEL% NEQ 0 exit /b 1 +exit /b 0 + +:build +set platform=%1 +set build_type=%2 +set vs_version=%3 +set dynamic_runtime=%4 + +set scriptdir=%~dp0 +call "%scriptdir%build_arrow.bat" :build %platform% %build_type% %vs_version% %dynamic_runtime% +if %ERRORLEVEL% NEQ 0 goto :error +call "%scriptdir%build_zlib.bat" :build %platform% %build_type% %vs_version% %dynamic_runtime% +if %ERRORLEVEL% NEQ 0 goto :error +call "%scriptdir%build_openssl.bat" :build %platform% %build_type% %vs_version% %dynamic_runtime% +if %ERRORLEVEL% NEQ 0 goto :error +call "%scriptdir%build_oob.bat" :build %platform% %build_type% %vs_version% %dynamic_runtime% +if %ERRORLEVEL% NEQ 0 goto :error +call "%scriptdir%build_curl.bat" :build %platform% %build_type% %vs_version% %dynamic_runtime% +if %ERRORLEVEL% NEQ 0 goto :error +call "%scriptdir%build_awssdk.bat" :build %platform% %build_type% %vs_version% %dynamic_runtime% +if %ERRORLEVEL% NEQ 0 goto :error +call "%scriptdir%build_azuresdk.bat" :build %platform% %build_type% %vs_version% %dynamic_runtime% +if %ERRORLEVEL% NEQ 0 goto :error +call "%scriptdir%build_picojson.bat" :build %platform% %build_type% %vs_version% %dynamic_runtime% +if %ERRORLEVEL% NEQ 0 goto :error +call "%scriptdir%build_cmocka.bat" :build %platform% %build_type% %vs_version% %dynamic_runtime% +if %ERRORLEVEL% NEQ 0 goto :error + +:success +cd "%curdir%" +exit /b 0 + +:error +cd "%curdir%" +exit /b 1 diff --git a/scripts/build_dependencies.sh b/scripts/build_dependencies.sh index 19f68f01b6..4e8e8a32f3 100755 --- a/scripts/build_dependencies.sh +++ b/scripts/build_dependencies.sh @@ -15,11 +15,12 @@ source $DIR/_init.sh $@ if [[ "$PLATFORM" == "linux" ]]; then source $DIR/build_uuid.sh -t $target fi -source $DIR/build_zlib.sh -t $target source $DIR/build_openssl.sh -t $target +source $DIR/build_zlib.sh -t $target source $DIR/build_oob.sh -t $target source $DIR/build_curl.sh -t $target source $DIR/build_awssdk.sh -t $target -source $DIR/build_arrow.sh -t $target -source $DIR/build_cmocka.sh -t Debug source $DIR/build_azuresdk.sh -t $target +source $DIR/build_picojson.sh -t $target +source $DIR/build_cmocka.sh -t $target +source $DIR/build_arrow.sh -t $target diff --git a/scripts/build_libsnowflakeclient.bat b/scripts/build_libsnowflakeclient.bat index c355f02f83..aaec2065c8 100644 --- a/scripts/build_libsnowflakeclient.bat +++ b/scripts/build_libsnowflakeclient.bat @@ -5,7 +5,11 @@ set scriptdir=%~dp0 for /f "tokens=3" %%A in ('findstr SF_API_VERSION %scriptdir%..\include\snowflake\version.h') do @set V=%%A set libsnowflakeclient_version=%v:"=% -call %* +if "%*"=="" ( + call :build %platform% %build_type% %vs_version% OFF ON +) else ( + call %* +) goto :EOF :get_version @@ -41,7 +45,7 @@ echo === build_tests: %build_tests% call "%scriptdir%_init.bat" %platform% %build_type% %vs_version% if %ERRORLEVEL% NEQ 0 goto :error -set curdir=%cd% +set currdir=%cd% call "%scriptdir%utils.bat" :setup_visual_studio %vs_version% @@ -69,7 +73,7 @@ msbuild ALL_BUILD.vcxproj /property:Configuration=%build_type% if %ERRORLEVEL% NEQ 0 goto :error -cd "%curdir%" +cd "%currdir%" rd /s /q .\deps-build\%build_dir%\libsnowflakeclient if %ERRORLEVEL% NEQ 0 goto :error @@ -107,9 +111,9 @@ if defined JENKINS_URL ( echo === No zip file is created. ) :success -cd "%curdir%" +cd "%currdir%" exit /b 0 :error -cd "%curdir%" +cd "%currdir%" exit /b 1 diff --git a/scripts/build_oob.bat b/scripts/build_oob.bat index fbbfc5538f..1f568f6c38 100644 --- a/scripts/build_oob.bat +++ b/scripts/build_oob.bat @@ -25,7 +25,7 @@ set scriptdir=%~dp0 call "%scriptdir%\_init.bat" %platform% %build_type% %vs_version% if %ERRORLEVEL% NEQ 0 goto :error -set curdir=%cd% +set currdir=%cd% if /I "%platform%"=="x64" ( set engine_dir=Program Files @@ -51,7 +51,7 @@ call "%scriptdir%utils.bat" :setup_visual_studio %vs_version% if %ERRORLEVEL% NEQ 0 goto :error @echo ====== Building oob -set OOB_SOURCE_DIR=%curdir%\deps\%OOB_DIR% +set OOB_SOURCE_DIR=%currdir%\deps\%OOB_DIR% cd %OOB_SOURCE_DIR% set CURL_DIR=curl @@ -59,7 +59,7 @@ nmake -f Makefile.msc clean nmake -f Makefile.msc echo === Staging oob -cd "%curdir%" +cd "%currdir%" rd /q /s .\deps-build\%build_dir%\oob md .\deps-build\%build_dir%\oob\include md .\deps-build\%build_dir%\oob\lib @@ -76,9 +76,9 @@ goto :success :success -cd "%curdir%" +cd "%currdir%" exit /b 0 :error -cd "%curdir%" +cd "%currdir%" exit /b 1 diff --git a/scripts/build_oob.sh b/scripts/build_oob.sh index 2d5ce9140d..e0bd7d4afc 100755 --- a/scripts/build_oob.sh +++ b/scripts/build_oob.sh @@ -60,6 +60,7 @@ elif [[ "$PLATFORM" == "darwin" ]]; then export CFLAGS="-mmacosx-version-min=10.14 -arch $ARCH -Xarch_$ARCH" make LIB=libtelemetry.a fi + export AR= else echo "[ERROR] Unknown platform: $PLATFORM" exit 1 diff --git a/scripts/build_openssl.bat b/scripts/build_openssl.bat index 751c3cc9da..2fd24ccc70 100644 --- a/scripts/build_openssl.bat +++ b/scripts/build_openssl.bat @@ -1,13 +1,6 @@ :: :: Build OpenSSL :: GitHub repo: https://github.com/openssl/openssl.git -:: -:: Prerequisite: -:: - VC 2015 or 2017 -:: Arguments: -:: - x86 / x64 -:: - Debug / Release -:: - vs14 / vs15 @echo off set OPENSSL_SRC_VERSION=3.0.15 @@ -41,7 +34,7 @@ set "path=%scriptdir%..\ci\tools;%path%" call "%scriptdir%_init.bat" %platform% %build_type% %vs_version% if %ERRORLEVEL% NEQ 0 goto :error -set curdir=%cd% +set currdir=%cd% if /I "%platform%"=="x64" ( set openssl_target=VC-WIN64A @@ -65,7 +58,7 @@ set ssl_target_name=libssl_a.lib call "%scriptdir%utils.bat" :setup_visual_studio %vs_version% -echo === building openssl: %curdir%\..\deps\%OPENSSL_DIR% +echo === building openssl: %currdir%\..\deps\%OPENSSL_DIR% cd "%scriptdir%..\deps\%OPENSSL_DIR%" echo === %PERL_EXE% Configure %openssl_debug_option% %openssl_target% no-shared enable-fips /ZH:SHA_256 /Qspectre /sdl %PERL_EXE% Configure %openssl_debug_option% %openssl_target% no-shared enable-fips /ZH:SHA_256 /Qspectre /sdl @@ -81,13 +74,13 @@ if %ERRORLEVEL% NEQ 0 goto :error REM no doc build nmake install_sw install_ssldirs DESTDIR=.\_install if %ERRORLEVEL% NEQ 0 goto :error -cd "%curdir%" +cd "%currdir%" echo === staging openssl artifacts -rd /S /Q %curdir%\deps-build\%build_dir%\openssl -md "%curdir%\deps-build\%build_dir%\openssl\bin" -md "%curdir%\deps-build\%build_dir%\openssl\include\openssl" -md "%curdir%\deps-build\%build_dir%\openssl\lib" +rd /S /Q %currdir%\deps-build\%build_dir%\openssl +md "%currdir%\deps-build\%build_dir%\openssl\bin" +md "%currdir%\deps-build\%build_dir%\openssl\include\openssl" +md "%currdir%\deps-build\%build_dir%\openssl\lib" if %ERRORLEVEL% NEQ 0 goto :error copy /v /y ^ @@ -129,9 +122,9 @@ call "%scriptdir%utils.bat" :zip_file openssl %openssl_version% if %ERRORLEVEL% NEQ 0 goto :error :success -cd "%curdir%" +cd "%currdir%" exit /b 0 :error -cd "%curdir%" +cd "%currdir%" exit /b 1 diff --git a/scripts/build_picojson.bat b/scripts/build_picojson.bat index 38f4ffae98..1e3c49b2d1 100644 --- a/scripts/build_picojson.bat +++ b/scripts/build_picojson.bat @@ -30,7 +30,7 @@ md %PICOJSON_INSTALL_DIR% md %PICOJSON_INSTALL_DIR%\include copy %PICOJSON_SOURCE_DIR%\picojson.h %PICOJSON_INSTALL_DIR%\include -cd "%curdir%" +cd "%currdir%" echo === archiving the library call "%scriptdir%utils.bat" :zip_file picojson %picojson_version% @@ -42,5 +42,5 @@ goto :success exit /b 0 :error -cd "%curdir%" +cd "%currdir%" exit /b 1 diff --git a/scripts/build_zlib.bat b/scripts/build_zlib.bat index a6b2375aa1..52b1fbbb29 100644 --- a/scripts/build_zlib.bat +++ b/scripts/build_zlib.bat @@ -2,13 +2,6 @@ :: Build zlib for Windows :: GitHub repo: https://github.com/madler/zlib.git :: -:: Prerequisite: -:: - VC 2015 or 2017 -:: Arguments: -:: - x86 / x64 -:: - Debug / Release -:: - vs14 / vs15 -:: @echo off set ZLIB_SRC_VERSION=1.3.1 set ZLIB_BUILD_VERSION=6 @@ -37,7 +30,7 @@ set source_name="zlibstatic.lib" set scriptdir=%~dp0 call "%scriptdir%_init.bat" %platform% %build_type% %vs_version% if %ERRORLEVEL% NEQ 0 goto :error -set curdir=%cd% +set currdir=%cd% set target_name=zlib_a.lib if "%build_type%"=="Debug" ( @@ -50,8 +43,8 @@ if "%build_type%"=="Release" ( call "%scriptdir%utils.bat" :setup_visual_studio %vs_version% echo === building zlib -echo %curdir%\deps\%ZLIB_DIR% -cd %curdir%\deps\%ZLIB_DIR% +echo %currdir%\deps\%ZLIB_DIR% +cd %currdir%\deps\%ZLIB_DIR% if %ERRORLEVEL% NEQ 0 goto :error set cmake_dir=cmake-build-%arcdir%-%vs_version%-%build_type% @@ -69,7 +62,7 @@ cmake --build . --config %build_type% if %ERRORLEVEL% NEQ 0 goto :error echo === staging zlib -cd "%curdir%" +cd "%currdir%" rd /q /s .\deps-build\%build_dir%\zlib md .\deps-build\%build_dir%\zlib\include md .\deps-build\%build_dir%\zlib\lib @@ -85,9 +78,9 @@ call "%scriptdir%utils.bat" :zip_file zlib %zlib_version% if %ERRORLEVEL% NEQ 0 goto :error :success -cd "%curdir%" +cd "%currdir%" exit /b 0 :error -cd "%curdir%" +cd "%currdir%" exit /b 1 diff --git a/scripts/run_tests.sh b/scripts/run_tests.sh new file mode 100755 index 0000000000..032f201555 --- /dev/null +++ b/scripts/run_tests.sh @@ -0,0 +1,21 @@ +#!/bin/bash -e +# +# Run test cases +# +function usage() { + echo "Usage: `basename $0` [-t ]" + echo "Run test cases" + echo "-t : Test with Release or Debug builds" + exit 2 +} + +set -o pipefail +DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" +target=Debug +source $DIR/_init.sh $@ +source $DIR/env.sh + +pushd $DIR/../cmake-build-$target + $CTEST -V -E "valgrind.*" +popd + diff --git a/tests/test_perf_string_reads_and_writes.c b/tests/test_perf_string_reads_and_writes.c index 81948c5763..41dfa27569 100644 --- a/tests/test_perf_string_reads_and_writes.c +++ b/tests/test_perf_string_reads_and_writes.c @@ -139,6 +139,7 @@ void test_col_buffer_copy_unknown_size_dynamic_memory_helper(sf_bool use_arrow) } void test_col_buffer_copy_concat_multiple_rows_helper(sf_bool use_arrow) { + SF_STATUS status; SF_CONNECT *sf = NULL; SF_STMT *sfstmt = NULL; struct timespec begin, end; @@ -158,7 +159,14 @@ void test_col_buffer_copy_concat_multiple_rows_helper(sf_bool use_arrow) { ? "alter session set C_API_QUERY_RESULT_FORMAT=ARROW_FORCE" : "alter session set C_API_QUERY_RESULT_FORMAT=JSON"); - snowflake_query(sfstmt, "select * from public_domain_books order by id, text_part;", 0); + status = snowflake_query(sfstmt, "select * from public_domain_books order by id, text_part;", 0); + if (SF_STATUS_SUCCESS != status) + { + // skip if no access + snowflake_stmt_term(sfstmt); + snowflake_term(sf); + return; + } // Begin timing clock_gettime(clk_id, &begin); diff --git a/tests/test_unit_logger.c b/tests/test_unit_logger.c index 1e756b618d..8428f0f461 100644 --- a/tests/test_unit_logger.c +++ b/tests/test_unit_logger.c @@ -124,7 +124,7 @@ void test_mask_secret_log(void **unused) { fseek(fp, 0, SEEK_SET); log_trace("%s", logtext[i][0]); fseek(fp, 0, SEEK_SET); - getline(&line, &len, fp); + len = getline(&line, &len, fp); if (i != 0) { assert_null(strstr(line, logtext[i][0])); diff --git a/tests/test_unit_put_fast_fail.cpp b/tests/test_unit_put_fast_fail.cpp index 2b5818fc7d..835a56ff70 100644 --- a/tests/test_unit_put_fast_fail.cpp +++ b/tests/test_unit_put_fast_fail.cpp @@ -422,7 +422,7 @@ static int gr_teardown(void **unused) system(rmCmd); #else sprintf(rmCmd, "rm -rf %s", testDir.c_str()); - system(rmCmd); + (void)system(rmCmd); #endif return 0; } From 65ef675ae95ab01966d58ed57108ee7b7e101dd0 Mon Sep 17 00:00:00 2001 From: Maxim Mishchenko Date: Tue, 17 Dec 2024 09:59:16 +0100 Subject: [PATCH 13/15] SNOW-1858503 fix libsnowflakeclient Windows builds on Actions (#798) --- scripts/build_picojson.bat | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/build_picojson.bat b/scripts/build_picojson.bat index 1e3c49b2d1..b60eb6e790 100644 --- a/scripts/build_picojson.bat +++ b/scripts/build_picojson.bat @@ -16,6 +16,8 @@ set dynamic_runtime=%4 set scriptdir=%~dp0 call "%scriptdir%_init.bat" %platform% %build_type% %vs_version% if %ERRORLEVEL% NEQ 0 goto :error +set currdir=%cd% + call "%scriptdir%utils.bat" :setup_visual_studio %vs_version% if %ERRORLEVEL% NEQ 0 goto :error From 3f9afd7db73f4c4b49dded7b6cf32f863d441456 Mon Sep 17 00:00:00 2001 From: Maxim Mishchenko Date: Fri, 20 Dec 2024 16:31:29 +0100 Subject: [PATCH 14/15] SNOW-1865097 use explicit casts to compare doubles against integer limits (#802) --- cpp/lib/ArrowChunkIterator.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cpp/lib/ArrowChunkIterator.cpp b/cpp/lib/ArrowChunkIterator.cpp index 8aa72de39f..8282698e17 100644 --- a/cpp/lib/ArrowChunkIterator.cpp +++ b/cpp/lib/ArrowChunkIterator.cpp @@ -361,7 +361,7 @@ ArrowChunkIterator::getCellAsInt64(size_t colIdx, int64 * out_data, bool rawData return status; } - if ((floatData > SF_INT64_MAX) || (floatData < SF_INT64_MIN)) + if (floatData > static_cast(SF_INT64_MAX) || floatData < static_cast(SF_INT64_MIN)) { m_parent->setError(SF_STATUS_ERROR_OUT_OF_RANGE, "Value out of range for int64."); @@ -408,7 +408,7 @@ ArrowChunkIterator::getCellAsInt64(size_t colIdx, int64 * out_data, bool rawData case arrow::Type::type::DOUBLE: { double dblData = m_columns[colIdx].arrowDouble->Value(m_currRowIndexInBatch); - if ((dblData > SF_INT64_MAX) || (dblData < SF_INT64_MIN)) + if (dblData > static_cast(SF_INT64_MAX) || dblData < static_cast(SF_INT64_MIN)) { m_parent->setError(SF_STATUS_ERROR_OUT_OF_RANGE, "Value out of range for int64."); @@ -542,7 +542,7 @@ ArrowChunkIterator::getCellAsUint64(size_t colIdx, uint64 * out_data) case arrow::Type::type::DOUBLE: { double dblData = m_columns[colIdx].arrowDouble->Value(m_currRowIndexInBatch); - if ((dblData > SF_UINT64_MAX) || (dblData < SF_INT64_MIN)) + if (dblData > static_cast(SF_UINT64_MAX) || dblData < static_cast(SF_INT64_MIN)) { m_parent->setError(SF_STATUS_ERROR_OUT_OF_RANGE, "Value out of range for uint64."); From d3cef59c171f5be53f44ecb4d72f86d4ad163b64 Mon Sep 17 00:00:00 2001 From: Harry Xi Date: Tue, 7 Jan 2025 01:33:56 -0800 Subject: [PATCH 15/15] NO-SNOW: Update python version to fix build issue (#805) --- .github/workflows/build-test.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml index ae11ecc52d..bab19e2cb4 100644 --- a/.github/workflows/build-test.yml +++ b/.github/workflows/build-test.yml @@ -47,7 +47,7 @@ jobs: if: github.ref_name == github.event.repository.default_branch && matrix.cloud_provider == 'AWS' - uses: actions/setup-python@v5 with: - python-version: '3.7' + python-version: '3.13' architecture: 'x64' - name: Test shell: bash @@ -92,7 +92,7 @@ jobs: if: github.ref_name == github.event.repository.default_branch && matrix.cloud_provider == 'AWS' - uses: actions/setup-python@v5 with: - python-version: '3.7' + python-version: '3.13' architecture: 'x64' - name: Test shell: cmd @@ -138,7 +138,7 @@ jobs: if: github.ref_name == github.event.repository.default_branch && matrix.cloud_provider == 'AWS' - uses: actions/setup-python@v5 with: - python-version: '3.7' + python-version: '3.13' architecture: 'x64' - name: Test shell: cmd @@ -206,7 +206,7 @@ jobs: run: ci/build_linux.sh - uses: actions/setup-python@v5 with: - python-version: '3.7' + python-version: '3.13' architecture: 'x64' - name: Test on AWS shell: bash