2026-05-03 03:09 ftp://ftp.de.debian.org/debian/pool/main/libd/libdjconsole/libdjconsole_0.1.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 -j1 platform: Linux-6.8.0-111-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.70 compiler: g++ (Ubuntu 14.2.0-4ubuntu2~24.04.1) 14.2.0 cppcheck: head 2.20.0 head-info: e5c4a73 (2026-05-01 11:10:43 +0200) count: 52 44 elapsed-time: 0.3 0.2 head-timing-info: old-timing-info: head results: libdjconsole-0.1.3/bitfield.cpp:41:11: warning: Member variable 'Bitfield::Dirty' is not initialized in the constructor. [uninitMemberVar] libdjconsole-0.1.3/bitfield.cpp:133:16: style:inconclusive: Technically the member function 'Bitfield::dirty' can be const. [functionConst] libdjconsole-0.1.3/bitfield.h:41:7: note: Technically the member function 'Bitfield::dirty' can be const. libdjconsole-0.1.3/bitfield.cpp:133:16: note: Technically the member function 'Bitfield::dirty' can be const. libdjconsole-0.1.3/bitfield.cpp:98:15: style:inconclusive: Technically the member function 'Bitfield::size' can be const. [functionConst] libdjconsole-0.1.3/bitfield.h:44:6: note: Technically the member function 'Bitfield::size' can be const. libdjconsole-0.1.3/bitfield.cpp:98:15: note: Technically the member function 'Bitfield::size' can be const. libdjconsole-0.1.3/bitfield.cpp:43:2: warning: Class 'Bitfield' does not have a copy constructor which is recommended since it has dynamic memory/resource management. [noCopyConstructor] libdjconsole-0.1.3/bitfield.cpp:43:2: warning: Class 'Bitfield' does not have a operator= which is recommended since it has dynamic memory/resource management. [noOperatorEq] libdjconsole-0.1.3/bitfield.h:34:2: style: Class 'Bitfield' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] libdjconsole-0.1.3/delta.cpp:64:17: style:inconclusive: Technically the member function 'DeltaEvent::code' can be const. [functionConst] libdjconsole-0.1.3/delta.h:41:6: note: Technically the member function 'DeltaEvent::code' can be const. libdjconsole-0.1.3/delta.cpp:64:17: note: Technically the member function 'DeltaEvent::code' can be const. libdjconsole-0.1.3/delta.cpp:69:17: style:inconclusive: Technically the member function 'DeltaEvent::value' can be const. [functionConst] libdjconsole-0.1.3/delta.h:42:6: note: Technically the member function 'DeltaEvent::value' can be const. libdjconsole-0.1.3/delta.cpp:69:17: note: Technically the member function 'DeltaEvent::value' can be const. libdjconsole-0.1.3/delta.cpp:197:29: style:inconclusive: Technically the member function 'Delta::rawbits' can be const. [functionConst] libdjconsole-0.1.3/delta.h:60:23: note: Technically the member function 'Delta::rawbits' can be const. libdjconsole-0.1.3/delta.cpp:197:29: note: Technically the member function 'Delta::rawbits' can be const. libdjconsole-0.1.3/delta.cpp:202:12: style:inconclusive: Technically the member function 'Delta::size' can be const. [functionConst] libdjconsole-0.1.3/delta.h:61:6: note: Technically the member function 'Delta::size' can be const. libdjconsole-0.1.3/delta.cpp:202:12: note: Technically the member function 'Delta::size' can be const. libdjconsole-0.1.3/delta.cpp:40:42: style:inconclusive: Function 'DeltaEvent' argument 1 names different: declaration '' definition 'in'. [funcArgNamesDifferentUnnamed] libdjconsole-0.1.3/delta.cpp:46:28: style:inconclusive: Function 'DeltaEvent' argument 1 names different: declaration 'code' definition 'c'. [funcArgNamesDifferent] libdjconsole-0.1.3/delta.h:35:17: note: Function 'DeltaEvent' argument 1 names different: declaration 'code' definition 'c'. libdjconsole-0.1.3/delta.cpp:46:28: note: Function 'DeltaEvent' argument 1 names different: declaration 'code' definition 'c'. libdjconsole-0.1.3/delta.cpp:46:35: style:inconclusive: Function 'DeltaEvent' argument 2 names different: declaration 'value' definition 'v'. [funcArgNamesDifferent] libdjconsole-0.1.3/delta.h:35:27: note: Function 'DeltaEvent' argument 2 names different: declaration 'value' definition 'v'. libdjconsole-0.1.3/delta.cpp:46:35: note: Function 'DeltaEvent' argument 2 names different: declaration 'value' definition 'v'. libdjconsole-0.1.3/delta.cpp:56:54: style:inconclusive: Function 'operator=' argument 1 names different: declaration '' definition 'in'. [funcArgNamesDifferentUnnamed] libdjconsole-0.1.3/delta.cpp:138:38: style:inconclusive: Function 'set' argument 1 names different: declaration 'data' definition 'buffer'. [funcArgNamesDifferent] libdjconsole-0.1.3/delta.h:56:32: note: Function 'set' argument 1 names different: declaration 'data' definition 'buffer'. libdjconsole-0.1.3/delta.cpp:138:38: note: Function 'set' argument 1 names different: declaration 'data' definition 'buffer'. libdjconsole-0.1.3/delta.cpp:153:15: style: Variable 's' can be declared as pointer to const [constVariablePointer] libdjconsole-0.1.3/delta.cpp:167:14: style: Variable 's' can be declared as pointer to const [constVariablePointer] libdjconsole-0.1.3/djconsole.cpp:75:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable bNumInterfaces [valueFlowBailoutIncompleteVar] libdjconsole-0.1.3/djconsole.cpp:217:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable USB_ENDPOINT_OUT [valueFlowBailoutIncompleteVar] libdjconsole-0.1.3/djconsole.cpp:294:67: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable interface [valueFlowBailoutIncompleteVar] libdjconsole-0.1.3/djconsole.cpp:322:67: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable interface [valueFlowBailoutIncompleteVar] libdjconsole-0.1.3/djconsole.cpp:412:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable USB_ENDPOINT_OUT [valueFlowBailoutIncompleteVar] libdjconsole-0.1.3/djconsole.cpp:170:2: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] libdjconsole-0.1.3/djconsole.cpp:173:3: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] libdjconsole-0.1.3/djconsole.cpp:181:3: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] libdjconsole-0.1.3/djconsole.cpp:190:2: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] libdjconsole-0.1.3/djconsole.cpp:223:3: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] libdjconsole-0.1.3/djconsole.cpp:239:17: style:inconclusive: Technically the member function 'DJConsole::detected' can be const. [functionConst] libdjconsole-0.1.3/djconsole.h:129:7: note: Technically the member function 'DJConsole::detected' can be const. libdjconsole-0.1.3/djconsole.cpp:239:17: note: Technically the member function 'DJConsole::detected' can be const. libdjconsole-0.1.3/djconsole.cpp:246:17: style:inconclusive: Technically the member function 'DJConsole::ready' can be const. [functionConst] libdjconsole-0.1.3/djconsole.h:130:7: note: Technically the member function 'DJConsole::ready' can be const. libdjconsole-0.1.3/djconsole.cpp:246:17: note: Technically the member function 'DJConsole::ready' can be const. libdjconsole-0.1.3/djconsole.cpp:433:27: style:inconclusive: Technically the member function 'DJConsole::vendor' can be const. [functionConst] libdjconsole-0.1.3/djconsole.h:134:17: note: Technically the member function 'DJConsole::vendor' can be const. libdjconsole-0.1.3/djconsole.cpp:433:27: note: Technically the member function 'DJConsole::vendor' can be const. libdjconsole-0.1.3/djconsole.cpp:438:27: style:inconclusive: Technically the member function 'DJConsole::product' can be const. [functionConst] libdjconsole-0.1.3/djconsole.h:135:17: note: Technically the member function 'DJConsole::product' can be const. libdjconsole-0.1.3/djconsole.cpp:438:27: note: Technically the member function 'DJConsole::product' can be const. libdjconsole-0.1.3/djconsole.h:126:2: style: Class 'DJConsole' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] libdjconsole-0.1.3/djconsole.cpp:137:3: warning: printf format string requires 0 parameters but 1 is given. [wrongPrintfScanfArgNum] libdjconsole-0.1.3/djconsole.cpp:152:3: warning: printf format string requires 0 parameters but 1 is given. [wrongPrintfScanfArgNum] libdjconsole-0.1.3/djconsole.cpp:255:15: style: C-style pointer casting [cstyleCast] libdjconsole-0.1.3/djconsole.cpp:266:15: style: C-style pointer casting [cstyleCast] libdjconsole-0.1.3/djconsole.cpp:277:15: style: C-style pointer casting [cstyleCast] libdjconsole-0.1.3/djconsole.cpp:283:15: style: C-style pointer casting [cstyleCast] libdjconsole-0.1.3/djconsole.cpp:300:138: style: C-style pointer casting [cstyleCast] libdjconsole-0.1.3/djconsole.cpp:330:136: style: C-style pointer casting [cstyleCast] libdjconsole-0.1.3/djconsole.cpp:416:3: style: C-style pointer casting [cstyleCast] libdjconsole-0.1.3/djconsole.cpp:110:11: style: A pointer can not be negative so it is either pointless or an error to check if it is. [pointerLessThanZero] libdjconsole-0.1.3/djconsole.cpp:118:11: style: A pointer can not be negative so it is either pointless or an error to check if it is. [pointerLessThanZero] libdjconsole-0.1.3/djconsole.cpp:253:38: style:inconclusive: Function 'worker1Helper' argument 1 names different: declaration '' definition 'p'. [funcArgNamesDifferentUnnamed] libdjconsole-0.1.3/djconsole.cpp:264:38: style:inconclusive: Function 'worker2Helper' argument 1 names different: declaration '' definition 'p'. [funcArgNamesDifferentUnnamed] libdjconsole-0.1.3/djconsole.cpp:275:36: style:inconclusive: Function 'worker1Reset' argument 1 names different: declaration '' definition 'p'. [funcArgNamesDifferentUnnamed] libdjconsole-0.1.3/djconsole.cpp:281:36: style:inconclusive: Function 'worker2Reset' argument 1 names different: declaration '' definition 'p'. [funcArgNamesDifferentUnnamed] libdjconsole-0.1.3/djconsole.cpp:419:36: style:inconclusive: Function 'setCallback' argument 1 names different: declaration '' definition 'callback'. [funcArgNamesDifferentUnnamed] libdjconsole-0.1.3/djconsole.cpp:419:71: style:inconclusive: Function 'setCallback' argument 2 names different: declaration '' definition 'userdata'. [funcArgNamesDifferentUnnamed] libdjconsole-0.1.3/djconsole.cpp:171:10: style: Local variable 'i' shadows outer variable [shadowVariable] libdjconsole-0.1.3/djconsole.cpp:50:12: note: Shadowed declaration libdjconsole-0.1.3/djconsole.cpp:171:10: note: Shadow variable libdjconsole-0.1.3/djconsole.cpp:49:18: style: Variable 'bus' can be declared as pointer to const [constVariablePointer] libdjconsole-0.1.3/djconsole.cpp:124:7: style: Unused variable: kdrv [unusedVariable] diff: head libdjconsole-0.1.3/delta.cpp:40:42: style:inconclusive: Function 'DeltaEvent' argument 1 names different: declaration '' definition 'in'. [funcArgNamesDifferentUnnamed] head libdjconsole-0.1.3/delta.cpp:56:54: style:inconclusive: Function 'operator=' argument 1 names different: declaration '' definition 'in'. [funcArgNamesDifferentUnnamed] head libdjconsole-0.1.3/djconsole.cpp:253:38: style:inconclusive: Function 'worker1Helper' argument 1 names different: declaration '' definition 'p'. [funcArgNamesDifferentUnnamed] head libdjconsole-0.1.3/djconsole.cpp:264:38: style:inconclusive: Function 'worker2Helper' argument 1 names different: declaration '' definition 'p'. [funcArgNamesDifferentUnnamed] head libdjconsole-0.1.3/djconsole.cpp:275:36: style:inconclusive: Function 'worker1Reset' argument 1 names different: declaration '' definition 'p'. [funcArgNamesDifferentUnnamed] head libdjconsole-0.1.3/djconsole.cpp:281:36: style:inconclusive: Function 'worker2Reset' argument 1 names different: declaration '' definition 'p'. [funcArgNamesDifferentUnnamed] head libdjconsole-0.1.3/djconsole.cpp:419:36: style:inconclusive: Function 'setCallback' argument 1 names different: declaration '' definition 'callback'. [funcArgNamesDifferentUnnamed] head libdjconsole-0.1.3/djconsole.cpp:419:71: style:inconclusive: Function 'setCallback' argument 2 names different: declaration '' definition 'userdata'. [funcArgNamesDifferentUnnamed] DONE