2024-03-28 14:37 ftp://ftp.de.debian.org/debian/pool/main/m/muroard/muroard_0.1.14.orig.tar.gz cppcheck-options: --library=posix --library=gnu --showtime=top5 --check-library --inconclusive --enable=style,information --inline-suppr --disable=missingInclude --suppress=unmatchedSuppression --template=daca2 --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning --suppress=valueFlowBailoutIncompleteVar -D__GNUC__ --platform=unix64 -j4 platform: Linux-6.1.0-0.deb11.6-amd64-x86_64-with-glibc2.31 python: 3.9.2 client-version: 1.3.45 compiler: g++ (Debian 10.2.1-6) 10.2.1 20210110 cppcheck: head 2.13.0 head-info: 008884f (2024-03-28 10:36:15 +0100) count: 15 13 elapsed-time: 0.4 0.5 head-timing-info: Tokenizer::simplifyTokens1::ValueFlow: 0.259035s (avg. 0.259035s - 1 result(s)) valueFlowLifetime(tokenlist, errorLogger, settings): 0.12377s (avg. 0.0412567s - 3 result(s)) valueFlowCondition(SimpleConditionHandler{}, tokenlist, symboldatabase, errorLogger, settings, skippedFunctions): 0.063083s (avg. 0.0315415s - 2 result(s)) valueFlowForLoop(tokenlist, symboldatabase, errorLogger, settings): 0.025386s (avg. 0.012693s - 2 result(s)) valueFlowAfterAssign(tokenlist, symboldatabase, errorLogger, settings, skippedFunctions): 0.025339s (avg. 0.0126695s - 2 result(s)) Overall time: 0.274448s old-timing-info: Tokenizer::simplifyTokens1::ValueFlow: 0.31594s (avg. 0.31594s - 1 result(s)) valueFlowLifetime(tokenlist, errorLogger, settings): 0.189166s (avg. 0.0630553s - 3 result(s)) valueFlowCondition(SimpleConditionHandler{}, tokenlist, symboldatabase, errorLogger, settings, skippedFunctions): 0.051666s (avg. 0.025833s - 2 result(s)) valueFlowUninit(tokenlist, settings): 0.0217s (avg. 0.01085s - 2 result(s)) valueFlowAfterAssign(tokenlist, symboldatabase, errorLogger, settings, skippedFunctions): 0.019432s (avg. 0.009716s - 2 result(s)) Overall time: 0.332489s head results: muroard-0.1.14/clients.c:770:25: error: There is an unknown macro here somewhere. Configuration is required. If PACKAGE_VERSION is a macro then please configure it. [unknownMacro] muroard-0.1.14/dsp.c:77:12: style: Variable 'ds' can be declared as pointer to const [constVariablePointer] muroard-0.1.14/dsp.c:129:12: style: Variable 'ds' can be declared as pointer to const [constVariablePointer] muroard-0.1.14/muroard.c:127:26: error: There is an unknown macro here somewhere. Configuration is required. If PACKAGE_VERSION is a macro then please configure it. [unknownMacro] muroard-0.1.14/driver_wmm.c:56:12: style: struct member 'Anonymous2::idx' is never used. [unusedStructMember] muroard-0.1.14/driver_wmm.c:175:11: style: Variable 'mmres' is assigned a value that is never used. [unreadVariable] muroard-0.1.14/proto.c:64:4: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] muroard-0.1.14/proto.c:79:72: style: Parameter 'mes' can be declared as pointer to const [constParameterPointer] muroard-0.1.14/streams.c:460:23: style: Condition 'stream->iobuf==NULL' is always true [knownConditionTrueFalse] muroard-0.1.14/streams.c:458:22: note: Assuming that condition 'stream->iobuf==NULL' is not redundant muroard-0.1.14/streams.c:460:23: note: Condition 'stream->iobuf==NULL' is always true muroard-0.1.14/streams.c:548:58: style: Parameter 'info' can be declared as pointer to const [constParameterPointer] muroard-0.1.14/streams.c:396:3: portability: '(void*)stream->iobuf' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] muroard-0.1.14/network.c:157:16: style: Obsolescent function 'gethostbyname' called. It is recommended to use 'getaddrinfo' instead. [prohibitedgethostbynameCalled] muroard-0.1.14/network.c:93:23: style: Variable 'he' can be declared as pointer to const [constVariablePointer] muroard-0.1.14/waveform.c:144:3: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] muroard-0.1.14/waveform.c:39:28: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] diff: head muroard-0.1.14/proto.c:79:72: style: Parameter 'mes' can be declared as pointer to const [constParameterPointer] head muroard-0.1.14/streams.c:460:23: style: Condition 'stream->iobuf==NULL' is always true [knownConditionTrueFalse] muroard-0.1.14/streams.c:458:22: note: Assuming that condition 'stream->iobuf==NULL' is not redundant muroard-0.1.14/streams.c:460:23: note: Condition 'stream->iobuf==NULL' is always true DONE