2022-06-20 13:20 ftp://ftp.de.debian.org/debian/pool/main/x/xmlstarlet/xmlstarlet_1.6.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: ff50a01 (2022-06-20 09:17:11 +0200) count: 22 22 elapsed-time: 8.3 11.4 head-timing-info: Tokenizer::simplifyTokens1: 8.07383s (avg. 0.672819s - 12 result(s)) Tokenizer::simplifyTokens1::ValueFlow: 7.87838s (avg. 0.656532s - 12 result(s)) Tokenizer::simplifyTokens1::createSymbolDatabase: 0.107308s (avg. 0.00894233s - 12 result(s)) Tokenizer::createTokens: 0.034864s (avg. 0.00268185s - 13 result(s)) Tokenizer::simplifyTokens1::setValueType: 0.031539s (avg. 0.00262825s - 12 result(s)) Overall time: 16.2402s old-timing-info: Tokenizer::simplifyTokens1: 11.2323s (avg. 0.936028s - 12 result(s)) Tokenizer::simplifyTokens1::ValueFlow: 11.0385s (avg. 0.919873s - 12 result(s)) Tokenizer::simplifyTokens1::createSymbolDatabase: 0.106223s (avg. 0.00885192s - 12 result(s)) Tokenizer::createTokens: 0.034473s (avg. 0.00265177s - 13 result(s)) Tokenizer::simplifyTokens1::setValueType: 0.030239s (avg. 0.00251992s - 12 result(s)) Overall time: 22.5573s head results: xmlstarlet-1.6.1/src/trans.c:53:26: style: Variable 'xmlLineNumbersDefault' is assigned a value that is never used. [unreadVariable] xmlstarlet-1.6.1/src/xml.c:80:17: debug: Wrong data detected by condition !tok->next()->astOperand1() [DacaWrongData] xmlstarlet-1.6.1/src/xml.c:109:16: style: Local variable 'errorInfo' shadows outer variable [shadowVariable] xmlstarlet-1.6.1/src/xml.c:105:18: note: Shadowed declaration xmlstarlet-1.6.1/src/xml.c:109:16: note: Shadow variable xmlstarlet-1.6.1/src/xml_depyx.c:43:17: debug: Wrong data detected by condition !tok->next()->astOperand1() [DacaWrongData] xmlstarlet-1.6.1/src/xml_edit.c:130:17: debug: Wrong data detected by condition !tok->next()->astOperand1() [DacaWrongData] xmlstarlet-1.6.1/src/xml_elem.c:68:17: debug: Wrong data detected by condition !tok->next()->astOperand1() [DacaWrongData] xmlstarlet-1.6.1/src/xml_elem.c:156:42: style: Redundant condition: elOps.check_depth!=0. 'A || (!A && B)' is equivalent to 'A || B' [redundantCondition] xmlstarlet-1.6.1/src/xml_escape.c:52:17: debug: Wrong data detected by condition !tok->next()->astOperand1() [DacaWrongData] xmlstarlet-1.6.1/src/xml_escape.c:53:17: debug: Wrong data detected by condition !tok->next()->astOperand1() [DacaWrongData] xmlstarlet-1.6.1/src/xml_format.c:78:17: debug: Wrong data detected by condition !tok->next()->astOperand1() [DacaWrongData] xmlstarlet-1.6.1/src/xml_format.c:121:26: style: Variable 'xmlLineNumbersDefault' is assigned a value that is never used. [unreadVariable] xmlstarlet-1.6.1/src/xml_ls.c:51:0: error: #error "lstat() or stat() required" [preprocessorErrorDirective] xmlstarlet-1.6.1/src/xml_pyx.c:236:17: debug: Wrong data detected by condition !tok->next()->astOperand1() [DacaWrongData] xmlstarlet-1.6.1/src/xml_pyx.c:104:14: style: Local variable 'prefix' shadows outer argument [shadowArgument] xmlstarlet-1.6.1/src/xml_pyx.c:73:21: note: Shadowed declaration xmlstarlet-1.6.1/src/xml_pyx.c:104:14: note: Shadow variable xmlstarlet-1.6.1/src/xml_pyx.c:118:24: style: Local variable 'localname' shadows outer argument [shadowArgument] xmlstarlet-1.6.1/src/xml_pyx.c:72:21: note: Shadowed declaration xmlstarlet-1.6.1/src/xml_pyx.c:118:24: note: Shadow variable xmlstarlet-1.6.1/src/xml_pyx.c:119:14: style: Local variable 'prefix' shadows outer argument [shadowArgument] xmlstarlet-1.6.1/src/xml_pyx.c:73:21: note: Shadowed declaration xmlstarlet-1.6.1/src/xml_pyx.c:119:14: note: Shadow variable xmlstarlet-1.6.1/src/xml_select.c:160:17: debug: Wrong data detected by condition !tok->next()->astOperand1() [DacaWrongData] xmlstarlet-1.6.1/src/xml_trans.c:52:17: debug: Wrong data detected by condition !tok->next()->astOperand1() [DacaWrongData] xmlstarlet-1.6.1/src/xml_trans.c:259:9: style: Local variable 'errorno' shadows outer variable [shadowVariable] xmlstarlet-1.6.1/src/trans.h:78:12: note: Shadowed declaration xmlstarlet-1.6.1/src/xml_trans.c:259:9: note: Shadow variable xmlstarlet-1.6.1/src/xml_validate.c:77:17: debug: Wrong data detected by condition !tok->next()->astOperand1() [DacaWrongData] xmlstarlet-1.6.1/src/xml_validate.c:448:28: style: Condition 'failed==0' is always true [knownConditionTrueFalse] xmlstarlet-1.6.1/src/xml_validate.c:433:27: note: Assuming that condition '!failed' is not redundant xmlstarlet-1.6.1/src/xml_validate.c:448:28: note: Condition 'failed==0' is always true xmlstarlet-1.6.1/src/xml_validate.c:224:9: style:inconclusive: Statements following return, break, continue, goto or throw will never be executed. [unreachableCode] diff: DONE