From a3e8dc3f34668457e43ab683b44221a4a6101d63 Mon Sep 17 00:00:00 2001 From: Rokas Kupstys Date: Fri, 13 Nov 2020 12:07:32 +0200 Subject: [PATCH] CI: Fix deployment of PVS-Studio license + fix reported error. --- .github/workflows/static-analysis.yml | 5 ++--- imgui_internal.h | 1 + 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/static-analysis.yml b/.github/workflows/static-analysis.yml index 0b7ef3612..7a9b573ee 100644 --- a/.github/workflows/static-analysis.yml +++ b/.github/workflows/static-analysis.yml @@ -3,8 +3,6 @@ name: static-analysis on: push: {} pull_request: {} - schedule: - - cron: '0 9 * * *' jobs: PVS-Studio: @@ -16,16 +14,17 @@ jobs: - name: Install Dependencies env: + # The Secret variable setup in GitHub must be in format: "name_or_email key", on a single line PVS_STUDIO_LICENSE: ${{ secrets.PVS_STUDIO_LICENSE }} run: | if [[ "$PVS_STUDIO_LICENSE" != "" ]]; then - echo "$PVS_STUDIO_LICENSE" > pvs-studio.lic wget -q https://files.viva64.com/etc/pubkey.txt sudo apt-key add pubkey.txt sudo wget -O /etc/apt/sources.list.d/viva64.list https://files.viva64.com/etc/viva64.list sudo apt-get update sudo apt-get install -y pvs-studio + pvs-studio-analyzer credentials -o pvs-studio.lic $PVS_STUDIO_LICENSE fi - name: PVS-Studio static analysis diff --git a/imgui_internal.h b/imgui_internal.h index b46d665a3..c4d267e58 100644 --- a/imgui_internal.h +++ b/imgui_internal.h @@ -1368,6 +1368,7 @@ struct ImGuiContext FrameCount = 0; FrameCountEnded = FrameCountRendered = -1; WithinFrameScope = WithinFrameScopeWithImplicitWindow = WithinEndChild = false; + GcCompactAll = false; TestEngineHookItems = false; TestEngineHookIdInfo = 0; TestEngine = NULL;