move from unstable: cppcheck

This commit is contained in:
Leonid Pliushch 2021-10-08 17:51:32 +03:00
parent e65d3aa794
commit a777f84966
No known key found for this signature in database
GPG Key ID: 45F2964132545795
2 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1,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_VERSION=2.5
TERMUX_PKG_REVISION=1
TERMUX_PKG_SRCURL=https://github.com/danmar/cppcheck/archive/$TERMUX_PKG_VERSION.tar.gz
TERMUX_PKG_SHA256=dc27154d799935c96903dcc46653c526c6f4148a6912b77d3a50cb35dabd82e1
TERMUX_PKG_BLACKLISTED_ARCHES="i686"

View File

@ -0,0 +1,11 @@
--- cli/threadexecutor.cpp.orig 2019-11-08 23:29:10.428984535 +0000
+++ ./cli/threadexecutor.cpp 2019-11-08 23:29:51.245623336 +0000
@@ -143,7 +143,7 @@
bool ThreadExecutor::checkLoadAverage(size_t nchildren)
{
-#if defined(__CYGWIN__) || defined(__QNX__) // getloadavg() is unsupported on Cygwin, Qnx.
+#if defined(__CYGWIN__) || defined(__QNX__) || defined(__ANDROID__) // getloadavg() is unsupported on Cygwin, Qnx.
return true;
#else
if (!nchildren || !mSettings.loadAverage) {