cppcheck: update to 2.17.1.

This commit is contained in:
Duncaen 2025-05-15 18:48:38 +02:00
parent 8320ca7f3a
commit c3caeb9511
No known key found for this signature in database
GPG key ID: 335C1D17EC3D6E35
2 changed files with 16 additions and 7 deletions

View file

@ -1,11 +1,20 @@
--- a/test/signal/test-signalhandler.cpp
+++ b/test/signal/test-signalhandler.cpp
@@ -46,7 +46,7 @@
@@ -52,7 +52,7 @@
++*(int*)nullptr;
}
/*static*/ void my_fpe()
{
-#if !defined(__APPLE__)
+#if !defined(__APPLE__) && defined(__GLIBC__)
feenableexcept(FE_ALL_EXCEPT); // TODO: check result
/*static*/ int my_fpe() // NOLINT(misc-use-internal-linkage)
{
if (feenableexcept(FE_ALL_EXCEPT) == -1)
@@ -78,7 +78,7 @@
my_abort();
else if (strcmp(argv[1], "segv") == 0)
my_segv();
-#if !defined(__APPLE__)
+#if !defined(__APPLE__) && defined(__GLIBC__)
else if (strcmp(argv[1], "fpe") == 0)
return my_fpe();
#endif
std::feraiseexcept(FE_UNDERFLOW | FE_DIVBYZERO); // TODO: check result

View file

@ -1,6 +1,6 @@
# Template file for 'cppcheck'
pkgname=cppcheck
version=2.16.2
version=2.17.1
revision=1
build_style=cmake
configure_args="
@ -20,7 +20,7 @@ license="GPL-3.0-or-later"
homepage="http://cppcheck.sourceforge.net"
changelog="https://sourceforge.net/p/cppcheck/news/"
distfiles="https://github.com/danmar/cppcheck/archive/refs/tags/${version}.tar.gz"
checksum=521b996cb56b0c30f89e022abcb50aef85d7219cb7a7162fa81fe40fe6394206
checksum=bfd681868248ec03855ca7c2aea7bcb1f39b8b18860d76aec805a92a967b966c
export CXXFLAGS="-DNDEBUG"