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