From bfa30254df7c394c9a8f7e91472dc2a6921a691d Mon Sep 17 00:00:00 2001 From: SChernykh <15806605+SChernykh@users.noreply.github.com> Date: Wed, 28 May 2025 20:00:46 +0200 Subject: [PATCH] Fixed build errors --- .github/workflows/cppcheck.yml | 16 ++++++++-------- cmake/flags.cmake | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/cppcheck.yml b/.github/workflows/cppcheck.yml index d7002e0..6b8e280 100644 --- a/.github/workflows/cppcheck.yml +++ b/.github/workflows/cppcheck.yml @@ -26,10 +26,10 @@ jobs: submodules: recursive - name: Checkout cppcheck - uses: actions/checkout@v4 - with: - repository: danmar/cppcheck - path: cppcheck-main + run: | + git clone https://github.com/danmar/cppcheck cppcheck-main + cd cppcheck-main + git checkout 6d7dc76052ad36128fae93f994d6a2bf57e93103 - name: Build cppcheck run: | @@ -74,10 +74,10 @@ jobs: submodules: recursive - name: Checkout cppcheck - uses: actions/checkout@v4 - with: - repository: danmar/cppcheck - path: cppcheck-main + run: | + git clone https://github.com/danmar/cppcheck cppcheck-main + cd cppcheck-main + git checkout 6d7dc76052ad36128fae93f994d6a2bf57e93103 - name: Build cppcheck run: | diff --git a/cmake/flags.cmake b/cmake/flags.cmake index 08d901d..384013f 100644 --- a/cmake/flags.cmake +++ b/cmake/flags.cmake @@ -17,7 +17,7 @@ if (CMAKE_CXX_COMPILER_ID MATCHES GNU) set(GENERAL_FLAGS "${GENERAL_FLAGS} -fno-omit-frame-pointer -fsanitize=address") endif() - set(WARNING_FLAGS "-Wall -Wextra -Wcast-qual -Wlogical-op -Wundef -Wformat=2 -Wpointer-arith -Werror -Wno-error=inline -Wno-error=unused-function") + set(WARNING_FLAGS "-Wall -Wextra -Wcast-qual -Wlogical-op -Wundef -Wformat=2 -Wpointer-arith -Werror -Wno-error=inline -Wno-error=unused-function -Wno-error=strict-overflow") if (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 7.5.0) set(WARNING_FLAGS "${WARNING_FLAGS} -Wstrict-overflow=2")