2022-06-28 11:35 ftp://ftp.de.debian.org/debian/pool/main/g/gscanbus/gscanbus_0.8.orig.tar.gz cppcheck-options: --library=posix --library=gnu --showtime=top5 --check-library --inconclusive --enable=style,information --template=daca2 -D__GNUC__ --platform=unix64 -rp=temp -j2 platform: Linux-5.4.0-110-generic-x86_64-with-glibc2.29 python: 3.8.10 client-version: 1.3.24 compiler: g++ (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0 cppcheck: head 2.8 head-info: cdeebc1 (2022-06-27 20:55:09 +0200) count: 39 39 elapsed-time: 0.4 0.4 head-timing-info: Overall time: 0s old-timing-info: Overall time: 0s head results: gscanbus-0.8/decodeselfid.c:31:3: warning: %i in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gscanbus-0.8/decodeselfid.c:233:2: warning: %i in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gscanbus-0.8/decodeselfid.c:235:2: warning: %i in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gscanbus-0.8/decodeselfid.c:228:4: style: Variable 'p' is assigned a value that is never used. [unreadVariable] gscanbus-0.8/icons.c:81:67: style: Parameter 'xpm_window' can be declared as pointer to const [constParameter] gscanbus-0.8/gscanbus.c:291:16: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gscanbus-0.8/gscanbus.c:917:16: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gscanbus-0.8/gscanbus.c:719:2: warning: Either the condition 'status_entry==NULL' is redundant or there is possible null pointer dereference: status_entry. [nullPointerRedundantCheck] gscanbus-0.8/gscanbus.c:661:19: note: Assuming that condition 'status_entry==NULL' is not redundant gscanbus-0.8/gscanbus.c:719:2: note: Null pointer dereference gscanbus-0.8/gscanbus.c:720:2: warning: Either the condition 'status_entry==NULL' is redundant or there is possible null pointer dereference: status_entry. [nullPointerRedundantCheck] gscanbus-0.8/gscanbus.c:661:19: note: Assuming that condition 'status_entry==NULL' is not redundant gscanbus-0.8/gscanbus.c:720:2: note: Null pointer dereference gscanbus-0.8/gscanbus.c:275:13: style: Local variable 'drawing_area' shadows outer variable [shadowVariable] gscanbus-0.8/gscanbus.c:50:12: note: Shadowed declaration gscanbus-0.8/gscanbus.c:275:13: note: Shadow variable gscanbus-0.8/gscanbus.c:951:13: style: Local variable 'drawing_area' shadows outer variable [shadowVariable] gscanbus-0.8/gscanbus.c:50:12: note: Shadowed declaration gscanbus-0.8/gscanbus.c:951:13: note: Shadow variable gscanbus-0.8/gscanbus.c:743:50: style: Parameter 'table' can be declared as const array [constParameter] gscanbus-0.8/gscanbus.c:281:12: style: Variable 'nodeCount' is assigned a value that is never used. [unreadVariable] gscanbus-0.8/gscanbus.c:788:38: style: Unused variable: hbox [unusedVariable] gscanbus-0.8/gscanbus.c:902:9: style: Variable 'state' is assigned a value that is never used. [unreadVariable] gscanbus-0.8/menues.c:119:2: warning: Either the condition '!transactionDialog' is redundant or there is possible null pointer dereference: transactionDialog. [nullPointerRedundantCheck] gscanbus-0.8/menues.c:117:6: note: Assuming that condition '!transactionDialog' is not redundant gscanbus-0.8/menues.c:119:2: note: Null pointer dereference gscanbus-0.8/menues.c:120:30: warning: Either the condition '!transactionDialog' is redundant or there is possible null pointer dereference: transactionDialog. [nullPointerRedundantCheck] gscanbus-0.8/menues.c:117:6: note: Assuming that condition '!transactionDialog' is not redundant gscanbus-0.8/menues.c:120:30: note: Null pointer dereference gscanbus-0.8/menues.c:123:34: warning:inconclusive: Either the condition '!transactionDialog' is redundant or there is possible null pointer dereference: transactionDialog. [nullPointerRedundantCheck] gscanbus-0.8/menues.c:117:6: note: Assuming that condition '!transactionDialog' is not redundant gscanbus-0.8/menues.c:123:34: note: Null pointer dereference gscanbus-0.8/menues.c:124:47: warning:inconclusive: Either the condition '!transactionDialog' is redundant or there is possible null pointer dereference: transactionDialog. [nullPointerRedundantCheck] gscanbus-0.8/menues.c:117:6: note: Assuming that condition '!transactionDialog' is not redundant gscanbus-0.8/menues.c:124:47: note: Null pointer dereference gscanbus-0.8/menues.c:125:41: warning:inconclusive: Either the condition '!transactionDialog' is redundant or there is possible null pointer dereference: transactionDialog. [nullPointerRedundantCheck] gscanbus-0.8/menues.c:117:6: note: Assuming that condition '!transactionDialog' is not redundant gscanbus-0.8/menues.c:125:41: note: Null pointer dereference gscanbus-0.8/menues.c:350:32: style: Variable 'pos' is assigned a value that is never used. [unreadVariable] gscanbus-0.8/menues.c:375:7: style: Variable 'pos' is assigned a value that is never used. [unreadVariable] gscanbus-0.8/raw1394util.c:47:3: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] gscanbus-0.8/raw1394util.c:62:3: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] gscanbus-0.8/simpleavc.c:156:4: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] gscanbus-0.8/simpleavc.c:199:4: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] gscanbus-0.8/simpleavc.c:84:10: portability: %d in format string (no. 3) requires 'int' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] gscanbus-0.8/simpleavc.c:302:17: style: Parameter 'descriptor_identifier' can be declared as pointer to const [constParameter] gscanbus-0.8/rominfo.c:135:4: warning: %x in format string (no. 1) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] gscanbus-0.8/rominfo.c:135:4: warning: %x in format string (no. 2) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] gscanbus-0.8/rominfo.c:223:4: warning: %x in format string (no. 1) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] gscanbus-0.8/rominfo.c:135:4: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] gscanbus-0.8/rominfo.c:223:4: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] gscanbus-0.8/rominfo.c:589:2: style: Statements following return, break, continue, goto or throw will never be executed. [unreachableCode] gscanbus-0.8/rominfo.c:63:27: style: Parameter 's' can be declared as pointer to const [constParameter] gscanbus-0.8/topologyMap.c:53:11: style: Variable 'ret' is assigned a value that is never used. [unreadVariable] gscanbus-0.8/topologyTree.c:232:2: style: Statements following return, break, continue, goto or throw will never be executed. [unreachableCode] gscanbus-0.8/topologyTree.c:85:7: style: Variable 'myid' is assigned a value that is never used. [unreadVariable] gscanbus-0.8/topologyTree.c:229:30: style: Variable 'ptopologyTree' is assigned a value that is never used. [unreadVariable] diff: head gscanbus-0.8/gscanbus.c:743:50: style: Parameter 'table' can be declared as const array [constParameter] 2.8 gscanbus-0.8/gscanbus.c:743:50: style: Parameter 'table' can be declared with const [constParameter] head gscanbus-0.8/icons.c:81:67: style: Parameter 'xpm_window' can be declared as pointer to const [constParameter] 2.8 gscanbus-0.8/icons.c:81:67: style: Parameter 'xpm_window' can be declared with const [constParameter] head gscanbus-0.8/rominfo.c:63:27: style: Parameter 's' can be declared as pointer to const [constParameter] 2.8 gscanbus-0.8/rominfo.c:63:27: style: Parameter 's' can be declared with const [constParameter] head gscanbus-0.8/simpleavc.c:302:17: style: Parameter 'descriptor_identifier' can be declared as pointer to const [constParameter] 2.8 gscanbus-0.8/simpleavc.c:302:17: style: Parameter 'descriptor_identifier' can be declared with const [constParameter] DONE