2025-09-15 02:52 ftp://ftp.de.debian.org/debian/pool/main/o/opusfile/opusfile_0.12.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --library=openssl --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 -j1 platform: Linux-6.8.0-79-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.69 compiler: g++ (Ubuntu 14.2.0-4ubuntu2~24.04) 14.2.0 cppcheck: head 2.18.0 head-info: fea194b (2025-09-13 13:40:14 +0200) count: 10 35 elapsed-time: 0.8 2.1 head-timing-info: old-timing-info: head results: opusfile-0.12/examples/opusfile_example.c:121:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] opusfile-0.12/examples/opusfile_example.c:145:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] opusfile-0.12/examples/opusfile_example.c:317:11: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] opusfile-0.12/examples/opusfile_example.c:275:23: style: Local variable 'duration' shadows outer variable [shadowVariable] opusfile-0.12/examples/opusfile_example.c:136:17: note: Shadowed declaration opusfile-0.12/examples/opusfile_example.c:275:23: note: Shadow variable opusfile-0.12/examples/opusfile_example.c:360:18: warning: Uninitialized variable: out [uninitvar] opusfile-0.12/examples/opusfile_example.c:356:18: note: Assuming condition is false opusfile-0.12/examples/opusfile_example.c:360:18: note: Uninitialized variable: out opusfile-0.12/examples/seeking_example.c:147:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] opusfile-0.12/examples/seeking_example.c:268:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] opusfile-0.12/examples/seeking_example.c:413:10: style: Assignment 'i=28' is redundant with condition 'i==28'. [duplicateConditionalAssign] opusfile-0.12/examples/seeking_example.c:412:11: note: Condition 'i==28' opusfile-0.12/examples/seeking_example.c:413:10: note: Assignment 'i=28' is redundant opusfile-0.12/src/internal.h:53:0: error: failed to evaluate #if condition, undefined function-like macro invocation: OP_GNUC_PREREQ( ... ) [preprocessorErrorDirective] opusfile-0.12/src/internal.h:53:3: error: failed to evaluate #if condition, undefined function-like macro invocation: OP_GNUC_PREREQ( ... ) [preprocessorErrorDirective] diff: 2.18.0 opusfile-0.12/src/http.c:123:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable OP_FALSE [valueFlowBailoutIncompleteVar] 2.18.0 opusfile-0.12/src/http.c:3470:31: error: Overflow in pointer arithmetic, NULL pointer is subtracted. [nullPointerArithmetic] 2.18.0 opusfile-0.12/src/http.c:3475:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable opus_int32 [valueFlowBailoutIncompleteVar] 2.18.0 opusfile-0.12/src/http.c:3518:25: style: Redundant pointer operation on 'info' - it's already a variable. [redundantPointerOp] 2.18.0 opusfile-0.12/src/http.c:3543:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable OP_EFAULT [valueFlowBailoutIncompleteVar] 2.18.0 opusfile-0.12/src/http.c:3551:30: style: Redundant pointer operation on 'info' - it's already a variable. [redundantPointerOp] 2.18.0 opusfile-0.12/src/http.c:3573:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable OP_EFAULT [valueFlowBailoutIncompleteVar] 2.18.0 opusfile-0.12/src/http.c:3581:30: style: Redundant pointer operation on 'info' - it's already a variable. [redundantPointerOp] 2.18.0 opusfile-0.12/src/info.c:114:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable OP_EFAULT [valueFlowBailoutIncompleteVar] 2.18.0 opusfile-0.12/src/info.c:168:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable OP_ENOTFORMAT [valueFlowBailoutIncompleteVar] 2.18.0 opusfile-0.12/src/info.c:237:17: style: Redundant pointer operation on 'tags' - it's already a variable. [redundantPointerOp] 2.18.0 opusfile-0.12/src/info.c:248:9: style: Variable 'vendor' can be declared as pointer to const [constVariablePointer] 2.18.0 opusfile-0.12/src/info.c:254:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable OP_EFAULT [valueFlowBailoutIncompleteVar] 2.18.0 opusfile-0.12/src/info.c:286:14: style: Redundant pointer operation on 'dst' - it's already a variable. [redundantPointerOp] 2.18.0 opusfile-0.12/src/info.c:302:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable OP_EFAULT [valueFlowBailoutIncompleteVar] 2.18.0 opusfile-0.12/src/info.c:325:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable OP_EFAULT [valueFlowBailoutIncompleteVar] 2.18.0 opusfile-0.12/src/info.c:337:58: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable OP_EINVAL [valueFlowBailoutIncompleteVar] 2.18.0 opusfile-0.12/src/info.c:424:19: style: Variable 'p' can be declared as pointer to const [constVariablePointer] 2.18.0 opusfile-0.12/src/info.c:42:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable OP_ENOTFORMAT [valueFlowBailoutIncompleteVar] 2.18.0 opusfile-0.12/src/info.c:447:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable OP_FALSE [valueFlowBailoutIncompleteVar] 2.18.0 opusfile-0.12/src/info.c:611:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable OP_ENOTFORMAT [valueFlowBailoutIncompleteVar] 2.18.0 opusfile-0.12/src/info.c:747:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable OP_ENOTFORMAT [valueFlowBailoutIncompleteVar] 2.18.0 opusfile-0.12/src/info.c:763:14: style: Redundant pointer operation on 'pic' - it's already a variable. [redundantPointerOp] head opusfile-0.12/src/internal.h:53:0: error: failed to evaluate #if condition, undefined function-like macro invocation: OP_GNUC_PREREQ( ... ) [preprocessorErrorDirective] head opusfile-0.12/src/internal.h:53:3: error: failed to evaluate #if condition, undefined function-like macro invocation: OP_GNUC_PREREQ( ... ) [preprocessorErrorDirective] 2.18.0 opusfile-0.12/src/opusfile.c:1342:0: error: #error "libopus 1.0.1 or later required" [preprocessorErrorDirective] 2.18.0 opusfile-0.12/src/opusfile.c:1342:3: error: #error "libopus 1.0.1 or later required" [preprocessorErrorDirective] 2.18.0 opusfile-0.12/src/stream.c:409:10: style: Redundant pointer operation on 'OP_MEM_CALLBACKS' - it's already a variable. [redundantPointerOp] 2.18.0 opusfile-0.12/src/stream.c:61:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable OP_EREAD [valueFlowBailoutIncompleteVar] DONE