Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

user/cppcheck: update to 2.17.1 #3674

Merged
merged 1 commit into from
Feb 27, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 16 additions & 9 deletions user/cppcheck/patches/feenableexcept.patch
Original file line number Diff line number Diff line change
@@ -1,15 +1,22 @@
Patch-Source: https://gitlab.alpinelinux.org/alpine/aports/-/blob/8dd3d8861eff2b4b5171d861e9cde50a92adb93b/community/cppcheck/feenableexcept.patch
diff --git a/test/signal/test-signalhandler.cpp b/test/signal/test-signalhandler.cpp
index 023137c2a..92b3fe8af 100644
index a3e77b08e..f8c3503a2 100644
--- a/test/signal/test-signalhandler.cpp
+++ b/test/signal/test-signalhandler.cpp
@@ -46,9 +46,6 @@
@@ -52,17 +52,13 @@
++*(int*)nullptr;
}

/*static*/ void my_fpe() // NOLINT(misc-use-internal-linkage)
{
-#if !defined(__APPLE__)
- feenableexcept(FE_ALL_EXCEPT); // TODO: check result
-#endif
std::feraiseexcept(FE_UNDERFLOW | FE_DIVBYZERO); // TODO: check result
// TODO: to generate this via code
/*static*/ int my_fpe() // NOLINT(misc-use-internal-linkage)
{
- if (feenableexcept(FE_ALL_EXCEPT) == -1)
- return 2;
if (std::feraiseexcept(FE_ALL_EXCEPT) != 0)
return 3;
return 1 % -1;
}
#endif
-#endif

int main(int argc, const char * const argv[])
{
11 changes: 0 additions & 11 deletions user/cppcheck/patches/libcpp.patch

This file was deleted.

4 changes: 2 additions & 2 deletions user/cppcheck/template.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
pkgname = "cppcheck"
pkgver = "2.16.2"
pkgver = "2.17.1"
pkgrel = 0
build_style = "cmake"
configure_args = [
Expand Down Expand Up @@ -31,7 +31,7 @@
license = "GPL-3.0-or-later"
url = "https://cppcheck.sourceforge.io"
source = f"https://github.com/danmar/cppcheck/archive/refs/tags/{pkgver}.tar.gz"
sha256 = "521b996cb56b0c30f89e022abcb50aef85d7219cb7a7162fa81fe40fe6394206"
sha256 = "bfd681868248ec03855ca7c2aea7bcb1f39b8b18860d76aec805a92a967b966c"
# TestSymbolDatabase::enum14 test failed
# (0x7FFFFFFFFFFFFFFF + 1 cause signed overflow)
hardening = ["!int"]
Expand Down
Loading