2026-05-01 09:48 ftp://ftp.de.debian.org/debian/pool/main/c/ciftilib/ciftilib_1.6.0.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --library=qt --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 -j6 platform: Linux-7.0.3+deb14-amd64-x86_64-with-glibc2.42 python: 3.13.12 client-version: 1.4.0 compiler: g++ (Debian 15.2.0-17) 15.2.0 cppcheck: head 2.20.0 head-info: e5c4a734 (2026-05-01 11:10:43 +0200) count: 49 48 elapsed-time: 0.3 0.2 head-timing-info: old-timing-info: head results: CiftiLib-1.6.0/example/datatype.cxx:21:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] CiftiLib-1.6.0/example/rewrite.cxx:21:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] CiftiLib-1.6.0/src/Cifti/CiftiLabelsMap.cxx:170:2: error: #error "not implemented" [preprocessorErrorDirective] CiftiLib-1.6.0/example/xmlinfo.cxx:19:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] CiftiLib-1.6.0/src/Cifti/CiftiBrainModelsMap.cxx:564:2: error: #error "not implemented" [preprocessorErrorDirective] CiftiLib-1.6.0/src/Cifti/CiftiVersion.cxx:80:2: error: #error "not implemented" [preprocessorErrorDirective] CiftiLib-1.6.0/src/Cifti/CiftiScalarsMap.cxx:155:2: error: #error "not implemented" [preprocessorErrorDirective] CiftiLib-1.6.0/src/Cifti/CiftiSeriesMap.cxx:146:2: error: #error "not implemented" [preprocessorErrorDirective] CiftiLib-1.6.0/src/Cifti/CiftiParcelsMap.cxx:441:2: error: #error "not implemented" [preprocessorErrorDirective] CiftiLib-1.6.0/example/xmlinfo.cxx:73:38: style: Consider using std::accumulate algorithm instead of a raw loop. [useStlAlgorithm] CiftiLib-1.6.0/src/Cifti/MetaData.cxx:383:2: error: #error "not implemented" [preprocessorErrorDirective] CiftiLib-1.6.0/src/Cifti/LabelTable.cxx:864:2: error: #error "not implemented" [preprocessorErrorDirective] CiftiLib-1.6.0/src/Cifti/VolumeSpace.cxx:40:10: error: #error "not implemented" [preprocessorErrorDirective] CiftiLib-1.6.0/src/Cifti/CiftiXML.cxx:243:2: error: #error "not implemented" [preprocessorErrorDirective] CiftiLib-1.6.0/src/Common/AString.h:134:2: error: #error "you must define either CIFTILIB_USE_QT or CIFTILIB_USE_XMLPP to select what unicode string implementation to use" [preprocessorErrorDirective] CiftiLib-1.6.0/src/Cifti/Label.cxx:261:8: style:inconclusive: Technically the member function 'cifti::Label::equals' can be const. [functionConst] CiftiLib-1.6.0/src/Cifti/Label.h:97:14: note: Technically the member function 'cifti::Label::equals' can be const. CiftiLib-1.6.0/src/Cifti/Label.cxx:261:8: note: Technically the member function 'cifti::Label::equals' can be const. CiftiLib-1.6.0/src/Cifti/Label.cxx:274:8: style:inconclusive: Technically the member function 'cifti::Label::operator<' can be const. [functionConst] CiftiLib-1.6.0/src/Cifti/Label.h:99:17: note: Technically the member function 'cifti::Label::operator<' can be const. CiftiLib-1.6.0/src/Cifti/Label.cxx:274:8: note: Technically the member function 'cifti::Label::operator<' can be const. CiftiLib-1.6.0/src/Cifti/Label.h:80:9: style: Class 'Label' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] CiftiLib-1.6.0/src/Cifti/Label.cxx:207:27: style:inconclusive: Function 'Label' argument 1 names different: declaration 'gl' definition 'o'. [funcArgNamesDifferent] CiftiLib-1.6.0/src/Cifti/Label.h:82:28: note: Function 'Label' argument 1 names different: declaration 'gl' definition 'o'. CiftiLib-1.6.0/src/Cifti/Label.cxx:207:27: note: Function 'Label' argument 1 names different: declaration 'gl' definition 'o'. CiftiLib-1.6.0/src/Cifti/Label.cxx:214:31: style:inconclusive: Function 'operator=' argument 1 names different: declaration 'gl' definition 'o'. [funcArgNamesDifferent] CiftiLib-1.6.0/src/Cifti/Label.h:85:39: note: Function 'operator=' argument 1 names different: declaration 'gl' definition 'o'. CiftiLib-1.6.0/src/Cifti/Label.cxx:214:31: note: Function 'operator=' argument 1 names different: declaration 'gl' definition 'o'. CiftiLib-1.6.0/src/Cifti/Label.cxx:226:32: style:inconclusive: Function 'copyHelper' argument 1 names different: declaration 'o' definition 'gl'. [funcArgNamesDifferent] CiftiLib-1.6.0/src/Cifti/Label.h:90:38: note: Function 'copyHelper' argument 1 names different: declaration 'o' definition 'gl'. CiftiLib-1.6.0/src/Cifti/Label.cxx:226:32: note: Function 'copyHelper' argument 1 names different: declaration 'o' definition 'gl'. CiftiLib-1.6.0/src/Cifti/Label.cxx:261:28: style:inconclusive: Function 'equals' argument 1 names different: declaration '' definition 'gl'. [funcArgNamesDifferentUnnamed] CiftiLib-1.6.0/src/Common/Vector3D.h:49:9: style: Class 'Vector3D' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] CiftiLib-1.6.0/src/Cifti/StructureEnum.cxx:270:10: performance: Prefer prefix ++/-- operators for non-primitive types. [postfixOperator] CiftiLib-1.6.0/src/Cifti/StructureEnum.cxx:321:10: performance: Prefer prefix ++/-- operators for non-primitive types. [postfixOperator] CiftiLib-1.6.0/src/Cifti/StructureEnum.cxx:374:13: performance: Prefer prefix ++/-- operators for non-primitive types. [postfixOperator] CiftiLib-1.6.0/src/Cifti/StructureEnum.cxx:409:10: performance: Prefer prefix ++/-- operators for non-primitive types. [postfixOperator] CiftiLib-1.6.0/src/Nifti/NiftiHeader.cxx:48:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable nifti_1_header [valueFlowBailoutIncompleteVar] CiftiLib-1.6.0/src/Nifti/NiftiHeader.cxx:91:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable nifti_1_header [valueFlowBailoutIncompleteVar] CiftiLib-1.6.0/src/Nifti/NiftiHeader.cxx:243:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cerr [valueFlowBailoutIncompleteVar] CiftiLib-1.6.0/src/Nifti/NiftiHeader.cxx:287:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cerr [valueFlowBailoutIncompleteVar] CiftiLib-1.6.0/src/Nifti/NiftiHeader.cxx:635:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable nifti_1_header [valueFlowBailoutIncompleteVar] CiftiLib-1.6.0/src/Nifti/NiftiHeader.cxx:715:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable nifti_1_header [valueFlowBailoutIncompleteVar] CiftiLib-1.6.0/src/Nifti/NiftiHeader.cxx:781:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable nifti_2_header [valueFlowBailoutIncompleteVar] CiftiLib-1.6.0/src/Nifti/NiftiHeader.cxx:914:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cerr [valueFlowBailoutIncompleteVar] CiftiLib-1.6.0/src/Nifti/NiftiHeader.cxx:972:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable nifti_1_header [valueFlowBailoutIncompleteVar] CiftiLib-1.6.0/src/Nifti/NiftiHeader.cxx:1025:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable nifti_2_header [valueFlowBailoutIncompleteVar] CiftiLib-1.6.0/src/Common/MathFunctions.cxx:809:12: style: The scope of the variable 'tol' can be reduced. [variableScope] CiftiLib-1.6.0/src/Common/MathFunctions.cxx:887:12: style: The scope of the variable 'D' can be reduced. [variableScope] CiftiLib-1.6.0/src/Common/MathFunctions.cxx:340:38: style:inconclusive: Function 'normalizeVector' argument 1 names different: declaration 'vectorInOut' definition 'vector'. [funcArgNamesDifferent] CiftiLib-1.6.0/src/Common/MathFunctions.h:88:40: note: Function 'normalizeVector' argument 1 names different: declaration 'vectorInOut' definition 'vector'. CiftiLib-1.6.0/src/Common/MathFunctions.cxx:340:38: note: Function 'normalizeVector' argument 1 names different: declaration 'vectorInOut' definition 'vector'. CiftiLib-1.6.0/src/Common/MathFunctions.cxx:359:39: style:inconclusive: Function 'normalizeVector' argument 1 names different: declaration 'vectorInOut' definition 'vector'. [funcArgNamesDifferent] CiftiLib-1.6.0/src/Common/MathFunctions.h:90:42: note: Function 'normalizeVector' argument 1 names different: declaration 'vectorInOut' definition 'vector'. CiftiLib-1.6.0/src/Common/MathFunctions.cxx:359:39: note: Function 'normalizeVector' argument 1 names different: declaration 'vectorInOut' definition 'vector'. CiftiLib-1.6.0/src/Common/MathFunctions.cxx:232:11: style: Variable 'a' can be declared as const array [constVariable] CiftiLib-1.6.0/src/Common/MathFunctions.cxx:237:11: style: Variable 'b' can be declared as const array [constVariable] CiftiLib-1.6.0/src/Common/MathFunctions.cxx:1399:12: style: Variable 'ijkmult' can be declared as const array [constVariable] CiftiLib-1.6.0/src/Common/MathFunctions.cxx:1423:12: style: Variable 'ijkmult' can be declared as const array [constVariable] CiftiLib-1.6.0/src/Nifti/NiftiHeader.cxx:52:5: portability: Using memset() on struct which contains a floating point number. [memsetClassFloat] CiftiLib-1.6.0/src/Nifti/NiftiHeader.cxx:644:26: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] CiftiLib-1.6.0/src/Nifti/NiftiHeader.cxx:636:9: style: Local variable 'version' shadows outer function [shadowFunction] CiftiLib-1.6.0/src/Nifti/NiftiHeader.h:57:13: note: Shadowed declaration CiftiLib-1.6.0/src/Nifti/NiftiHeader.cxx:636:9: note: Shadow variable CiftiLib-1.6.0/src/Nifti/NiftiHeader.cxx:75:0: style: Consider using std::any_of algorithm instead of a raw loop. [useStlAlgorithm] diff: head CiftiLib-1.6.0/src/Cifti/Label.cxx:261:28: style:inconclusive: Function 'equals' argument 1 names different: declaration '' definition 'gl'. [funcArgNamesDifferentUnnamed] DONE