Fixed build errors
This commit is contained in:
@@ -26,10 +26,10 @@ jobs:
|
|||||||
submodules: recursive
|
submodules: recursive
|
||||||
|
|
||||||
- name: Checkout cppcheck
|
- name: Checkout cppcheck
|
||||||
uses: actions/checkout@v4
|
run: |
|
||||||
with:
|
git clone https://github.com/danmar/cppcheck cppcheck-main
|
||||||
repository: danmar/cppcheck
|
cd cppcheck-main
|
||||||
path: cppcheck-main
|
git checkout 6d7dc76052ad36128fae93f994d6a2bf57e93103
|
||||||
|
|
||||||
- name: Build cppcheck
|
- name: Build cppcheck
|
||||||
run: |
|
run: |
|
||||||
@@ -74,10 +74,10 @@ jobs:
|
|||||||
submodules: recursive
|
submodules: recursive
|
||||||
|
|
||||||
- name: Checkout cppcheck
|
- name: Checkout cppcheck
|
||||||
uses: actions/checkout@v4
|
run: |
|
||||||
with:
|
git clone https://github.com/danmar/cppcheck cppcheck-main
|
||||||
repository: danmar/cppcheck
|
cd cppcheck-main
|
||||||
path: cppcheck-main
|
git checkout 6d7dc76052ad36128fae93f994d6a2bf57e93103
|
||||||
|
|
||||||
- name: Build cppcheck
|
- name: Build cppcheck
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
+1
-1
@@ -17,7 +17,7 @@ if (CMAKE_CXX_COMPILER_ID MATCHES GNU)
|
|||||||
set(GENERAL_FLAGS "${GENERAL_FLAGS} -fno-omit-frame-pointer -fsanitize=address")
|
set(GENERAL_FLAGS "${GENERAL_FLAGS} -fno-omit-frame-pointer -fsanitize=address")
|
||||||
endif()
|
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)
|
if (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 7.5.0)
|
||||||
set(WARNING_FLAGS "${WARNING_FLAGS} -Wstrict-overflow=2")
|
set(WARNING_FLAGS "${WARNING_FLAGS} -Wstrict-overflow=2")
|
||||||
|
|||||||
Reference in New Issue
Block a user