2025-09-03 04:46 ftp://ftp.de.debian.org/debian/pool/main/r/r-cran-hdf5/r-cran-hdf5_1.6.10.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-79-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.67 compiler: g++ (Ubuntu 14.2.0-4ubuntu2~24.04) 14.2.0 cppcheck: head 2.18.0 head-info: e6e045f (2025-09-02 21:05:14 +0200) count: 2 25 elapsed-time: 0.1 0.5 head-timing-info: old-timing-info: head results: hdf5/src/hdf5.c:38:0: error: failed to evaluate #if condition, undefined function-like macro invocation: R_Version( ... ) [preprocessorErrorDirective] hdf5/src/hdf5.c:38:2: error: failed to evaluate #if condition, undefined function-like macro invocation: R_Version( ... ) [preprocessorErrorDirective] diff: 2.18.0 hdf5/src/hdf5.c:1056:26: style: Variable 'env' is assigned a value that is never used. [unreadVariable] 2.18.0 hdf5/src/hdf5.c:1059:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INTSXP [valueFlowBailoutIncompleteVar] 2.18.0 hdf5/src/hdf5.c:1084:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STRSXP [valueFlowBailoutIncompleteVar] 2.18.0 hdf5/src/hdf5.c:109:48: style: Parameter 'cdata' can be declared as pointer to const. However it seems that 'string_ref' is a callback function, if 'cdata' is declared with const you might also need to cast function pointer(s). [constParameterCallback] hdf5/src/hdf5.c:1890:23: note: You might need to cast the function pointer here hdf5/src/hdf5.c:109:48: note: Parameter 'cdata' can be declared as pointer to const 2.18.0 hdf5/src/hdf5.c:114:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable H5T_CONV_CONV [valueFlowBailoutIncompleteVar] 2.18.0 hdf5/src/hdf5.c:1199:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRUE [valueFlowBailoutIncompleteVar] 2.18.0 hdf5/src/hdf5.c:1202:55: style: Checking if unsigned expression 'rank=H5Sget_simple_extent_ndims(space)' is less than zero. [unsignedLessThanZero] 2.18.0 hdf5/src/hdf5.c:1219:14: style: Local variable 'rownames' shadows outer variable [shadowVariable] hdf5/src/hdf5.c:1182:8: note: Shadowed declaration hdf5/src/hdf5.c:1219:14: note: Shadow variable 2.18.0 hdf5/src/hdf5.c:1324:38: style: Checking if unsigned expression 'tid_size=H5Tget_size(tid)' is less than zero. [unsignedLessThanZero] 2.18.0 hdf5/src/hdf5.c:1379:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LGLSXP [valueFlowBailoutIncompleteVar] 2.18.0 hdf5/src/hdf5.c:1518:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable H5G_GROUP [valueFlowBailoutIncompleteVar] 2.18.0 hdf5/src/hdf5.c:1860:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LGLSXP [valueFlowBailoutIncompleteVar] 2.18.0 hdf5/src/hdf5.c:277:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable H5T_STD_REF_OBJ [valueFlowBailoutIncompleteVar] 2.18.0 hdf5/src/hdf5.c:303:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable H5T_C_S1 [valueFlowBailoutIncompleteVar] 2.18.0 hdf5/src/hdf5.c:317:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable H5T_NATIVE_UINT [valueFlowBailoutIncompleteVar] 2.18.0 hdf5/src/hdf5.c:336:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable H5T_COMPOUND [valueFlowBailoutIncompleteVar] head hdf5/src/hdf5.c:38:0: error: failed to evaluate #if condition, undefined function-like macro invocation: R_Version( ... ) [preprocessorErrorDirective] head hdf5/src/hdf5.c:38:2: error: failed to evaluate #if condition, undefined function-like macro invocation: R_Version( ... ) [preprocessorErrorDirective] 2.18.0 hdf5/src/hdf5.c:460:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable H5T_NATIVE_DOUBLE [valueFlowBailoutIncompleteVar] 2.18.0 hdf5/src/hdf5.c:582:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable R_NilValue [valueFlowBailoutIncompleteVar] 2.18.0 hdf5/src/hdf5.c:672:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable R_DimSymbol [valueFlowBailoutIncompleteVar] 2.18.0 hdf5/src/hdf5.c:729:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable H5S_SCALAR [valueFlowBailoutIncompleteVar] 2.18.0 hdf5/src/hdf5.c:77:28: error: Undefined behavior: Variable 'name' is used as parameter and destination in sprintf(). [sprintfOverlappingData] 2.18.0 hdf5/src/hdf5.c:789:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable H5P_DEFAULT [valueFlowBailoutIncompleteVar] 2.18.0 hdf5/src/hdf5.c:830:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable H5T_NATIVE_DOUBLE [valueFlowBailoutIncompleteVar] 2.18.0 hdf5/src/hdf5.c:83:48: style: Parameter 'cdata' can be declared as pointer to const. However it seems that 'ref_string' is a callback function, if 'cdata' is declared with const you might also need to cast function pointer(s). [constParameterCallback] hdf5/src/hdf5.c:1094:16: note: You might need to cast the function pointer here hdf5/src/hdf5.c:83:48: note: Parameter 'cdata' can be declared as pointer to const 2.18.0 hdf5/src/hdf5.c:88:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable H5T_CONV_CONV [valueFlowBailoutIncompleteVar] DONE