2022-06-25 05:35 ftp://ftp.de.debian.org/debian/pool/main/s/silversearcher-ag/silversearcher-ag_2.2.0+git20200805.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-5.4.0-121-generic-x86_64-with-glibc2.29 python: 3.8.10 client-version: 1.3.24 compiler: g++ (Ubuntu 10.3.0-1ubuntu1~20.04) 10.3.0 cppcheck: head 2.8 head-info: 11860cc (2022-06-24 13:55:04 +0200) count: 11 11 elapsed-time: 4.2 4.8 head-timing-info: Tokenizer::simplifyTokens1: 1.22941s (avg. 0.111764s - 11 result(s)) Tokenizer::simplifyTokens1::ValueFlow: 1.06527s (avg. 0.0968429s - 11 result(s)) Tokenizer::simplifyTokens1::createSymbolDatabase: 0.087872s (avg. 0.00798836s - 11 result(s)) Tokenizer::createTokens: 0.029608s (avg. 0.00246733s - 12 result(s)) Tokenizer::simplifyTokens1::setValueType: 0.019326s (avg. 0.00175691s - 11 result(s)) Overall time: 2.51738s old-timing-info: Tokenizer::simplifyTokens1: 1.40496s (avg. 0.127724s - 11 result(s)) Tokenizer::simplifyTokens1::ValueFlow: 1.23914s (avg. 0.112649s - 11 result(s)) Tokenizer::simplifyTokens1::createSymbolDatabase: 0.088894s (avg. 0.00808127s - 11 result(s)) Tokenizer::createTokens: 0.02861s (avg. 0.00238417s - 12 result(s)) Tokenizer::simplifyTokens1::setValueType: 0.018466s (avg. 0.00167873s - 11 result(s)) Overall time: 2.86452s head results: the_silver_searcher-master/src/ignore.c:187:22: style: Condition 'line_len==0' is always false [knownConditionTrueFalse] the_silver_searcher-master/src/ignore.c:186:55: note: Assuming that condition '(line_len=getline(&line,&line_cap,fp))>0' is not redundant the_silver_searcher-master/src/ignore.c:187:22: note: Condition 'line_len==0' is always false the_silver_searcher-master/src/lang.c:184:40: style: Parameter 'extension_index' can be declared as pointer to const [constParameter] the_silver_searcher-master/src/print.c:229:25: portability: %lu in format string (no. 1) requires 'unsigned long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_uint] the_silver_searcher-master/src/print.c:150:28: style: Variable 'lines_to_print' is assigned a value that is never used. [unreadVariable] the_silver_searcher-master/src/scandir.c:27:21: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] the_silver_searcher-master/src/util.c:36:24: style:inconclusive: Function 'ag_calloc' argument 1 names different: declaration 'nelem' definition 'count'. [funcArgNamesDifferent] the_silver_searcher-master/src/util.h:35:24: note: Function 'ag_calloc' argument 1 names different: declaration 'nelem' definition 'count'. the_silver_searcher-master/src/util.c:36:24: note: Function 'ag_calloc' argument 1 names different: declaration 'nelem' definition 'count'. the_silver_searcher-master/src/util.c:36:38: style:inconclusive: Function 'ag_calloc' argument 2 names different: declaration 'elsize' definition 'size'. [funcArgNamesDifferent] the_silver_searcher-master/src/util.h:35:38: note: Function 'ag_calloc' argument 2 names different: declaration 'elsize' definition 'size'. the_silver_searcher-master/src/util.c:36:38: note: Function 'ag_calloc' argument 2 names different: declaration 'elsize' definition 'size'. the_silver_searcher-master/src/util.c:160:67: style:inconclusive: Function 'generate_hash' argument 3 names different: declaration 'H' definition 'h_table'. [funcArgNamesDifferent] the_silver_searcher-master/src/util.h:68:67: note: Function 'generate_hash' argument 3 names different: declaration 'H' definition 'h_table'. the_silver_searcher-master/src/util.c:160:67: note: Function 'generate_hash' argument 3 names different: declaration 'H' definition 'h_table'. the_silver_searcher-master/src/util.c:655:22: style:inconclusive: Function 'strlcpy' argument 1 names different: declaration 'dest' definition 'dst'. [funcArgNamesDifferent] the_silver_searcher-master/src/util.h:113:22: note: Function 'strlcpy' argument 1 names different: declaration 'dest' definition 'dst'. the_silver_searcher-master/src/util.c:655:22: note: Function 'strlcpy' argument 1 names different: declaration 'dest' definition 'dst'. the_silver_searcher-master/src/util.c:697:12: error: Uninitialized variable: args2 [uninitvar] the_silver_searcher-master/src/util.c:697:12: error: va_list 'args2' used before va_start() was called. [va_list_usedBeforeStarted] diff: head the_silver_searcher-master/src/lang.c:184:40: style: Parameter 'extension_index' can be declared as pointer to const [constParameter] 2.8 the_silver_searcher-master/src/lang.c:184:40: style: Parameter 'extension_index' can be declared with const [constParameter] DONE