2022-07-02 05:06 ftp://ftp.de.debian.org/debian/pool/main/y/yad/yad_0.40.0.orig.tar.xz cppcheck-options: --library=posix --library=gnu --showtime=top5 --check-library --inconclusive --enable=style,information --inline-suppr --template=daca2 -D__GNUC__ --platform=unix64 -rp=temp -j1 platform: Linux-5.4.0-121-generic-x86_64-with-glibc2.29 python: 3.8.10 client-version: 1.3.25 compiler: g++ (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0 cppcheck: head 2.8 head-info: 596f75e (2022-07-01 10:48:32 +0200) count: 19 19 elapsed-time: 5.7 7.6 head-timing-info: Tokenizer::simplifyTokens1: 5.26681s (avg. 0.21945s - 24 result(s)) Tokenizer::simplifyTokens1::ValueFlow: 4.63595s (avg. 0.193164s - 24 result(s)) Tokenizer::simplifyTokens1::createSymbolDatabase: 0.333302s (avg. 0.0138876s - 24 result(s)) Check function usage::runChecks: 0.134152s (avg. 0.00558967s - 24 result(s)) Tokenizer::createTokens: 0.082471s (avg. 0.00343629s - 24 result(s)) Overall time: 10.8008s old-timing-info: Tokenizer::simplifyTokens1: 7.18893s (avg. 0.299539s - 24 result(s)) Tokenizer::simplifyTokens1::ValueFlow: 6.5331s (avg. 0.272213s - 24 result(s)) Tokenizer::simplifyTokens1::createSymbolDatabase: 0.353826s (avg. 0.0147427s - 24 result(s)) Check function usage::runChecks: 0.111395s (avg. 0.00464146s - 24 result(s)) Tokenizer::createTokens: 0.080516s (avg. 0.00335483s - 24 result(s)) Overall time: 14.6098s head results: yad-0.40.0/src/browser.c:197:8: style: Variable 'data' is reassigned a value before the old one has been used. [redundantAssignment] yad-0.40.0/src/browser.c:189:8: note: data is assigned yad-0.40.0/src/browser.c:197:8: note: data is overwritten yad-0.40.0/src/calendar.c:78:10: warning: Identical condition and return expression 'str', return value is always 0 [identicalConditionAfterEarlyExit] yad-0.40.0/src/calendar.c:76:7: note: If condition 'str' is true, the function will return/exit yad-0.40.0/src/calendar.c:78:10: note: Returning identical expression 'str' yad-0.40.0/src/form.c:1129:36: style: Array index 'i' is used before limits check. [arrayIndexThenCheck] yad-0.40.0/src/form.c:357:18: style: Local variable 'data' shadows outer argument [shadowArgument] yad-0.40.0/src/form.c:349:44: note: Shadowed declaration yad-0.40.0/src/form.c:357:18: note: Shadow variable yad-0.40.0/src/form.c:1063:28: style: Local variable 'l' shadows outer variable [shadowVariable] yad-0.40.0/src/form.c:698:18: note: Shadowed declaration yad-0.40.0/src/form.c:1063:28: note: Shadow variable yad-0.40.0/src/form.c:1314:53: style: Clarify calculation precedence for '%' and '?'. [clarifyCalculation] yad-0.40.0/src/html.c:302:22: style: Local variable 'settings' shadows outer variable [shadowVariable] yad-0.40.0/src/yad.h:537:20: note: Shadowed declaration yad-0.40.0/src/html.c:302:22: note: Shadow variable yad-0.40.0/src/list.c:663:18: style: Local variable 'data' shadows outer argument [shadowArgument] yad-0.40.0/src/list.c:617:95: note: Shadowed declaration yad-0.40.0/src/list.c:663:18: note: Shadow variable yad-0.40.0/src/main.c:687:7: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] yad-0.40.0/src/main.c:301:11: warning: Identical inner 'if' condition is always true. [identicalInnerCondition] yad-0.40.0/src/main.c:297:7: note: outer condition: mw yad-0.40.0/src/main.c:301:11: note: identical inner condition: mw yad-0.40.0/src/notebook.c:89:5: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] yad-0.40.0/src/notebook.c:141:7: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] yad-0.40.0/src/option.c:920:11: style: Condition 'name' is always false [knownConditionTrueFalse] yad-0.40.0/src/option.c:907:21: note: Assignment 'name=NULL', assigned value is 0 yad-0.40.0/src/option.c:913:24: note: Assuming condition is false yad-0.40.0/src/option.c:920:11: note: Condition 'name' is always false yad-0.40.0/src/paned.c:78:5: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] yad-0.40.0/src/paned.c:119:7: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] yad-0.40.0/src/print.c:170:25: style: The if condition is the same as the previous if condition [duplicateCondition] yad-0.40.0/src/print.c:166:25: note: First condition yad-0.40.0/src/print.c:170:25: note: Second condition yad-0.40.0/src/progress.c:44:20: style: Variable 'percentage' is assigned a value that is never used. [unreadVariable] yad-0.40.0/src/text.c:225:19: style: Local variable 'tag' shadows outer variable [shadowVariable] yad-0.40.0/src/text.c:28:20: note: Shadowed declaration yad-0.40.0/src/text.c:225:19: note: Shadow variable yad-0.40.0/src/text.c:179:77: style: Parameter 'iter' can be declared as pointer to const [constParameter] diff: head yad-0.40.0/src/text.c:179:77: style: Parameter 'iter' can be declared as pointer to const [constParameter] 2.8 yad-0.40.0/src/text.c:179:77: style: Parameter 'iter' can be declared with const [constParameter] DONE