2024-04-26 00:16 ftp://ftp.de.debian.org/debian/pool/main/libg/libg15/libg15_1.3.0~svn324.orig.tar.xz 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-5.15.0-102-generic-x86_64-with-glibc2.35 python: 3.10.12 client-version: 1.3.57 compiler: g++ (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0 cppcheck: head 2.14.0 head-info: e5659cc (2024-04-25 21:50:47 +0200) count: 31 31 elapsed-time: 0.2 0.2 head-timing-info: old-timing-info: head results: libg15-1.3.0~svn324/libg15.c:95:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable usb_busses [valueFlowBailoutIncompleteVar] libg15-1.3.0~svn324/libg15.c:133:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable usb_busses [valueFlowBailoutIncompleteVar] libg15-1.3.0~svn324/libg15.c:314:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PACKAGE_STRING [valueFlowBailoutIncompleteVar] libg15-1.3.0~svn324/libg15.c:537:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable USB_TYPE_CLASS [valueFlowBailoutIncompleteVar] libg15-1.3.0~svn324/libg15.c:555:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable USB_TYPE_CLASS [valueFlowBailoutIncompleteVar] libg15-1.3.0~svn324/libg15.c:580:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable USB_TYPE_CLASS [valueFlowBailoutIncompleteVar] libg15-1.3.0~svn324/libg15.c:606:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable USB_TYPE_CLASS [valueFlowBailoutIncompleteVar] libg15-1.3.0~svn324/libg15.c:621:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable USB_TYPE_CLASS [valueFlowBailoutIncompleteVar] libg15-1.3.0~svn324/libg15.c:159:17: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] libg15-1.3.0~svn324/libg15.c:186:33: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] libg15-1.3.0~svn324/libg15.c:223:33: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] libg15-1.3.0~svn324/libg15.c:225:37: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] libg15-1.3.0~svn324/libg15.c:264:17: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] libg15-1.3.0~svn324/libg15.c:337:9: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] libg15-1.3.0~svn324/libg15.c:492:13: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] libg15-1.3.0~svn324/libg15.c:511:9: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] libg15-1.3.0~svn324/libg15.c:327:12: warning: Identical condition and return expression 'retval', return value is always 0 [identicalConditionAfterEarlyExit] libg15-1.3.0~svn324/libg15.c:311:9: note: If condition 'retval' is true, the function will return/exit libg15-1.3.0~svn324/libg15.c:327:12: note: Returning identical expression 'retval' libg15-1.3.0~svn324/libg15.c:253:37: style: Condition 'ret' is always false [knownConditionTrueFalse] libg15-1.3.0~svn324/libg15.c:230:37: note: Assuming that condition 'ret' is not redundant libg15-1.3.0~svn324/libg15.c:253:37: note: Condition 'ret' is always false libg15-1.3.0~svn324/libg15.h:135:20: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] libg15-1.3.0~svn324/libg15.c:89:25: style: Variable 'bus' is assigned a value that is never used. [unreadVariable] libg15-1.3.0~svn324/libg15.c:90:28: style: Variable 'dev' is assigned a value that is never used. [unreadVariable] libg15-1.3.0~svn324/libg15.c:128:28: style: Variable 'dev' is assigned a value that is never used. [unreadVariable] libg15-1.3.0~svn324/libg15.c:131:9: style: Variable 'interface' is assigned a value that is never used. [unreadVariable] libg15-1.3.0~svn324/libg15.c:333:16: style: Variable 'retval' is assigned a value that is never used. [unreadVariable] libg15-1.3.0~svn324/libg15.c:393:27: style: Variable 'curr_col' is assigned a value that is never used. [unreadVariable] libg15-1.3.0~svn324/libg15.c:462:13: style: Variable 'ret' is assigned a value that is never used. [unreadVariable] libg15-1.3.0~svn324/libg15.c:463:22: style: Variable 'transfercount' is assigned a value that is never used. [unreadVariable] libg15-1.3.0~svn324/libg15.c:642:9: style: Unused variable: i [unusedVariable] libg15-1.3.0~svn324/libg15.c:732:9: style: Unused variable: i [unusedVariable] libg15-1.3.0~svn324/libg15.c:823:9: style: Unused variable: i [unusedVariable] libg15-1.3.0~svn324/libg15.c:971:6: style: Unused variable: i [unusedVariable] diff: DONE