2024-03-25 11:58 ftp://ftp.de.debian.org/debian/pool/main/r/r-cran-bigmemory/r-cran-bigmemory_4.6.4.orig.tar.gz cppcheck-options: --library=posix --library=gnu --showtime=top5 --check-library --inconclusive --enable=style,information --inline-suppr --disable=missingInclude --suppress=unmatchedSuppression --template=daca2 --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning --suppress=valueFlowBailoutIncompleteVar -D__GNUC__ --platform=unix64 -j4 platform: Linux-6.1.0-0.deb11.6-amd64-x86_64-with-glibc2.31 python: 3.9.2 client-version: 1.3.45 compiler: g++ (Debian 10.2.1-6) 10.2.1 20210110 cppcheck: head 2.13.0 head-info: fd7bd50 (2024-03-25 07:57:46 +0100) count: 39 39 elapsed-time: 2.4 4.2 head-timing-info: Tokenizer::simplifyTokens1::ValueFlow: 1.41059s (avg. 1.41059s - 1 result(s)) valueFlowAfterAssign(tokenlist, symboldatabase, errorLogger, settings, skippedFunctions): 0.524246s (avg. 0.174749s - 3 result(s)) Tokenizer::simplifyTokens1::simplifyTokenList1: 0.299148s (avg. 0.299148s - 1 result(s)) UnusedVar::runChecks: 0.293037s (avg. 0.293037s - 1 result(s)) valueFlowCondition(SimpleConditionHandler{}, tokenlist, symboldatabase, errorLogger, settings, skippedFunctions): 0.25966s (avg. 0.0865533s - 3 result(s)) Overall time: 2.39586s old-timing-info: Tokenizer::simplifyTokens1::ValueFlow: 3.28075s (avg. 3.28075s - 1 result(s)) valueFlowAfterAssign(tokenlist, symboldatabase, errorLogger, settings, skippedFunctions): 2.17276s (avg. 0.724254s - 3 result(s)) valueFlowCondition(SimpleConditionHandler{}, tokenlist, symboldatabase, errorLogger, settings, skippedFunctions): 0.517508s (avg. 0.172503s - 3 result(s)) Tokenizer::simplifyTokens1::simplifyTokenList1: 0.307824s (avg. 0.307824s - 1 result(s)) Tokenizer::simplifyTokens1::simplifyTokenList1::simplifyTemplates: 0.263649s (avg. 0.263649s - 1 result(s)) Overall time: 4.13237s head results: bigmemory/src/RcppExports.cpp:22:1: error: There is an unknown macro here somewhere. Configuration is required. If END_RCPP is a macro then please configure it. [unknownMacro] bigmemory/src/bigmemory.cpp:2278:20: debug: Failed to instantiate template "MWhichMatrix". The checking continues anyway. [templateInstantiation] bigmemory/src/bigmemory.cpp:1538:10: debug: Failed to instantiate template "get_order2". The checking continues anyway. [templateInstantiation] bigmemory/src/bigmemory.cpp:1463:10: debug: Failed to instantiate template "get_order". The checking continues anyway. [templateInstantiation] bigmemory/src/BigMatrix.cpp:1327:15: style: The scope of the variable 'i' can be reduced. [variableScope] bigmemory/src/BigMatrix.cpp:898:28: style: Variable 'fullFileName' is assigned a value that is never used. [unreadVariable] bigmemory/src/deepcopy.cpp:33:13: style: The scope of the variable 'pInColumn' can be reduced. [variableScope] bigmemory/src/deepcopy.cpp:34:14: style: The scope of the variable 'pOutColumn' can be reduced. [variableScope] bigmemory/src/deepcopy.cpp:107:14: style: Variable 'type_names' can be declared as const array [constVariable] bigmemory/src/bigmemory.cpp:997:3: style: Struct 'SecondLess' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] bigmemory/src/bigmemory.cpp:1021:3: style: Struct 'SecondGreater' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] bigmemory/src/bigmemory.cpp:1754:21: style: C-style pointer casting [cstyleCast] bigmemory/src/bigmemory.cpp:1769:21: style: C-style pointer casting [cstyleCast] bigmemory/src/bigmemory.cpp:1782:21: style: C-style pointer casting [cstyleCast] bigmemory/src/bigmemory.cpp:1794:21: style: C-style pointer casting [cstyleCast] bigmemory/src/bigmemory.cpp:1802:21: style: C-style pointer casting [cstyleCast] bigmemory/src/bigmemory.cpp:1810:21: style: C-style pointer casting [cstyleCast] bigmemory/src/bigmemory.cpp:1821:21: style: C-style pointer casting [cstyleCast] bigmemory/src/bigmemory.cpp:1862:21: style: C-style pointer casting [cstyleCast] bigmemory/src/bigmemory.cpp:1872:21: style: C-style pointer casting [cstyleCast] bigmemory/src/bigmemory.cpp:1891:21: style: C-style pointer casting [cstyleCast] bigmemory/src/bigmemory.cpp:1904:21: style: C-style pointer casting [cstyleCast] bigmemory/src/bigmemory.cpp:1917:21: style: C-style pointer casting [cstyleCast] bigmemory/src/bigmemory.cpp:1931:17: style: C-style pointer casting [cstyleCast] bigmemory/src/bigmemory.cpp:3351:21: style: C-style pointer casting [cstyleCast] bigmemory/src/bigmemory.cpp:3362:21: style: C-style pointer casting [cstyleCast] bigmemory/src/bigmemory.cpp:3372:21: style: C-style pointer casting [cstyleCast] bigmemory/src/bigmemory.cpp:885:18: style:inconclusive: Found duplicate branches for 'if' and 'else'. [duplicateBranch] bigmemory/src/bigmemory.cpp:889:13: note: Found duplicate branches for 'if' and 'else'. bigmemory/src/bigmemory.cpp:885:18: note: Found duplicate branches for 'if' and 'else'. bigmemory/src/bigmemory.cpp:250:10: style: The scope of the variable 'pColumn' can be reduced. [variableScope] bigmemory/src/bigmemory.cpp:221:10: style: The scope of the variable 'pColumn' can be reduced. [variableScope] bigmemory/src/bigmemory.cpp:192:10: style: The scope of the variable 'pColumn' can be reduced. [variableScope] bigmemory/src/bigmemory.cpp:168:10: style: The scope of the variable 'pColumn' can be reduced. [variableScope] bigmemory/src/bigmemory.cpp:82:10: style: The scope of the variable 'pColumn' can be reduced. [variableScope] bigmemory/src/bigmemory.cpp:1951:11: style: Variable 'min' can be declared as pointer to const [constVariablePointer] bigmemory/src/bigmemory.cpp:1952:11: style: Variable 'max' can be declared as pointer to const [constVariablePointer] bigmemory/src/bigmemory.cpp:1953:8: style: Variable 'chkmin' can be declared as pointer to const [constVariablePointer] bigmemory/src/bigmemory.cpp:1954:8: style: Variable 'chkmax' can be declared as pointer to const [constVariablePointer] bigmemory/src/bigmemory.cpp:3413:9: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] bigmemory/src/bigmemory.cpp:2372:12: warning: Storing fgetc() return value in char variable and then comparing with EOF. [checkCastIntToCharAndBack] diff: DONE