From 3e2a43e2afb22fd5d856f4768bd0207dc65ff7d3 Mon Sep 17 00:00:00 2001 From: Maxim Devaev Date: Tue, 7 Jun 2022 02:54:39 +0300 Subject: [PATCH] speed up cppcheck --- linters/cppcheck.h | 3 +++ linters/tox.ini | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/linters/cppcheck.h b/linters/cppcheck.h index 4918261..72c1730 100644 --- a/linters/cppcheck.h +++ b/linters/cppcheck.h @@ -1,3 +1,6 @@ #define CHAR_BIT 8 #define WITH_GPIO #define JANUS_PLUGIN_INIT(...) { __VA_ARGS__ } +#define EVTHREAD_USE_PTHREADS_IMPLEMENTED 1 +#define CLOCK_MONOTONIC_RAW 1 +#define CLOCK_MONOTONIC_FAST 1 diff --git a/linters/tox.ini b/linters/tox.ini index d1e262c..300a4ce 100644 --- a/linters/tox.ini +++ b/linters/tox.ini @@ -9,6 +9,7 @@ changedir = /src [testenv:cppcheck] whitelist_externals = cppcheck commands = cppcheck \ + -j4 \ --force \ --std=c11 \ --error-exitcode=1 \ @@ -19,7 +20,7 @@ commands = cppcheck \ --inline-suppr \ --library=python \ --include=linters/cppcheck.h \ - src python/ustreamer.c janus/rtp.h janus/rtp.c janus/plugin.c + src python/*.? janus/*.? [testenv:flake8] whitelist_externals = bash