mirror of
https://github.com/void-linux/void-packages.git
synced 2025-07-29 08:52:56 +02:00
cppcheck: update to 2.17.1.
This commit is contained in:
parent
8320ca7f3a
commit
c3caeb9511
2 changed files with 16 additions and 7 deletions
|
@ -1,11 +1,20 @@
|
||||||
--- a/test/signal/test-signalhandler.cpp
|
--- a/test/signal/test-signalhandler.cpp
|
||||||
+++ b/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__)
|
||||||
+#if !defined(__APPLE__) && defined(__GLIBC__)
|
+#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
|
#endif
|
||||||
std::feraiseexcept(FE_UNDERFLOW | FE_DIVBYZERO); // TODO: check result
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# Template file for 'cppcheck'
|
# Template file for 'cppcheck'
|
||||||
pkgname=cppcheck
|
pkgname=cppcheck
|
||||||
version=2.16.2
|
version=2.17.1
|
||||||
revision=1
|
revision=1
|
||||||
build_style=cmake
|
build_style=cmake
|
||||||
configure_args="
|
configure_args="
|
||||||
|
@ -20,7 +20,7 @@ license="GPL-3.0-or-later"
|
||||||
homepage="http://cppcheck.sourceforge.net"
|
homepage="http://cppcheck.sourceforge.net"
|
||||||
changelog="https://sourceforge.net/p/cppcheck/news/"
|
changelog="https://sourceforge.net/p/cppcheck/news/"
|
||||||
distfiles="https://github.com/danmar/cppcheck/archive/refs/tags/${version}.tar.gz"
|
distfiles="https://github.com/danmar/cppcheck/archive/refs/tags/${version}.tar.gz"
|
||||||
checksum=521b996cb56b0c30f89e022abcb50aef85d7219cb7a7162fa81fe40fe6394206
|
checksum=bfd681868248ec03855ca7c2aea7bcb1f39b8b18860d76aec805a92a967b966c
|
||||||
|
|
||||||
export CXXFLAGS="-DNDEBUG"
|
export CXXFLAGS="-DNDEBUG"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue