2026-05-29 12:04 ftp://ftp.de.debian.org/debian/pool/main/r/r-cran-nanotime/r-cran-nanotime_0.3.15.orig.tar.gz 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 -j1 platform: Linux-6.8.0-124-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.70 compiler: g++ (Ubuntu 14.2.0-4ubuntu2~24.04.1) 14.2.0 cppcheck: head 2.20.0 head-info: f034ad3 (2026-05-29 12:40:10 +0200) count: 54 54 elapsed-time: 0.7 0.7 head-timing-info: old-timing-info: head results: nanotime/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] nanotime/src/duration.cpp:141:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NA_STRING [valueFlowBailoutIncompleteVar] nanotime/src/duration.cpp:186:19: portability: Casting between signed long * and double * which have an incompatible binary data representation. [invalidPointerCast] nanotime/src/duration.cpp:124:13: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] nanotime/src/duration.cpp:186:13: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] nanotime/src/interval.cpp:98:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] nanotime/src/interval.cpp:283:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Rcomplex [valueFlowBailoutIncompleteVar] nanotime/src/interval.cpp:320:60: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Rcomplex [valueFlowBailoutIncompleteVar] nanotime/src/interval.cpp:391:60: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Rcomplex [valueFlowBailoutIncompleteVar] nanotime/src/interval.cpp:626:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NA_INTEGER64 [valueFlowBailoutIncompleteVar] nanotime/src/interval.cpp:651:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NA_INTEGER64 [valueFlowBailoutIncompleteVar] nanotime/src/interval.cpp:675:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NA_LOGICAL [valueFlowBailoutIncompleteVar] nanotime/src/interval.cpp:694:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NA_LOGICAL [valueFlowBailoutIncompleteVar] nanotime/src/interval.cpp:726:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_TZ_STR_LENGTH [valueFlowBailoutIncompleteVar] nanotime/src/interval.cpp:607:17: portability:inconclusive: Casting from const double * to const char * is not portable due to different binary data representations on different platforms. [invalidPointerCast] nanotime/src/interval.cpp:608:17: portability:inconclusive: Casting from const double * to const char * is not portable due to different binary data representations on different platforms. [invalidPointerCast] nanotime/src/interval.cpp:264:16: style: Local variable 'v1_lt_v2' shadows outer variable [shadowVariable] nanotime/src/interval.cpp:219:10: note: Shadowed variable nanotime/src/interval.cpp:264:16: note: Shadow local variable nanotime/src/interval.cpp:16:10: style: struct member 'double2::d1' is never used. [unusedStructMember] nanotime/src/interval.cpp:17:10: style: struct member 'double2::d2' is never used. [unusedStructMember] nanotime/src/interval.cpp:27:5: style: union member 'ival_union::ival' is never used. [unusedStructMember] nanotime/src/interval.cpp:28:11: style: union member 'ival_union::dbl2' is never used. [unusedStructMember] nanotime/src/nanotime.cpp:121:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_TZ_STR_LENGTH [valueFlowBailoutIncompleteVar] nanotime/src/nanotime.cpp:149:18: style: C-style pointer casting [cstyleCast] nanotime/src/nanotime.cpp:151:27: portability: Casting between const signed long * and const double * which have an incompatible binary data representation. [invalidPointerCast] nanotime/src/period.cpp:40:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable months [valueFlowBailoutIncompleteVar] nanotime/src/period.cpp:232:64: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable period [valueFlowBailoutIncompleteVar] nanotime/src/period.cpp:261:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NA_INTEGER64 [valueFlowBailoutIncompleteVar] nanotime/src/period.cpp:281:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NA_INTEGER [valueFlowBailoutIncompleteVar] nanotime/src/period.cpp:326:80: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable period [valueFlowBailoutIncompleteVar] nanotime/src/period.cpp:343:78: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable period [valueFlowBailoutIncompleteVar] nanotime/src/period.cpp:362:80: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable period [valueFlowBailoutIncompleteVar] nanotime/src/period.cpp:383:80: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable period [valueFlowBailoutIncompleteVar] nanotime/src/period.cpp:413:80: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable period [valueFlowBailoutIncompleteVar] nanotime/src/period.cpp:433:80: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable period [valueFlowBailoutIncompleteVar] nanotime/src/period.cpp:451:78: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable period [valueFlowBailoutIncompleteVar] nanotime/src/period.cpp:469:80: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable period [valueFlowBailoutIncompleteVar] nanotime/src/period.cpp:488:80: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable period [valueFlowBailoutIncompleteVar] nanotime/src/period.cpp:507:80: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable period [valueFlowBailoutIncompleteVar] nanotime/src/period.cpp:629:77: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable period [valueFlowBailoutIncompleteVar] nanotime/src/period.cpp:648:77: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable period [valueFlowBailoutIncompleteVar] nanotime/src/period.cpp:667:77: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable period [valueFlowBailoutIncompleteVar] nanotime/src/period.cpp:733:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable dtime [valueFlowBailoutIncompleteVar] nanotime/src/period.cpp:758:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable dtime [valueFlowBailoutIncompleteVar] nanotime/src/period.cpp:249:17: style: Variable 'res.names()' is reassigned a value before the old one has been used. [redundantAssignment] nanotime/src/period.cpp:247:19: note: res.names() is assigned nanotime/src/period.cpp:249:17: note: res.names() is overwritten nanotime/src/period.cpp:707:63: performance: Function parameter 'tz' should be passed by const reference. [passedByValue] nanotime/src/period.cpp:742:67: performance: Function parameter 'tz' should be passed by const reference. [passedByValue] nanotime/src/period.cpp:169:5: style: union member 'period_union::prd' is never used. [unusedStructMember] nanotime/src/period.cpp:166:13: style: struct member 'period_alias::i1' is never used. [unusedStructMember] nanotime/src/period.cpp:167:13: style: struct member 'period_alias::i2' is never used. [unusedStructMember] nanotime/src/period.cpp:168:13: style: struct member 'period_alias::i3' is never used. [unusedStructMember] nanotime/src/period.cpp:720:16: style: Variable 'olddist' is assigned a value that is never used. [unreadVariable] nanotime/src/rounding.cpp:211:77: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable period [valueFlowBailoutIncompleteVar] nanotime/src/rounding.cpp:291:77: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable period [valueFlowBailoutIncompleteVar] nanotime/src/rounding.cpp:273:3: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] diff: 2.20.0 nanotime/src/interval.cpp:264:16: style: Local variable 'v1_lt_v2' shadows outer variable [shadowVariable] nanotime/src/interval.cpp:219:10: note: Shadowed declaration nanotime/src/interval.cpp:264:16: note: Shadow variable head nanotime/src/interval.cpp:264:16: style: Local variable 'v1_lt_v2' shadows outer variable [shadowVariable] nanotime/src/interval.cpp:219:10: note: Shadowed variable nanotime/src/interval.cpp:264:16: note: Shadow local variable DONE