2025-11-23 18:36 ftp://ftp.de.debian.org/debian/pool/main/r/r-cran-pander/r-cran-pander_0.6.6+dfsg.orig.tar.xz cppcheck-options: --library=posix --library=gnu --library=bsd --inconclusive --enable=style,information --inline-suppr --template=daca2 --disable=missingInclude --suppress=unmatchedSuppression --check-library --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning --suppress=normalCheckLevelConditionExpressions -D__GNUC__ --platform=unix64 -j4 platform: Linux-5.4.0-216-generic-x86_64-with-glibc2.29 python: 3.8.10 client-version: 1.3.69 compiler: g++ (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0 cppcheck: head 2.18.0 head-info: cb76e52 (2025-11-22 14:47:37 +0100) count: 20 20 elapsed-time: 0.0 0.2 head-timing-info: old-timing-info: head results: pander/src/RcppExports.cpp:25:1: error: There is an unknown macro here somewhere. Configuration is required. If END_RCPP is a macro then please configure it. [unknownMacro] pander/src/pandoc.cpp:43:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable npos [valueFlowBailoutIncompleteVar] pander/src/helpers.cpp:12:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable npos [valueFlowBailoutIncompleteVar] pander/src/helpers.cpp:24:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable npos [valueFlowBailoutIncompleteVar] pander/src/helpers.cpp:82:53: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable npos [valueFlowBailoutIncompleteVar] pander/src/helpers.cpp:32:7: style: Redundant initialization for 'pos'. The initialized value is overwritten before it is read. [redundantInitialization] pander/src/helpers.cpp:24:14: note: pos is initialized pander/src/helpers.cpp:32:7: note: pos is overwritten pander/src/helpers.cpp:23:7: style: The scope of the variable 'lsyl' can be reduced. [variableScope] pander/src/helpers.cpp:23:13: style: The scope of the variable 'hyph' can be reduced. [variableScope] pander/src/helpers.cpp:68:18: style: The scope of the variable 'lword' can be reduced. [variableScope] pander/src/helpers.cpp:8:54: style: Parameter 's' can be declared as reference to const [constParameterReference] pander/src/helpers.cpp:9:29: warning: Either the condition 'result.empty()' is redundant or expression 'result.rbegin()' causes access out of bounds. [containerOutOfBounds] pander/src/helpers.cpp:10:19: note: Assuming that condition 'result.empty()' is not redundant pander/src/helpers.cpp:9:29: note: Access out of bounds pander/src/pandoc.cpp:33:10: style: The scope of the variable 'pos' can be reduced. [variableScope] pander/src/pandoc.cpp:36:10: style: The scope of the variable 'j' can be reduced. [variableScope] pander/src/pandoc.cpp:36:13: style: The scope of the variable 'n' can be reduced. [variableScope] pander/src/pandoc.cpp:37:15: style: The scope of the variable 'maxLengthCells' can be reduced. [variableScope] pander/src/pandoc.cpp:41:20: style: Local variable 'i' shadows outer variable [shadowVariable] pander/src/pandoc.cpp:36:7: note: Shadowed declaration pander/src/pandoc.cpp:41:20: note: Shadow variable pander/src/pandoc.cpp:68:22: style: Local variable 'i' shadows outer variable [shadowVariable] pander/src/pandoc.cpp:36:7: note: Shadowed declaration pander/src/pandoc.cpp:68:22: note: Shadow variable pander/src/pandoc.cpp:31:139: performance: Function parameter 'style' should be passed by const reference. [passedByValue] pander/src/pandoc.cpp:36:15: style: Variable 'n' is assigned a value that is never used. [unreadVariable] pander/src/pandoc.cpp:32:25: style: Unused variable: word [unusedVariable] diff: DONE