2022-06-23 09:56 ftp://ftp.de.debian.org/debian/pool/main/libv/libvisca/libvisca_1.0.1.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 -j1 platform: Linux-4.19.0-18-amd64-x86_64-with-debian-10.12 python: 3.7.3 client-version: 1.3.24 compiler: g++ (Debian 8.3.0-6) 8.3.0 cppcheck: head 2.8 head-info: f1212e6 (2022-06-22 21:22:04 +0200) count: 19 19 elapsed-time: 269.9 323.5 head-timing-info: Tokenizer::simplifyTokens1: 269.581s (avg. 89.8605s - 3 result(s)) Tokenizer::simplifyTokens1::ValueFlow: 268.877s (avg. 89.6255s - 3 result(s)) Tokenizer::simplifyTokens1::createSymbolDatabase: 0.565286s (avg. 0.188429s - 3 result(s)) Tokenizer::createTokens: 0.050147s (avg. 0.0167157s - 3 result(s)) Tokenizer::simplifyTokens1::setValueType: 0.040675s (avg. 0.0135583s - 3 result(s)) Overall time: 539.294s old-timing-info: Tokenizer::simplifyTokens1: 323.207s (avg. 107.736s - 3 result(s)) Tokenizer::simplifyTokens1::ValueFlow: 322.458s (avg. 107.486s - 3 result(s)) Tokenizer::simplifyTokens1::createSymbolDatabase: 0.606787s (avg. 0.202262s - 3 result(s)) Tokenizer::createTokens: 0.050273s (avg. 0.0167577s - 3 result(s)) Tokenizer::simplifyTokens1::setValueType: 0.040436s (avg. 0.0134787s - 3 result(s)) Overall time: 646.543s head results: libvisca-1.0.1/examples/testvisca.c:71:3: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] libvisca-1.0.1/examples/testvisca.c:76:3: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] libvisca-1.0.1/examples/testvisca.c:86:3: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] libvisca-1.0.1/examples/visca_cli.c:500:13: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] libvisca-1.0.1/examples/visca_cli.c:501:10: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] libvisca-1.0.1/examples/visca_cli.c:502:10: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] libvisca-1.0.1/examples/visca_cli.c:503:10: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] libvisca-1.0.1/examples/visca_cli.c:504:10: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] libvisca-1.0.1/examples/visca_cli.c:505:10: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] libvisca-1.0.1/examples/visca_cli.c:1677:36: style: The if condition is the same as the previous if condition [duplicateCondition] libvisca-1.0.1/examples/visca_cli.c:1663:36: note: First condition libvisca-1.0.1/examples/visca_cli.c:1677:36: note: Second condition libvisca-1.0.1/src/libvisca.c:129:5: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] libvisca-1.0.1/src/libvisca.c:138:5: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] libvisca-1.0.1/src/libvisca.c:1305:3: style:inconclusive: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] libvisca-1.0.1/src/libvisca.c:2634:89: style:inconclusive: Function 'VISCA_set_pantilt_limit_upright' argument 3 names different: declaration 'pan_limit' definition 'pan_position'. [funcArgNamesDifferent] libvisca-1.0.1/src/libvisca.h:694:89: note: Function 'VISCA_set_pantilt_limit_upright' argument 3 names different: declaration 'pan_limit' definition 'pan_position'. libvisca-1.0.1/src/libvisca.c:2634:89: note: Function 'VISCA_set_pantilt_limit_upright' argument 3 names different: declaration 'pan_limit' definition 'pan_position'. libvisca-1.0.1/src/libvisca.c:2634:107: style:inconclusive: Function 'VISCA_set_pantilt_limit_upright' argument 4 names different: declaration 'tilt_limit' definition 'tilt_position'. [funcArgNamesDifferent] libvisca-1.0.1/src/libvisca.h:694:104: note: Function 'VISCA_set_pantilt_limit_upright' argument 4 names different: declaration 'tilt_limit' definition 'tilt_position'. libvisca-1.0.1/src/libvisca.c:2634:107: note: Function 'VISCA_set_pantilt_limit_upright' argument 4 names different: declaration 'tilt_limit' definition 'tilt_position'. libvisca-1.0.1/src/libvisca.c:2663:90: style:inconclusive: Function 'VISCA_set_pantilt_limit_downleft' argument 3 names different: declaration 'pan_limit' definition 'pan_position'. [funcArgNamesDifferent] libvisca-1.0.1/src/libvisca.h:697:90: note: Function 'VISCA_set_pantilt_limit_downleft' argument 3 names different: declaration 'pan_limit' definition 'pan_position'. libvisca-1.0.1/src/libvisca.c:2663:90: note: Function 'VISCA_set_pantilt_limit_downleft' argument 3 names different: declaration 'pan_limit' definition 'pan_position'. libvisca-1.0.1/src/libvisca.c:2663:108: style:inconclusive: Function 'VISCA_set_pantilt_limit_downleft' argument 4 names different: declaration 'tilt_limit' definition 'tilt_position'. [funcArgNamesDifferent] libvisca-1.0.1/src/libvisca.h:697:105: note: Function 'VISCA_set_pantilt_limit_downleft' argument 4 names different: declaration 'tilt_limit' definition 'tilt_position'. libvisca-1.0.1/src/libvisca.c:2663:108: note: Function 'VISCA_set_pantilt_limit_downleft' argument 4 names different: declaration 'tilt_limit' definition 'tilt_position'. libvisca-1.0.1/src/libvisca.c:134:13: style: Variable 'bytes_read' is assigned a value that is never used. [unreadVariable] libvisca-1.0.1/src/libvisca.c:137:15: style: Variable 'bytes_read' is assigned a value that is never used. [unreadVariable] diff: DONE