2025-11-24 00:59 ftp://ftp.de.debian.org/debian/pool/main/s/silentjack/silentjack_0.3.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --inconclusive --enable=style,information --inline-suppr --template=daca2 --disable=missingInclude --suppress=unmatchedSuppression --check-library --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning --suppress=normalCheckLevelConditionExpressions -D__GNUC__ --platform=unix64 -j4 platform: Linux-5.4.0-216-generic-x86_64-with-glibc2.29 python: 3.8.10 client-version: 1.3.69 compiler: g++ (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0 cppcheck: head 2.18.0 head-info: cb76e52 (2025-11-22 14:47:37 +0100) count: 7 7 elapsed-time: 0.0 0.1 head-timing-info: old-timing-info: head results: silentjack-0.3/silentjack.c:99:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] silentjack-0.3/silentjack.c:115:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable JackNoStartServer [valueFlowBailoutIncompleteVar] silentjack-0.3/silentjack.c:236:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] silentjack-0.3/silentjack.c:270:3: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] silentjack-0.3/silentjack.c:270:11: error: Invalid usleep() argument nr 1. The value is 1000000 but the valid values are '0:999999'. [invalidFunctionArg] silentjack-0.3/silentjack.c:65:31: style: Variable 'in' can be declared as pointer to const [constVariablePointer] silentjack-0.3/silentjack.c:106:35: style: Parameter 'arg' can be declared as pointer to const. However it seems that 'shutdown_callback_jack' is a callback function, if 'arg' is declared with const you might also need to cast function pointer(s). [constParameterCallback] silentjack-0.3/silentjack.c:132:28: note: You might need to cast the function pointer here silentjack-0.3/silentjack.c:106:35: note: Parameter 'arg' can be declared as pointer to const diff: DONE