2022-07-01 20:10 ftp://ftp.de.debian.org/debian/pool/main/v/vnstat/vnstat_2.9.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: 596f75e (2022-07-01 10:48:32 +0200) count: 100 TO! elapsed-time: 1062.5 1800.2 head-timing-info: Tokenizer::simplifyTokens1: 349.84s (avg. 9.45513s - 37 result(s)) Tokenizer::simplifyTokens1::ValueFlow: 349.028s (avg. 10.9071s - 32 result(s)) Tokenizer::simplifyTokens1::createSymbolDatabase: 0.493087s (avg. 0.015409s - 32 result(s)) Tokenizer::createTokens: 0.127568s (avg. 0.00335705s - 38 result(s)) Tokenizer::simplifyTokens1::setValueType: 0.0967s (avg. 0.00302187s - 32 result(s)) Overall time: 699.972s old-timing-info: head results: vnstat-2.9/src/common.c:48:44: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] vnstat-2.9/src/common.c:101:43: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] vnstat-2.9/src/common.c:179:13: style: Variable 'dmon' can be declared as const array [constVariable] vnstat-2.9/src/daemon.c:237:42: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] vnstat-2.9/src/daemon.c:325:15: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] vnstat-2.9/src/daemon.c:1013:8: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] vnstat-2.9/src/daemon.c:1054:45: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] vnstat-2.9/src/daemon.c:1072:43: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] vnstat-2.9/src/daemon.c:1074:44: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] vnstat-2.9/src/daemon.c:1081:44: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] vnstat-2.9/src/daemon.c:1082:45: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] vnstat-2.9/src/daemon.c:1087:44: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] vnstat-2.9/src/daemon.c:1088:45: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] vnstat-2.9/src/daemon.c:1095:44: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] vnstat-2.9/src/daemon.c:1096:45: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] vnstat-2.9/src/daemon.c:742:36: style: Variable 'interface_already_monitored' is assigned a value that is never used. [unreadVariable] vnstat-2.9/src/dbaccess.c:103:9: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] vnstat-2.9/src/dbaccess.c:280:6: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] vnstat-2.9/src/dbjson.c:108:6: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] vnstat-2.9/src/dbshow.c:77:51: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] vnstat-2.9/src/dbshow.c:102:7: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] vnstat-2.9/src/dbshow.c:138:7: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] vnstat-2.9/src/dbshow.c:209:6: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] vnstat-2.9/src/dbshow.c:211:6: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] vnstat-2.9/src/dbshow.c:224:7: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] vnstat-2.9/src/dbshow.c:240:9: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] vnstat-2.9/src/dbshow.c:385:7: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] vnstat-2.9/src/dbshow.c:445:7: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] vnstat-2.9/src/dbshow.c:589:7: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] vnstat-2.9/src/dbshow.c:593:7: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] vnstat-2.9/src/dbshow.c:622:7: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] vnstat-2.9/src/dbshow.c:691:7: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] vnstat-2.9/src/dbshow.c:706:6: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] vnstat-2.9/src/dbshow.c:1008:53: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] vnstat-2.9/src/dbshow.c:1017:45: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] vnstat-2.9/src/dbshow.c:1019:52: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] vnstat-2.9/src/dbshow.c:1023:52: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] vnstat-2.9/src/dbshow.c:1027:52: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] vnstat-2.9/src/dbshow.c:1031:45: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] vnstat-2.9/src/dbshow.c:820:4: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] vnstat-2.9/src/dbshow.c:298:38: style: Variable 'e_secs' is assigned a value that is never used. [unreadVariable] vnstat-2.9/src/dbsql.c:158:23: style: Condition 'dbversion