2024-04-25 19:09 ftp://ftp.de.debian.org/debian/pool/main/liba/libavc1394/libavc1394_0.5.4.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 -j8 platform: Linux-6.6.27_1-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.57 compiler: g++ (GCC) 13.2.0 cppcheck: head 2.14.0 head-info: 3ca8997 (2024-04-25 19:58:42 +0200) count: 70 70 elapsed-time: 0.4 0.5 head-timing-info: old-timing-info: head results: libavc1394-0.5.4/common/raw1394util.c:14:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] libavc1394-0.5.4/common/raw1394util.c:29:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] libavc1394-0.5.4/libavc1394/avc1394_internal.c:94:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable quadlet_t [valueFlowBailoutIncompleteVar] libavc1394-0.5.4/test/mkrfc2734.c:38:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable leaf [valueFlowBailoutIncompleteVar] libavc1394-0.5.4/libavc1394/avc1394_internal.c:66:30: style:inconclusive: Function 'decode_ctype' argument 1 names different: declaration 'response' definition 'command'. [funcArgNamesDifferent] libavc1394-0.5.4/libavc1394/avc1394_internal.h:22:30: note: Function 'decode_ctype' argument 1 names different: declaration 'response' definition 'command'. libavc1394-0.5.4/libavc1394/avc1394_internal.c:66:30: note: Function 'decode_ctype' argument 1 names different: declaration 'response' definition 'command'. libavc1394-0.5.4/test/avc_vcr.c:138:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libavc1394-0.5.4/test/avc_vcr.c:234:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libavc1394-0.5.4/test/avc_vcr.c:256:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libavc1394-0.5.4/test/avc_vcr.c:269:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libavc1394-0.5.4/test/avc_vcr.c:300:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libavc1394-0.5.4/test/avc_vcr.c:321:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libavc1394-0.5.4/test/avc_vcr.c:336:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libavc1394-0.5.4/test/avc_vcr.c:381:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] libavc1394-0.5.4/test/mkrfc2734.c:60:2: portability: %d in format string (no. 2) requires 'int' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] libavc1394-0.5.4/test/mkrfc2734.c:82:2: portability: %d in format string (no. 2) requires 'int' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] libavc1394-0.5.4/libavc1394/avc1394_simple.c:59:74: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable quadlet_t [valueFlowBailoutIncompleteVar] libavc1394-0.5.4/libavc1394/avc1394_simple.c:79:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable quadlet_t [valueFlowBailoutIncompleteVar] libavc1394-0.5.4/libavc1394/avc1394_simple.c:99:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable POLLIN [valueFlowBailoutIncompleteVar] libavc1394-0.5.4/libavc1394/avc1394_simple.c:180:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable POLLIN [valueFlowBailoutIncompleteVar] libavc1394-0.5.4/libavc1394/avc1394_simple.c:308:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libavc1394-0.5.4/libavc1394/avc1394_simple.c:354:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libavc1394-0.5.4/libavc1394/avc1394_simple.c:392:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libavc1394-0.5.4/librom1394/rom1394_internal.c:56:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable quadlet_t [valueFlowBailoutIncompleteVar] libavc1394-0.5.4/librom1394/rom1394_internal.c:137:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable quadlet_t [valueFlowBailoutIncompleteVar] libavc1394-0.5.4/librom1394/rom1394_main.c:44:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libavc1394-0.5.4/librom1394/rom1394_main.c:59:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libavc1394-0.5.4/librom1394/rom1394_main.c:74:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libavc1394-0.5.4/librom1394/rom1394_main.c:94:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libavc1394-0.5.4/librom1394/rom1394_main.c:115:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libavc1394-0.5.4/librom1394/rom1394_main.c:239:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable quadlet_t [valueFlowBailoutIncompleteVar] libavc1394-0.5.4/test/avc_vcr.c:295:33: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] libavc1394-0.5.4/test/avc_vcr.c:264:36: style: Parameter 'cr' can be declared as pointer to const [constParameterPointer] libavc1394-0.5.4/test/romtest.c:45:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] libavc1394-0.5.4/test/panelctl.c:109:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ARGP_ERR_UNKNOWN [valueFlowBailoutIncompleteVar] libavc1394-0.5.4/test/panelctl.c:284:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] libavc1394-0.5.4/test/setrom.c:43:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] libavc1394-0.5.4/librom1394/rom1394_internal.c:89:4: error: Memory leak: s [memleak] libavc1394-0.5.4/librom1394/rom1394_internal.c:97:4: error: Memory leak: s [memleak] libavc1394-0.5.4/librom1394/rom1394_internal.c:193:30: style: Parameter 'ptr' can be declared as pointer to const [constParameterPointer] libavc1394-0.5.4/librom1394/rom1394_internal.c:210:62: style: Parameter 'dir' can be declared as pointer to const [constParameterPointer] libavc1394-0.5.4/librom1394/rom1394_internal.c:266:26: style: Variable 'q' can be declared as pointer to const [constVariablePointer] libavc1394-0.5.4/librom1394/rom1394_internal.c:295:26: style: Variable 'q' can be declared as pointer to const [constVariablePointer] libavc1394-0.5.4/librom1394/rom1394_internal.c:316:30: style: Parameter 'buffer' can be declared as pointer to const [constParameterPointer] libavc1394-0.5.4/test/panelctl.c:346:5: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] libavc1394-0.5.4/test/panelctl.c:371:5: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] libavc1394-0.5.4/test/setrom.c:60:2: portability: %d in format string (no. 2) requires 'int' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] libavc1394-0.5.4/test/setrom.c:75:2: portability: %d in format string (no. 2) requires 'int' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] libavc1394-0.5.4/test/setrom.c:99:2: portability: %d in format string (no. 2) requires 'int' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] libavc1394-0.5.4/test/setrom.c:113:2: portability: %d in format string (no. 2) requires 'int' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] libavc1394-0.5.4/test/panelctl.c:327:7: style: Local variable 'i' shadows outer variable [shadowVariable] libavc1394-0.5.4/test/panelctl.c:294:6: note: Shadowed declaration libavc1394-0.5.4/test/panelctl.c:327:7: note: Shadow variable libavc1394-0.5.4/test/panelctl.c:352:7: style: Local variable 'i' shadows outer variable [shadowVariable] libavc1394-0.5.4/test/panelctl.c:294:6: note: Shadowed declaration libavc1394-0.5.4/test/panelctl.c:352:7: note: Shadow variable libavc1394-0.5.4/test/panelctl.c:221:20: style: Parameter 'cmd' can be declared as pointer to const [constParameterPointer] libavc1394-0.5.4/test/panelctl.c:221:31: style: Parameter 'desc' can be declared as pointer to const [constParameterPointer] libavc1394-0.5.4/libavc1394/avc1394_vcr.c:274:13: style: Variable 'response' can be declared as pointer to const [constVariablePointer] libavc1394-0.5.4/libavc1394/avc1394_vcr.c:304:13: style: Variable 'response' can be declared as pointer to const [constVariablePointer] libavc1394-0.5.4/libavc1394/avc1394_vcr.c:329:72: style: Parameter 'timecode' can be declared as pointer to const [constParameterPointer] libavc1394-0.5.4/libavc1394/avc1394_simple.c:94:37: style:inconclusive: Function 'avc1394_transaction' argument 3 names different: declaration 'quadlet' definition 'request'. [funcArgNamesDifferent] libavc1394-0.5.4/libavc1394/avc1394.h:452:12: note: Function 'avc1394_transaction' argument 3 names different: declaration 'quadlet' definition 'request'. libavc1394-0.5.4/libavc1394/avc1394_simple.c:94:37: note: Function 'avc1394_transaction' argument 3 names different: declaration 'quadlet' definition 'request'. libavc1394-0.5.4/libavc1394/avc1394_simple.c:63:39: style: Parameter 'command' can be declared as pointer to const [constParameterPointer] libavc1394-0.5.4/libavc1394/avc1394_simple.c:288:40: style: Parameter 'descriptor_identifier' can be declared as pointer to const [constParameterPointer] libavc1394-0.5.4/libavc1394/avc1394_simple.c:292:13: style: Variable 'response' can be declared as pointer to const [constVariablePointer] libavc1394-0.5.4/libavc1394/avc1394_simple.c:338:41: style: Parameter 'descriptor_identifier' can be declared as pointer to const [constParameterPointer] libavc1394-0.5.4/libavc1394/avc1394_simple.c:341:13: style: Variable 'response' can be declared as pointer to const [constVariablePointer] libavc1394-0.5.4/libavc1394/avc1394_simple.c:386:51: style: Parameter 'descriptor_identifier' can be declared as pointer to const [constParameterPointer] libavc1394-0.5.4/libavc1394/avc1394_simple.c:414:13: style: Variable 'response' can be declared as pointer to const [constVariablePointer] libavc1394-0.5.4/libavc1394/avc1394_simple.c:493:32: style: Parameter 'data' can be declared as pointer to const. However it seems that 'target_fcp_handler' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libavc1394-0.5.4/libavc1394/avc1394_simple.c:552:39: note: You might need to cast the function pointer here libavc1394-0.5.4/libavc1394/avc1394_simple.c:493:32: note: Parameter 'data' can be declared as pointer to const libavc1394-0.5.4/librom1394/rom1394_main.c:151:61: style: Parameter 'dir' can be declared as pointer to const [constParameterPointer] libavc1394-0.5.4/librom1394/rom1394_main.c:216:60: style: Parameter 'dir' can be declared as pointer to const [constParameterPointer] libavc1394-0.5.4/test/dvcont.c:101:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] libavc1394-0.5.4/test/dvcont.c:237:36: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] libavc1394-0.5.4/test/dvcont.c:234:15: style: Variable 'response' can be declared as pointer to const [constVariablePointer] diff: DONE