2022-06-29 08:20 ftp://ftp.de.debian.org/debian/pool/main/libd/libdbd-pg-perl/libdbd-pg-perl_3.15.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 -j2 platform: Linux-5.4.0-110-generic-x86_64-with-glibc2.29 python: 3.8.10 client-version: 1.3.24 compiler: g++ (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0 cppcheck: head 2.8 head-info: b90a726 (2022-06-29 07:22:26 +0200) count: 20 20 elapsed-time: 661.5 780.1 head-timing-info: Overall time: 0s old-timing-info: Overall time: 0s head results: DBD-Pg-3.15.1/dbdimp.c:4212:5: style: Assignment of function parameter has no effect outside the function. [uselessAssignmentArg] DBD-Pg-3.15.1/dbdimp.c:3994:17: warning:inconclusive: The buffer 'tempsqlstate' may not be null-terminated after the call to strncpy(). [terminateStrncpy] DBD-Pg-3.15.1/dbdimp.c:982:25: style: Condition '-1==imp_dbh->pg_enable_utf8' is always false [knownConditionTrueFalse] DBD-Pg-3.15.1/dbdimp.c:978:24: note: Assuming that condition '1==imp_dbh->pg_enable_utf8' is not redundant DBD-Pg-3.15.1/dbdimp.c:982:25: note: Condition '-1==imp_dbh->pg_enable_utf8' is always false DBD-Pg-3.15.1/dbdimp.c:472:32: warning: Either the condition '!sqlstate' is redundant or there is possible null pointer dereference: sqlstate. [nullPointerRedundantCheck] DBD-Pg-3.15.1/dbdimp.c:444:9: note: Assuming that condition '!sqlstate' is not redundant DBD-Pg-3.15.1/dbdimp.c:472:32: note: Null pointer dereference DBD-Pg-3.15.1/dbdimp.c:737:96: style: Same expression in both branches of ternary operator. [duplicateExpressionTernary] DBD-Pg-3.15.1/dbdimp.c:1078:21: style: Local variable 'key' shadows outer variable [shadowVariable] DBD-Pg-3.15.1/dbdimp.c:1062:23: note: Shadowed declaration DBD-Pg-3.15.1/dbdimp.c:1078:21: note: Shadow variable DBD-Pg-3.15.1/dbdimp.c:1106:21: style: Local variable 'key' shadows outer variable [shadowVariable] DBD-Pg-3.15.1/dbdimp.c:1062:23: note: Shadowed declaration DBD-Pg-3.15.1/dbdimp.c:1106:21: note: Shadow variable DBD-Pg-3.15.1/dbdimp.c:1140:21: style: Local variable 'key' shadows outer variable [shadowVariable] DBD-Pg-3.15.1/dbdimp.c:1062:23: note: Shadowed declaration DBD-Pg-3.15.1/dbdimp.c:1140:21: note: Shadow variable DBD-Pg-3.15.1/dbdimp.c:1315:24: style: Variable 'status' is assigned a value that is never used. [unreadVariable] DBD-Pg-3.15.1/dbdimp.c:1819:16: style: Variable 'oldch' is assigned a value that is never used. [unreadVariable] DBD-Pg-3.15.1/dbdimp.c:2447:12: style: Variable 'maxlen' is assigned a value that is never used. [unreadVariable] DBD-Pg-3.15.1/dbdimp.c:2704:18: style: Variable 'done' is assigned a value that is never used. [unreadVariable] DBD-Pg-3.15.1/dbdimp.c:4212:12: style: Variable 'length' is assigned a value that is never used. [unreadVariable] DBD-Pg-3.15.1/dbdimp.c:4740:16: style: Variable 'status' is assigned a value that is never used. [unreadVariable] DBD-Pg-3.15.1/dbdimp.c:5276:27: style: Variable 'status' is assigned a value that is never used. [unreadVariable] DBD-Pg-3.15.1/dbdimp.c:5714:27: style: Variable 'status' is assigned a value that is never used. [unreadVariable] DBD-Pg-3.15.1/quote.c:256:37: style:inconclusive: Function 'quote_bool' argument 1 names different: declaration 'string' definition 'value'. [funcArgNamesDifferent] DBD-Pg-3.15.1/quote.h:6:37: note: Function 'quote_bool' argument 1 names different: declaration 'string' definition 'value'. DBD-Pg-3.15.1/quote.c:256:37: note: Function 'quote_bool' argument 1 names different: declaration 'string' definition 'value'. DBD-Pg-3.15.1/quote.c:99:9: style: Variable 'len' is assigned a value that is never used. [unreadVariable] DBD-Pg-3.15.1/quote.c:130:9: style: Variable 'len' is assigned a value that is never used. [unreadVariable] DBD-Pg-3.15.1/quote.c:160:9: style: Variable 'len' is assigned a value that is never used. [unreadVariable] diff: DONE