2025-09-15 21:36 ftp://ftp.de.debian.org/debian/pool/main/r/rcpp/rcpp_1.1.0.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --library=openmp --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-6.12.43+deb13-amd64-x86_64-with-glibc2.41 python: 3.13.5 client-version: 1.3.67 compiler: g++ (Debian 14.2.0-19) 14.2.0 cppcheck: head 2.18.0 head-info: 3e169d6 (2025-09-15 13:38:15 +0200) count: 171 187 elapsed-time: 1.2 1.2 head-timing-info: old-timing-info: head results: Rcpp/inst/examples/ConvolveBenchmarks/convolve11_cpp.cpp:23:1: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable R_NilValue [valueFlowBailoutIncompleteVar] Rcpp/inst/examples/ConvolveBenchmarks/convolve10_cpp.cpp:35:1: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable R_NilValue [valueFlowBailoutIncompleteVar] Rcpp/inst/examples/ConvolveBenchmarks/convolve12_cpp.cpp:23:1: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable R_NilValue [valueFlowBailoutIncompleteVar] Rcpp/inst/examples/ConvolveBenchmarks/convolve10_cpp.h:7:5: style: Class 'Cache' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] Rcpp/inst/examples/ConvolveBenchmarks/convolve10_cpp.h:20:5: style: Class 'Vec' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] Rcpp/inst/examples/ConvolveBenchmarks/convolve13_cpp.cpp:26:1: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable R_NilValue [valueFlowBailoutIncompleteVar] Rcpp/inst/examples/ConvolveBenchmarks/convolve14_cpp.cpp:24:1: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable R_NilValue [valueFlowBailoutIncompleteVar] Rcpp/inst/examples/ConvolveBenchmarks/convolve2_c.c:27:1: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable R_NilValue [valueFlowBailoutIncompleteVar] Rcpp/inst/examples/ConvolveBenchmarks/convolve3_cpp.cpp:23:1: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable R_NilValue [valueFlowBailoutIncompleteVar] Rcpp/inst/examples/ConvolveBenchmarks/convolve4_cpp.cpp:27:1: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable R_NilValue [valueFlowBailoutIncompleteVar] Rcpp/inst/examples/ConvolveBenchmarks/convolve5_cpp.cpp:22:1: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable R_NilValue [valueFlowBailoutIncompleteVar] Rcpp/inst/examples/ConvolveBenchmarks/convolve7_c.c:27:1: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable R_NilValue [valueFlowBailoutIncompleteVar] Rcpp/inst/examples/ConvolveBenchmarks/convolve2_c.c:10:13: style: Variable 'xa' can be declared as pointer to const [constVariablePointer] Rcpp/inst/examples/ConvolveBenchmarks/convolve2_c.c:10:18: style: Variable 'xb' can be declared as pointer to const [constVariablePointer] Rcpp/inst/examples/ConvolveBenchmarks/overhead_1.cpp:9:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable R_NilValue [valueFlowBailoutIncompleteVar] Rcpp/inst/examples/ConvolveBenchmarks/overhead_1.cpp:15:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DL_FUNC [valueFlowBailoutIncompleteVar] Rcpp/inst/examples/ConvolveBenchmarks/convolve8_cpp.cpp:42:1: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable R_NilValue [valueFlowBailoutIncompleteVar] Rcpp/inst/examples/ConvolveBenchmarks/convolve4_cpp.cpp:15:13: style: Variable 'pa' can be declared as pointer to const [constVariablePointer] Rcpp/inst/examples/ConvolveBenchmarks/convolve4_cpp.cpp:16:13: style: Variable 'pb' can be declared as pointer to const [constVariablePointer] Rcpp/inst/examples/ConvolveBenchmarks/overhead_2.c:9:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable R_NilValue [valueFlowBailoutIncompleteVar] Rcpp/inst/examples/ConvolveBenchmarks/overhead_2.c:15:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DL_FUNC [valueFlowBailoutIncompleteVar] Rcpp/inst/examples/ConvolveBenchmarks/convolve9_cpp.cpp:60:1: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable R_NilValue [valueFlowBailoutIncompleteVar] Rcpp/inst/examples/ConvolveBenchmarks/convolve8_cpp.cpp:16:5: style: Class 'Vec' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] Rcpp/inst/examples/OpenMP/piWithInterrupts.cpp:133:5: error: There is an unknown macro here somewhere. Configuration is required. If END_RCPP is a macro then please configure it. [unknownMacro] Rcpp/inst/examples/ConvolveBenchmarks/convolve4_cpp.cpp:18:12: style: Variable 'j' is assigned a value that is never used. [unreadVariable] Rcpp/inst/examples/SugarPerformance/Timertest.cpp:12:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] Rcpp/inst/examples/ConvolveBenchmarks/convolve9_cpp.cpp:20:5: style: Class 'Cache' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] Rcpp/inst/examples/ConvolveBenchmarks/convolve9_cpp.cpp:33:5: style: Class 'Vec' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] Rcpp/inst/examples/SugarPerformance/Timer.h:41:12: style:inconclusive: Technically the member function 'Timer::ElapsedTime' can be const. [functionConst] Rcpp/inst/examples/SugarPerformance/Timer.h:42:12: style:inconclusive: Technically the member function 'Timer::CumulativeTime' can be const. [functionConst] Rcpp/inst/skeleton/stdVector.cpp:64:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable size [valueFlowBailoutIncompleteVar] Rcpp/inst/tinytest/cpp/Exceptions_nocall.cpp:12:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable R_EmptyEnv [valueFlowBailoutIncompleteVar] Rcpp/inst/tinytest/cpp/InternalFunction.cpp:31:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Rcout [valueFlowBailoutIncompleteVar] Rcpp/inst/tinytest/cpp/InternalFunctionCPP11.cpp:33:70: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _1 [valueFlowBailoutIncompleteVar] Rcpp/inst/skeleton/rcpp_module.cpp:51:26: performance: Function parameter 'msg' should be passed by const reference. However it seems that 'set' is a callback function. [passedByValueCallback] Rcpp/inst/skeleton/rcpp_module.cpp:81:28: note: Function pointer used here. Rcpp/inst/skeleton/rcpp_module.cpp:51:26: note: Function parameter 'msg' should be passed by const reference. However it seems that 'set' is a callback function. Rcpp/inst/tinytest/cpp/InternalFunction.cpp:46:37: performance: Function parameter 'a' should be passed by const reference. However it seems that 'concatenate' is a callback function. [passedByValueCallback] Rcpp/inst/tinytest/cpp/InternalFunction.cpp:52:34: note: Function pointer used here. Rcpp/inst/tinytest/cpp/InternalFunction.cpp:46:37: note: Function parameter 'a' should be passed by const reference. However it seems that 'concatenate' is a callback function. Rcpp/inst/tinytest/cpp/InternalFunction.cpp:46:52: performance: Function parameter 'b' should be passed by const reference. However it seems that 'concatenate' is a callback function. [passedByValueCallback] Rcpp/inst/tinytest/cpp/InternalFunction.cpp:52:34: note: Function pointer used here. Rcpp/inst/tinytest/cpp/InternalFunction.cpp:46:52: note: Function parameter 'b' should be passed by const reference. However it seems that 'concatenate' is a callback function. Rcpp/inst/tinytest/cpp/InternalFunctionCPP11.cpp:40:77: performance: Function parameter 'a' should be passed by const reference. [passedByValue] Rcpp/inst/tinytest/cpp/InternalFunctionCPP11.cpp:40:92: performance: Function parameter 'b' should be passed by const reference. [passedByValue] Rcpp/inst/tinytest/cpp/Module.cpp:118:5: style: Class 'ModuleTest' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] Rcpp/inst/tinytest/cpp/DataFrame.cpp:32:46: performance: Function parameter 's' should be passed by const reference. [passedByValue] Rcpp/inst/tinytest/cpp/String.cpp:128:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CE_UTF8 [valueFlowBailoutIncompleteVar] Rcpp/inst/tinytest/cpp/String.cpp:135:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CE_UTF8 [valueFlowBailoutIncompleteVar] Rcpp/inst/tinytest/cpp/String.cpp:143:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CE_UTF8 [valueFlowBailoutIncompleteVar] Rcpp/inst/tinytest/cpp/Module.cpp:57:42: performance: Function parameter 'ref' should be passed by const reference. However it seems that 'test_const' is a callback function. [passedByValueCallback] Rcpp/inst/tinytest/cpp/Module.cpp:149:28: note: Function pointer used here. Rcpp/inst/tinytest/cpp/Module.cpp:57:42: note: Function parameter 'ref' should be passed by const reference. However it seems that 'test_const' is a callback function. Rcpp/inst/tinytest/cpp/Module.cpp:64:26: performance: Function parameter 'msg_' should be passed by const reference. However it seems that 'set' is a callback function. [passedByValueCallback] Rcpp/inst/tinytest/cpp/Module.cpp:158:38: note: Function pointer used here. Rcpp/inst/tinytest/cpp/Module.cpp:64:26: note: Function parameter 'msg_' should be passed by const reference. However it seems that 'set' is a callback function. Rcpp/inst/tinytest/cpp/Module.cpp:51:41: style: Parameter 'ref' can be declared as reference to const. However it seems that 'test_reference' is a callback function, if 'ref' is declared with const you might also need to cast function pointer(s). [constParameterCallback] Rcpp/inst/tinytest/cpp/Module.cpp:147:32: note: You might need to cast the function pointer here Rcpp/inst/tinytest/cpp/Module.cpp:51:41: note: Parameter 'ref' can be declared as reference to const Rcpp/inst/tinytest/cpp/Module.cpp:65:31: style: Parameter 'msg_' can be declared as reference to const. However it seems that 'set_ref' is a callback function, if 'msg_' is declared with const you might also need to cast function pointer(s). [constParameterCallback] Rcpp/inst/tinytest/cpp/Module.cpp:159:42: note: You might need to cast the function pointer here Rcpp/inst/tinytest/cpp/Module.cpp:65:31: note: Parameter 'msg_' can be declared as reference to const Rcpp/inst/tinytest/cpp/Module.cpp:129:35: style: Parameter 'x' can be declared as reference to const. However it seems that 'Test_get_x_ref' is a callback function, if 'x' is declared with const you might also need to cast function pointer(s). [constParameterCallback] Rcpp/inst/tinytest/cpp/Module.cpp:186:32: note: You might need to cast the function pointer here Rcpp/inst/tinytest/cpp/Module.cpp:129:35: note: Parameter 'x' can be declared as reference to const Rcpp/inst/tinytest/cpp/Module.cpp:205:40: style: Parameter 'x' can be declared as reference to const [constParameterReference] Rcpp/inst/tinytest/cpp/Module.cpp:135:39: style: Parameter 'x' can be declared as pointer to const. However it seems that 'Test_get_x_pointer' is a callback function, if 'x' is declared with const you might also need to cast function pointer(s). [constParameterCallback] Rcpp/inst/tinytest/cpp/Module.cpp:188:36: note: You might need to cast the function pointer here Rcpp/inst/tinytest/cpp/Module.cpp:135:39: note: Parameter 'x' can be declared as pointer to const Rcpp/inst/tinytest/cpp/Module.cpp:215:44: style: Parameter 'x' can be declared as pointer to const [constParameterPointer] Rcpp/inst/tinytest/cpp/XPtr.cpp:51:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable R_NilValue [valueFlowBailoutIncompleteVar] Rcpp/inst/tinytest/cpp/RObject.cpp:36:37: performance: Function parameter 's' should be passed by const reference. [passedByValue] Rcpp/inst/tinytest/cpp/VectorOld.cpp:29:16: warning: Found suspicious operator ',', result is not used. [constStatement] Rcpp/inst/tinytest/cpp/VectorOld.cpp:36:21: warning: Found suspicious operator ',', result is not used. [constStatement] Rcpp/inst/tinytest/cpp/attributes.cpp:12:17: performance: Function parameter 'msg' should be passed by const reference. [passedByValue] Rcpp/inst/tinytest/cpp/attributes.cpp:17:48: performance: Function parameter 'msg' should be passed by const reference. [passedByValue] Rcpp/inst/tinytest/cpp/attributes.cpp:25:108: performance: Function parameter 'msg' should be passed by const reference. [passedByValue] Rcpp/inst/tinytest/cpp/attributes.cpp:30:94: performance: Function parameter 'msg' should be passed by const reference. [passedByValue] Rcpp/inst/tinytest/cpp/attributes.cpp:35:80: performance: Function parameter 'msg' should be passed by const reference. [passedByValue] Rcpp/inst/tinytest/cpp/Vector.cpp:49:69: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable R_NilValue [valueFlowBailoutIncompleteVar] Rcpp/inst/tinytest/cpp/Vector.cpp:100:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable r [valueFlowBailoutIncompleteVar] Rcpp/inst/tinytest/cpp/misc.cpp:63:78: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable R_GlobalEnv [valueFlowBailoutIncompleteVar] Rcpp/inst/tinytest/cpp/misc.cpp:68:62: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable R_GlobalEnv [valueFlowBailoutIncompleteVar] Rcpp/inst/tinytest/cpp/misc.cpp:79:63: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value [valueFlowBailoutIncompleteVar] Rcpp/inst/tinytest/cpp/misc.cpp:101:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Rcout [valueFlowBailoutIncompleteVar] Rcpp/inst/tinytest/cpp/misc.cpp:123:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Rcout [valueFlowBailoutIncompleteVar] Rcpp/inst/tinytest/cpp/misc.cpp:136:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NA_REAL [valueFlowBailoutIncompleteVar] Rcpp/inst/tinytest/cpp/misc.cpp:216:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable R_NilValue [valueFlowBailoutIncompleteVar] Rcpp/inst/tinytest/cpp/modref.cpp:27:5: warning: Member variable 'ModRefWorld::bar' is not initialized in the constructor. [uninitMemberVar] Rcpp/inst/tinytest/cpp/dates.cpp:59:46: style: Condition 'd2>d1' is always true [knownConditionTrueFalse] Rcpp/inst/tinytest/cpp/dates.cpp:57:13: note: d2 is assigned 'd1+1' here. Rcpp/inst/tinytest/cpp/dates.cpp:59:46: note: Condition 'd2>d1' is always true Rcpp/inst/tinytest/cpp/dates.cpp:60:47: style: Condition 'd2=d1' is always true [knownConditionTrueFalse] Rcpp/inst/tinytest/cpp/dates.cpp:57:13: note: d2 is assigned 'd1+1' here. Rcpp/inst/tinytest/cpp/dates.cpp:62:42: note: Condition 'd2>=d1' is always true Rcpp/inst/tinytest/cpp/dates.cpp:63:42: style: Condition 'd2<=d1' is always false [knownConditionTrueFalse] Rcpp/inst/tinytest/cpp/dates.cpp:57:13: note: d2 is assigned 'd1+1' here. Rcpp/inst/tinytest/cpp/dates.cpp:63:42: note: Condition 'd2<=d1' is always false Rcpp/inst/tinytest/cpp/dates.cpp:64:42: style: Condition 'd2!=d1' is always true [knownConditionTrueFalse] Rcpp/inst/tinytest/cpp/dates.cpp:57:13: note: d2 is assigned 'd1+1' here. Rcpp/inst/tinytest/cpp/dates.cpp:64:42: note: Condition 'd2!=d1' is always true Rcpp/inst/tinytest/cpp/dates.cpp:129:46: style: Condition 'd2>d1' is always true [knownConditionTrueFalse] Rcpp/inst/tinytest/cpp/dates.cpp:127:17: note: d2 is assigned 'd1+60*60' here. Rcpp/inst/tinytest/cpp/dates.cpp:129:46: note: Condition 'd2>d1' is always true Rcpp/inst/tinytest/cpp/dates.cpp:130:47: style: Condition 'd2=d1' is always true [knownConditionTrueFalse] Rcpp/inst/tinytest/cpp/dates.cpp:127:17: note: d2 is assigned 'd1+60*60' here. Rcpp/inst/tinytest/cpp/dates.cpp:132:42: note: Condition 'd2>=d1' is always true Rcpp/inst/tinytest/cpp/dates.cpp:133:42: style: Condition 'd2<=d1' is always false [knownConditionTrueFalse] Rcpp/inst/tinytest/cpp/dates.cpp:127:17: note: d2 is assigned 'd1+60*60' here. Rcpp/inst/tinytest/cpp/dates.cpp:133:42: note: Condition 'd2<=d1' is always false Rcpp/inst/tinytest/cpp/dates.cpp:134:42: style: Condition 'd2!=d1' is always true [knownConditionTrueFalse] Rcpp/inst/tinytest/cpp/dates.cpp:127:17: note: d2 is assigned 'd1+60*60' here. Rcpp/inst/tinytest/cpp/dates.cpp:134:42: note: Condition 'd2!=d1' is always true Rcpp/inst/tinytest/cpp/language.cpp:71:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable R_GlobalEnv [valueFlowBailoutIncompleteVar] Rcpp/inst/tinytest/cpp/misc.cpp:31:5: style: Class 'simple' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] Rcpp/inst/tinytest/cpp/modref.cpp:28:26: performance: Function parameter 'msg_' should be passed by const reference. However it seems that 'set' is a callback function. [passedByValueCallback] Rcpp/inst/tinytest/cpp/modref.cpp:47:39: note: Function pointer used here. Rcpp/inst/tinytest/cpp/modref.cpp:28:26: note: Function parameter 'msg_' should be passed by const reference. However it seems that 'set' is a callback function. Rcpp/inst/tinytest/cpp/dates.cpp:176:45: performance: Function parameter 'fmt' should be passed by const reference. [passedByValue] Rcpp/inst/tinytest/cpp/dates.cpp:181:53: performance: Function parameter 'fmt' should be passed by const reference. [passedByValue] Rcpp/inst/tinytest/cpp/stack.cpp:32:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable R_NilValue [valueFlowBailoutIncompleteVar] Rcpp/inst/tinytest/cpp/stack.cpp:52:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable R_NilValue [valueFlowBailoutIncompleteVar] Rcpp/inst/tinytest/cpp/stack.cpp:66:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable R_NilValue [valueFlowBailoutIncompleteVar] Rcpp/inst/tinytest/cpp/stack.cpp:78:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable R_NilValue [valueFlowBailoutIncompleteVar] Rcpp/inst/tinytest/cpp/stack.cpp:101:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable R_NilValue [valueFlowBailoutIncompleteVar] Rcpp/inst/tinytest/cpp/misc.cpp:90:29: performance: Function parameter 'tfile' should be passed by const reference. [passedByValue] Rcpp/inst/tinytest/cpp/misc.cpp:90:48: performance: Function parameter 'teststring' should be passed by const reference. [passedByValue] Rcpp/inst/tinytest/cpp/misc.cpp:111:38: performance: Function parameter 'tfile' should be passed by const reference. [passedByValue] Rcpp/inst/tinytest/cpp/dates.cpp:232:15: style: Variable 'tm.tm_sec' is assigned a value that is never used. [unreadVariable] Rcpp/inst/tinytest/cpp/dates.cpp:232:27: style: Variable 'tm.tm_min' is assigned a value that is never used. [unreadVariable] Rcpp/inst/tinytest/cpp/dates.cpp:232:40: style: Variable 'tm.tm_hour' is assigned a value that is never used. [unreadVariable] Rcpp/inst/tinytest/cpp/dates.cpp:232:54: style: Variable 'tm.tm_isdst' is assigned a value that is never used. [unreadVariable] Rcpp/inst/tinytest/cpp/stack.cpp:31:9: performance: Variable 'indicator' is assigned in constructor body. Consider performing initialization in initialization list. [useInitializationList] Rcpp/inst/tinytest/cpp/stack.cpp:29:5: style: Struct 'unwindIndicator' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] Rcpp/inst/tinytest/cpp/stack.cpp:56:18: style: C-style pointer casting [cstyleCast] Rcpp/inst/tinytest/cpp/stack.cpp:56:11: style: Variable 'fail' can be declared as pointer to const [constVariablePointer] Rcpp/inst/tinytest/cpp/Vector.cpp:733:18: style: C-style pointer casting [cstyleCast] Rcpp/inst/tinytest/cpp/Vector.cpp:692:41: performance: Function parameter 'x' should be passed by const reference. [passedByValue] Rcpp/inst/tinytest/cpp/Vector.cpp:697:52: performance: Function parameter 'x' should be passed by const reference. [passedByValue] Rcpp/inst/tinytest/cpp/Vector.cpp:712:35: performance: Function parameter 'x' should be passed by const reference. [passedByValue] Rcpp/inst/tinytest/cpp/Vector.cpp:717:46: performance: Function parameter 'x' should be passed by const reference. [passedByValue] Rcpp/inst/tinytest/cpp/Vector.cpp:702:46: style: Parameter 'x' can be declared as reference to const [constParameterReference] Rcpp/inst/tinytest/cpp/Vector.cpp:722:40: style: Parameter 'x' can be declared as reference to const [constParameterReference] Rcpp/inst/tinytest/cpp/Vector.cpp:735:9: style: Variable 'res' is assigned a value that is never used. [unreadVariable] Rcpp/inst/tinytest/cpp/Vector.cpp:504:5: performance: Prefer prefix ++/-- operators for non-primitive types. [postfixOperator] Rcpp/inst/tinytest/cpp/support.cpp:28:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NA_REAL [valueFlowBailoutIncompleteVar] Rcpp/inst/tinytest/cpp/support.cpp:37:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NA_REAL [valueFlowBailoutIncompleteVar] Rcpp/inst/tinytest/cpp/support.cpp:46:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NA_REAL [valueFlowBailoutIncompleteVar] Rcpp/inst/tinytest/cpp/support.cpp:55:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NA_REAL [valueFlowBailoutIncompleteVar] Rcpp/inst/tinytest/cpp/support.cpp:65:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NA_REAL [valueFlowBailoutIncompleteVar] Rcpp/inst/tinytest/cpp/table.cpp:34:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable R_NilValue [valueFlowBailoutIncompleteVar] Rcpp/inst/tinytest/cpp/support.cpp:46:16: style: Same expression on both sides of '/'. [duplicateExpression] Rcpp/inst/tinytest/cpp/wstring.cpp:22:35: performance: Function parameter 's1' should be passed by const reference. [passedByValue] Rcpp/inst/tinytest/cpp/wstring.cpp:22:52: performance: Function parameter 's2' should be passed by const reference. [passedByValue] Rcpp/inst/tinytest/cpp/sugar.cpp:244:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable seq_len [valueFlowBailoutIncompleteVar] Rcpp/inst/tinytest/cpp/sugar.cpp:273:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable seq [valueFlowBailoutIncompleteVar] Rcpp/inst/tinytest/cpp/sugar.cpp:390:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable seq_len [valueFlowBailoutIncompleteVar] Rcpp/inst/tinytest/cpp/sugar.cpp:417:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NA_INTEGER [valueFlowBailoutIncompleteVar] Rcpp/inst/tinytest/cpp/wrap.cpp:195:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable second [valueFlowBailoutIncompleteVar] Rcpp/inst/tinytest/cpp/wrap.cpp:277:9: style: Class 'Foo' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] Rcpp/inst/tinytest/cpp/wrap.cpp:28:9: style: Class 'Bar < int >' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] Rcpp/inst/tinytest/testRcppClass/src/init.c:26:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] Rcpp/inst/tinytest/testRcppClass/src/stdVector.cpp:45:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable size [valueFlowBailoutIncompleteVar] Rcpp/inst/tinytest/testRcppInterfaceExporter/src/RcppExports.cpp:25:1: error: There is an unknown macro here somewhere. Configuration is required. If END_RCPP_RETURN_ERROR is a macro then please configure it. [unknownMacro] Rcpp/inst/tinytest/testRcppInterfaceExporter/src/unwound.h:12:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Rcout [valueFlowBailoutIncompleteVar] Rcpp/inst/tinytest/testRcppInterfaceExporter/src/unwound.h:18:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Rcout [valueFlowBailoutIncompleteVar] Rcpp/inst/tinytest/testRcppInterfaceExporter/src/exporter.cpp:13:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable R_GlobalEnv [valueFlowBailoutIncompleteVar] Rcpp/inst/tinytest/testRcppClass/src/rcpp_module.cpp:28:26: performance: Function parameter 'msg' should be passed by const reference. However it seems that 'set' is a callback function. [passedByValueCallback] Rcpp/inst/tinytest/testRcppClass/src/rcpp_module.cpp:51:41: note: Function pointer used here. Rcpp/inst/tinytest/testRcppClass/src/rcpp_module.cpp:28:26: note: Function parameter 'msg' should be passed by const reference. However it seems that 'set' is a callback function. Rcpp/inst/tinytest/testRcppInterfaceUser/src/unwound.h:12:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Rcout [valueFlowBailoutIncompleteVar] Rcpp/inst/tinytest/testRcppInterfaceUser/src/unwound.h:18:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Rcout [valueFlowBailoutIncompleteVar] Rcpp/inst/tinytest/testRcppInterfaceExporter/src/unwound.h:11:5: performance: Variable 'flag' is assigned in constructor body. Consider performing initialization in initialization list. [useInitializationList] Rcpp/inst/tinytest/testRcppInterfaceUser/src/user.cpp:14:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Rcout [valueFlowBailoutIncompleteVar] Rcpp/inst/tinytest/testRcppModule/src/init.c:26:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] Rcpp/inst/tinytest/testRcppInterfaceExporter/src/unwound.h:10:3: style: Struct 'unwound_t' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] Rcpp/inst/tinytest/testRcppInterfaceUser/src/unwound.h:11:5: performance: Variable 'flag' is assigned in constructor body. Consider performing initialization in initialization list. [useInitializationList] Rcpp/inst/tinytest/testRcppPackage/src/rcpp_hello_world.cpp:17:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable R_NilValue [valueFlowBailoutIncompleteVar] Rcpp/inst/tinytest/testRcppInterfaceUser/src/unwound.h:10:3: style: Struct 'unwound_t' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] Rcpp/inst/tinytest/testRcppModule/src/stdVector.cpp:64:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable size [valueFlowBailoutIncompleteVar] Rcpp/src/api.cpp:115:0: error: failed to evaluate #if condition, undefined function-like macro invocation: R_Version( ... ) [preprocessorErrorDirective] Rcpp/src/api.cpp:115:2: error: failed to evaluate #if condition, undefined function-like macro invocation: R_Version( ... ) [preprocessorErrorDirective] Rcpp/inst/tinytest/testRcppInterfaceExporter/src/unwound.h:10:25: performance: Function parameter 'flag_' should be passed by const reference. [passedByValue] Rcpp/src/barrier.cpp:79:0: error: failed to evaluate #if condition, undefined function-like macro invocation: R_Version( ... ) [preprocessorErrorDirective] Rcpp/src/barrier.cpp:79:2: error: failed to evaluate #if condition, undefined function-like macro invocation: R_Version( ... ) [preprocessorErrorDirective] Rcpp/inst/tinytest/testRcppInterfaceUser/src/unwound.h:10:25: performance: Function parameter 'flag_' should be passed by const reference. [passedByValue] Rcpp/inst/tinytest/testRcppModule/src/rcpp_module.cpp:49:26: performance: Function parameter 'msg' should be passed by const reference. However it seems that 'set' is a callback function. [passedByValueCallback] Rcpp/inst/tinytest/testRcppModule/src/rcpp_module.cpp:70:42: note: Function pointer used here. Rcpp/inst/tinytest/testRcppModule/src/rcpp_module.cpp:49:26: note: Function parameter 'msg' should be passed by const reference. However it seems that 'set' is a callback function. Rcpp/src/rcpp_init.cpp:93:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rcpp_get_stack_trace [valueFlowBailoutIncompleteVar] Rcpp/src/rcpp_init.cpp:142:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] Rcpp/src/module.cpp:31:1: error: There is an unknown macro here somewhere. Configuration is required. If END_RCPP is a macro then please configure it. [unknownMacro] Rcpp/src/attributes.cpp:3612:1: error: There is an unknown macro here somewhere. Configuration is required. If END_RCPP is a macro then please configure it. [unknownMacro] Rcpp/src/date.cpp:462:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRUE [valueFlowBailoutIncompleteVar] Rcpp/src/date.cpp:476:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRUE [valueFlowBailoutIncompleteVar] Rcpp/src/date.cpp:643:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] Rcpp/src/date.cpp:1003:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] Rcpp/src/date.cpp:1207:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] Rcpp/src/date.cpp:1356:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRUE [valueFlowBailoutIncompleteVar] Rcpp/src/date.cpp:1368:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRUE [valueFlowBailoutIncompleteVar] Rcpp/src/date.cpp:752:25: style: Condition 'ttisp->tt_abbrind<0' is always false [knownConditionTrueFalse] Rcpp/src/date.cpp:751:23: note: Assignment 'ttisp->tt_abbrind=(unsigned char)*p++', assigned value is greater than -1 Rcpp/src/date.cpp:752:25: note: Condition 'ttisp->tt_abbrind<0' is always false Rcpp/src/date.cpp:484:30: portability: Shifting a negative value is technically undefined behaviour [shiftNegativeLHS] Rcpp/src/date.cpp:491:30: portability: Shifting a negative value is technically undefined behaviour [shiftNegativeLHS] Rcpp/src/date.cpp:1365:19: warning:inconclusive: Found suspicious operator '*', result is not used. [constStatement] Rcpp/src/date.cpp:685:43: style: Variable 'doaccess' is assigned a value that is never used. [unreadVariable] Rcpp/src/date.cpp:1126:29: style: Variable 'theiroffset' is assigned a value that is never used. [unreadVariable] Rcpp/src/date.cpp:974:31: style: Variable 'zttinfo' is not assigned a value. [unassignedVariable] diff: head Rcpp/src/api.cpp:115:0: error: failed to evaluate #if condition, undefined function-like macro invocation: R_Version( ... ) [preprocessorErrorDirective] head Rcpp/src/api.cpp:115:2: error: failed to evaluate #if condition, undefined function-like macro invocation: R_Version( ... ) [preprocessorErrorDirective] 2.18.0 Rcpp/src/api.cpp:157:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable npos [valueFlowBailoutIncompleteVar] 2.18.0 Rcpp/src/api.cpp:166:32: style: C-style pointer casting [cstyleCast] 2.18.0 Rcpp/src/api.cpp:167:23: style: C-style pointer casting [cstyleCast] 2.18.0 Rcpp/src/api.cpp:172:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LGLSXP [valueFlowBailoutIncompleteVar] 2.18.0 Rcpp/src/api.cpp:220:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRUE [valueFlowBailoutIncompleteVar] 2.18.0 Rcpp/src/api.cpp:226:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRUE [valueFlowBailoutIncompleteVar] 2.18.0 Rcpp/src/api.cpp:231:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable R_NilValue [valueFlowBailoutIncompleteVar] 2.18.0 Rcpp/src/api.cpp:245:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STRSXP [valueFlowBailoutIncompleteVar] 2.18.0 Rcpp/src/api.cpp:83:25: style: Variable 'buffer' is not assigned a value. [unassignedVariable] 2.18.0 Rcpp/src/api.cpp:83:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAXELTSIZE [valueFlowBailoutIncompleteVar] 2.18.0 Rcpp/src/barrier.cpp:116:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable R_NilValue [valueFlowBailoutIncompleteVar] 2.18.0 Rcpp/src/barrier.cpp:131:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable R_NilValue [valueFlowBailoutIncompleteVar] 2.18.0 Rcpp/src/barrier.cpp:151:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable R_GlobalEnv [valueFlowBailoutIncompleteVar] 2.18.0 Rcpp/src/barrier.cpp:176:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable R_NilValue [valueFlowBailoutIncompleteVar] 2.18.0 Rcpp/src/barrier.cpp:181:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable R_NilValue [valueFlowBailoutIncompleteVar] 2.18.0 Rcpp/src/barrier.cpp:186:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable R_NilValue [valueFlowBailoutIncompleteVar] 2.18.0 Rcpp/src/barrier.cpp:193:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable R_GlobalEnv [valueFlowBailoutIncompleteVar] 2.18.0 Rcpp/src/barrier.cpp:213:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] 2.18.0 Rcpp/src/barrier.cpp:235:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRUE [valueFlowBailoutIncompleteVar] 2.18.0 Rcpp/src/barrier.cpp:254:58: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INTSXP [valueFlowBailoutIncompleteVar] head Rcpp/src/barrier.cpp:79:0: error: failed to evaluate #if condition, undefined function-like macro invocation: R_Version( ... ) [preprocessorErrorDirective] head Rcpp/src/barrier.cpp:79:2: error: failed to evaluate #if condition, undefined function-like macro invocation: R_Version( ... ) [preprocessorErrorDirective] DONE