2026-05-03 20:21 ftp://ftp.de.debian.org/debian/pool/main/n/nifti2dicom/nifti2dicom_0.4.11.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 -j1 platform: Linux-6.8.0-1047-aws-aarch64-with-glibc2.35 python: 3.10.12 client-version: 1.4.0 compiler: g++ (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0 cppcheck: head 2.20.0 head-info: e5c4a73 (2026-05-01 11:10:43 +0200) count: 84 79 elapsed-time: 0.6 0.5 head-timing-info: old-timing-info: head results: nifti2dicom-0.4.11/src/core/n2dAccessionNumberValidator.cxx:55:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] nifti2dicom-0.4.11/src/core/n2dAccessionNumberValidator.cxx:53:32: style: The member function 'n2d::AccessionNumberValidator::AccessionNumberWarning' can be static. [functionStatic] nifti2dicom-0.4.11/src/core/n2dAccessionNumberValidator.h:52:10: note: The member function 'n2d::AccessionNumberValidator::AccessionNumberWarning' can be static. nifti2dicom-0.4.11/src/core/n2dAccessionNumberValidator.cxx:53:32: note: The member function 'n2d::AccessionNumberValidator::AccessionNumberWarning' can be static. nifti2dicom-0.4.11/src/core/n2dCommandLineParser.cxx:30:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable endl [valueFlowBailoutIncompleteVar] nifti2dicom-0.4.11/src/core/n2dCommandLineParser.cxx:659:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] nifti2dicom-0.4.11/src/core/n2dCommandLineParser.h:38:5: warning: Member variable 'CommandLineParser::outputArgs' is not initialized in the constructor. [uninitMemberVar] nifti2dicom-0.4.11/src/core/n2dCommandLineParser.cxx:657:25: style:inconclusive: Technically the member function 'n2d::CommandLineParser::DebugPrint' can be const. [functionConst] nifti2dicom-0.4.11/src/core/n2dCommandLineParser.h:42:10: note: Technically the member function 'n2d::CommandLineParser::DebugPrint' can be const. nifti2dicom-0.4.11/src/core/n2dCommandLineParser.cxx:657:25: note: Technically the member function 'n2d::CommandLineParser::DebugPrint' can be const. nifti2dicom-0.4.11/src/core/n2dHeaderImporter.cxx:48:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] nifti2dicom-0.4.11/src/core/n2dInputFilter.cxx:107:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cerr [valueFlowBailoutIncompleteVar] nifti2dicom-0.4.11/src/core/n2dInputFilter.cxx:141:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cerr [valueFlowBailoutIncompleteVar] nifti2dicom-0.4.11/src/core/n2dInputImporter.cxx:27:129: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ReadMode [valueFlowBailoutIncompleteVar] nifti2dicom-0.4.11/src/core/n2dInputImporter.cxx:124:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] nifti2dicom-0.4.11/src/core/n2dInputImporter.h:41:5: warning: Member variable 'InputImporter::m_dictionary' is not initialized in the constructor. [uninitMemberVar] nifti2dicom-0.4.11/src/core/n2dInputImporter.h:41:5: style: Class 'InputImporter' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] nifti2dicom-0.4.11/src/core/n2dInstance.cxx:64:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable dec [valueFlowBailoutIncompleteVar] nifti2dicom-0.4.11/src/core/n2dOutputExporter.h:111:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] nifti2dicom-0.4.11/src/core/n2dOutputExporter.cxx:90:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] nifti2dicom-0.4.11/src/core/n2dOutputExporter.h:98:18: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] nifti2dicom-0.4.11/src/core/n2dPatient.h:46:31: performance: Function parameter 'patientArgs' should be passed by const reference. [passedByValue] nifti2dicom-0.4.11/src/core/n2dToolsDate.cxx:34:23: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] nifti2dicom-0.4.11/src/core/n2dToolsDate.cxx:34:14: style: Variable 't' can be declared as pointer to const [constVariablePointer] nifti2dicom-0.4.11/src/core/n2dToolsMetaDataDictionary.cxx:99:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] nifti2dicom-0.4.11/src/core/n2dVersion.cxx:30:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Nifti2Dicom_MAJOR_VERSION [valueFlowBailoutIncompleteVar] nifti2dicom-0.4.11/src/core/n2dVersion.cxx:35:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Nifti2Dicom_MINOR_VERSION [valueFlowBailoutIncompleteVar] nifti2dicom-0.4.11/src/core/n2dVersion.cxx:40:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Nifti2Dicom_PATCH_VERSION [valueFlowBailoutIncompleteVar] nifti2dicom-0.4.11/src/core/n2dVersion.cxx:45:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Nifti2Dicom_INTERNAL_VERSION [valueFlowBailoutIncompleteVar] nifti2dicom-0.4.11/src/core/n2dVersion.cxx:51:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Nifti2Dicom_INTERNAL_VERSION [valueFlowBailoutIncompleteVar] nifti2dicom-0.4.11/src/core/n2dVersion.cxx:57:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Nifti2Dicom_VERSION [valueFlowBailoutIncompleteVar] nifti2dicom-0.4.11/src/core/n2dVersion.cxx:63:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Nifti2Dicom_VERSION [valueFlowBailoutIncompleteVar] nifti2dicom-0.4.11/src/core/n2dVersion.cxx:69:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ITK_VERSION [valueFlowBailoutIncompleteVar] nifti2dicom-0.4.11/src/core/n2dVersion.cxx:74:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDCM_VERSION [valueFlowBailoutIncompleteVar] nifti2dicom-0.4.11/src/core/n2dVersion.cxx:79:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TCLAP_VERSION [valueFlowBailoutIncompleteVar] nifti2dicom-0.4.11/src/core/nifti2dicom.cxx:114:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cerr [valueFlowBailoutIncompleteVar] nifti2dicom-0.4.11/src/gui/customize.cpp:63:66: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Stretch [valueFlowBailoutIncompleteVar] nifti2dicom-0.4.11/src/gui/customize.cpp:121:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ItemIsEditable [valueFlowBailoutIncompleteVar] nifti2dicom-0.4.11/src/gui/customize.h:48:8: style: Class 'customize' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] nifti2dicom-0.4.11/src/gui/wizard.h:53:5: style: Class 'Wizard' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] nifti2dicom-0.4.11/src/gui/customize.cpp:109:4: warning: %x in format string (no. 1) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] nifti2dicom-0.4.11/src/gui/customize.cpp:110:4: warning: %x in format string (no. 1) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] nifti2dicom-0.4.11/src/gui/customize.cpp:139:48: style:inconclusive: Function 'OnItemChange' argument 1 names different: declaration '' definition 'item'. [funcArgNamesDifferentUnnamed] nifti2dicom-0.4.11/src/gui/wizard.h:75:91: style: Parameter 'b' can be declared as reference to const [constParameterReference] nifti2dicom-0.4.11/src/gui/wizard.h:81:67: style: Parameter 'a' can be declared as reference to const [constParameterReference] nifti2dicom-0.4.11/src/gui/wizard.h:82:59: style: Parameter 'a' can be declared as reference to const [constParameterReference] nifti2dicom-0.4.11/src/gui/wizard.h:83:57: style: Parameter 'a' can be declared as reference to const [constParameterReference] nifti2dicom-0.4.11/src/gui/wizard.h:84:65: style: Parameter 'a' can be declared as reference to const [constParameterReference] nifti2dicom-0.4.11/src/gui/wizard.h:85:51: style: Parameter 'a' can be declared as reference to const [constParameterReference] nifti2dicom-0.4.11/src/gui/wizard.h:86:47: style: Parameter 'a' can be declared as reference to const [constParameterReference] nifti2dicom-0.4.11/src/gui/wizard.h:87:49: style: Parameter 'a' can be declared as reference to const [constParameterReference] nifti2dicom-0.4.11/src/gui/wizard.h:88:59: style: Parameter 'a' can be declared as reference to const [constParameterReference] nifti2dicom-0.4.11/src/gui/wizard.h:89:47: style: Parameter 'a' can be declared as reference to const [constParameterReference] nifti2dicom-0.4.11/src/gui/wizard.h:90:51: style: Parameter 'a' can be declared as reference to const [constParameterReference] nifti2dicom-0.4.11/src/gui/wizard.h:91:53: style: Parameter 'a' can be declared as reference to const [constParameterReference] nifti2dicom-0.4.11/src/gui/wizard.h:92:49: style: Parameter 'a' can be declared as reference to const [constParameterReference] nifti2dicom-0.4.11/src/gui/finalize.cpp:92:67: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Stretch [valueFlowBailoutIncompleteVar] nifti2dicom-0.4.11/src/gui/finalize.cpp:215:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cerr [valueFlowBailoutIncompleteVar] nifti2dicom-0.4.11/src/gui/finalize.h:53:3: style: Class 'finalize' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] nifti2dicom-0.4.11/src/gui/finalize.cpp:167:55: style:inconclusive: Function 'OnAccessionNumberChange' argument 1 names different: declaration '' definition 'in'. [funcArgNamesDifferentUnnamed] nifti2dicom-0.4.11/src/gui/finalize.cpp:173:55: style:inconclusive: Function 'OnOutputDirectoryChange' argument 1 names different: declaration '' definition 'in'. [funcArgNamesDifferentUnnamed] nifti2dicom-0.4.11/src/gui/init.cpp:135:72: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Stretch [valueFlowBailoutIncompleteVar] nifti2dicom-0.4.11/src/gui/init.cpp:214:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cerr [valueFlowBailoutIncompleteVar] nifti2dicom-0.4.11/src/gui/init.cpp:381:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cerr [valueFlowBailoutIncompleteVar] nifti2dicom-0.4.11/src/gui/init.h:64:5: style: Class 'init' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] nifti2dicom-0.4.11/src/gui/init.cpp:213:7: style: Exception should be caught by reference. [catchExceptionByValue] nifti2dicom-0.4.11/src/gui/init.cpp:321:17: warning: %x in format string (no. 1) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] nifti2dicom-0.4.11/src/gui/init.cpp:322:17: warning: %x in format string (no. 1) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] nifti2dicom-0.4.11/src/gui/init.cpp:264:31: style:inconclusive: Function 'OnSliderChange' argument 1 names different: declaration '' definition 'z'. [funcArgNamesDifferentUnnamed] nifti2dicom-0.4.11/src/gui/init.cpp:348:12: warning: Uninitialized variable: tagkeyitem [uninitvar] nifti2dicom-0.4.11/src/gui/init.cpp:305:15: note: Assuming condition is false nifti2dicom-0.4.11/src/gui/init.cpp:348:12: note: Uninitialized variable: tagkeyitem nifti2dicom-0.4.11/src/gui/init.cpp:349:12: warning: Uninitialized variable: tagvalueitem [uninitvar] nifti2dicom-0.4.11/src/gui/init.cpp:305:15: note: Assuming condition is false nifti2dicom-0.4.11/src/gui/init.cpp:349:12: note: Uninitialized variable: tagvalueitem nifti2dicom-0.4.11/src/gui/init.cpp:350:12: warning: Uninitialized variable: desc [uninitvar] nifti2dicom-0.4.11/src/gui/init.cpp:305:15: note: Assuming condition is false nifti2dicom-0.4.11/src/gui/init.cpp:350:12: note: Uninitialized variable: desc nifti2dicom-0.4.11/src/gui/qnifti2dicom.cpp:42:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] nifti2dicom-0.4.11/src/gui/qnifti2dicom.cpp:47:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] nifti2dicom-0.4.11/src/gui/qnifti2dicom.cpp:84:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cerr [valueFlowBailoutIncompleteVar] nifti2dicom-0.4.11/src/gui/vtkKWImage.cxx:158:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable UCHAR [valueFlowBailoutIncompleteVar] nifti2dicom-0.4.11/src/gui/vtkKWImage.cxx:118:51: style:inconclusive: Function 'SetITKImageBase' argument 1 names different: declaration '' definition 'image'. [funcArgNamesDifferentUnnamed] nifti2dicom-0.4.11/src/gui/vtkKWImageIO.cxx:241:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ReadMode [valueFlowBailoutIncompleteVar] nifti2dicom-0.4.11/src/gui/vtkKWImageIO.cxx:340:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cerr [valueFlowBailoutIncompleteVar] nifti2dicom-0.4.11/src/gui/vtkKWImageIO.cxx:474:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ReadMode [valueFlowBailoutIncompleteVar] nifti2dicom-0.4.11/src/gui/vtkKWImageIO.cxx:202:15: warning: Member variable 'vtkKWImageIO::ImagePixelType' is not initialized in the constructor. [uninitMemberVar] nifti2dicom-0.4.11/src/gui/vtkKWImageIO.cxx:563:39: style:inconclusive: Either there is a missing 'override', or the member function 'vtkKWImageIO::GetImagePixelType' can be const. [functionConst] nifti2dicom-0.4.11/src/gui/vtkKWImageIO.h:65:13: note: Either there is a missing 'override', or the member function 'vtkKWImageIO::GetImagePixelType' can be const. nifti2dicom-0.4.11/src/gui/vtkKWImageIO.cxx:563:39: note: Either there is a missing 'override', or the member function 'vtkKWImageIO::GetImagePixelType' can be const. nifti2dicom-0.4.11/src/gui/vtkKWImageIO.cxx:222:68: style:inconclusive: Function 'SetSeriesFileNames' argument 1 names different: declaration 'FileNames' definition 'fileNames'. [funcArgNamesDifferent] nifti2dicom-0.4.11/src/gui/vtkKWImageIO.h:75:63: note: Function 'SetSeriesFileNames' argument 1 names different: declaration 'FileNames' definition 'fileNames'. nifti2dicom-0.4.11/src/gui/vtkKWImageIO.cxx:222:68: note: Function 'SetSeriesFileNames' argument 1 names different: declaration 'FileNames' definition 'fileNames'. nifti2dicom-0.4.11/src/gui/vtkKWImageIO.cxx:351:33: style: Variable 'excp' can be declared as reference to const [constVariableReference] nifti2dicom-0.4.11/src/gui/vtkKWImageIO.cxx:353:37: performance: Passing the result of c_str() to a stream is slow and redundant. [stlcstrStream] nifti2dicom-0.4.11/src/gui/vtkKWImageIO.cxx:359:37: performance: Passing the result of c_str() to a stream is slow and redundant. [stlcstrStream] nifti2dicom-0.4.11/src/gui/vtkKWImageIO.cxx:377:3: performance: Assigning the result of c_str() to a std::string is slow and redundant. [stlcstrAssignment] nifti2dicom-0.4.11/src/gui/wizard.cpp:43:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FinishButton [valueFlowBailoutIncompleteVar] diff: head nifti2dicom-0.4.11/src/gui/customize.cpp:139:48: style:inconclusive: Function 'OnItemChange' argument 1 names different: declaration '' definition 'item'. [funcArgNamesDifferentUnnamed] head nifti2dicom-0.4.11/src/gui/finalize.cpp:167:55: style:inconclusive: Function 'OnAccessionNumberChange' argument 1 names different: declaration '' definition 'in'. [funcArgNamesDifferentUnnamed] head nifti2dicom-0.4.11/src/gui/finalize.cpp:173:55: style:inconclusive: Function 'OnOutputDirectoryChange' argument 1 names different: declaration '' definition 'in'. [funcArgNamesDifferentUnnamed] head nifti2dicom-0.4.11/src/gui/init.cpp:264:31: style:inconclusive: Function 'OnSliderChange' argument 1 names different: declaration '' definition 'z'. [funcArgNamesDifferentUnnamed] head nifti2dicom-0.4.11/src/gui/vtkKWImage.cxx:118:51: style:inconclusive: Function 'SetITKImageBase' argument 1 names different: declaration '' definition 'image'. [funcArgNamesDifferentUnnamed] DONE