upgpkg(main/cppcheck): update to 2.9

Signed-off-by: 2096779623 <admin@utermux.dev>
This commit is contained in:
2096779623 2022-08-29 21:03:40 +08:00 committed by buttaface
parent 37c1897ef3
commit 5a939e7661
2 changed files with 10 additions and 9 deletions

View File

@ -2,8 +2,8 @@ TERMUX_PKG_HOMEPAGE=https://github.com/danmar/cppcheck
TERMUX_PKG_DESCRIPTION="tool for static C/C++ code analysis"
TERMUX_PKG_LICENSE="GPL-3.0"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION="2.8.2"
TERMUX_PKG_VERSION="2.9"
TERMUX_PKG_AUTO_UPDATE=true
TERMUX_PKG_UPDATE_METHOD=repology # Upstream only releases major versions theough GitHub. Other minor updates are released using git tags, better rely on repology for updated versiom
TERMUX_PKG_SRCURL=https://github.com/danmar/cppcheck/archive/$TERMUX_PKG_VERSION.tar.gz
TERMUX_PKG_SHA256=30ba99ab54089c44b83f02e2453da046a7edff5237950d4a0eb1eba4afcb4f45
TERMUX_PKG_SHA256=56aee8b5bdf936ab7adc9ab43903ba2052f088695c80f047682024a1ed0ef3f3

View File

@ -1,11 +1,12 @@
--- ./cli/threadexecutor.cpp.orig 2021-10-26 21:30:46.557469590 +0530
+++ ./cli/threadexecutor.cpp 2021-10-26 21:32:35.957469548 +0530
@@ -149,7 +149,7 @@
diff -uNr cppcheck-2.9/cli/processexecutor.cpp cppcheck-2.9.mod/cli/processexecutor.cpp
--- cppcheck-2.9/cli/processexecutor.cpp 2022-08-28 20:43:18.000000000 +0800
+++ cppcheck-2.9.mod/cli/processexecutor.cpp 2022-08-29 21:18:31.413328864 +0800
@@ -193,7 +193,7 @@
bool ThreadExecutor::checkLoadAverage(size_t nchildren)
bool ProcessExecutor::checkLoadAverage(size_t nchildren)
{
-#if defined(__CYGWIN__) || defined(__QNX__) || defined(__HAIKU__) // getloadavg() is unsupported on Cygwin, Qnx, Haiku.
+#if defined(__CYGWIN__) || defined(__QNX__) || defined(__HAIKU__) || defined(__ANDROID__) // getloadavg() is unsupported on Cygwin, Qnx, Haiku, Android.
-#if defined(__QNX__) || defined(__HAIKU__) // getloadavg() is unsupported on Qnx, Haiku.
+#if defined(__QNX__) || defined(__HAIKU__) || defined(__ANDROID__) // getloadavg() is unsupported on Qnx, Haiku, Android.
(void)nchildren;
return true;
#else
if (!nchildren || !mSettings.loadAverage) {