2024-04-24 19:23 ftp://ftp.de.debian.org/debian/pool/main/g/gdisk/gdisk_1.0.10.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=icu --showtime=top5 --check-library --inconclusive --enable=style,information --inline-suppr --disable=missingInclude --suppress=unmatchedSuppression --template=daca2 --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning -D__GNUC__ --platform=unix64 -j1 platform: Linux-6.6.15-amd64-x86_64-with-glibc2.37 python: 3.11.8 client-version: 1.3.49 compiler: g++ (Debian 13.2.0-23) 13.2.0 cppcheck: head 2.14.0 head-info: 94f28a2 (2024-04-24 20:47:54 +0200) count: 492 492 elapsed-time: 4.6 4.8 head-timing-info: Tokenizer::simplifyTokens1::ValueFlow: 3.57135s (avg. 0.170064s - 21 result(s)) valueFlowAfterAssign(tokenlist, symboldatabase, errorLogger, settings, skippedFunctions): 1.07652s (avg. 0.0199355s - 54 result(s)) valueFlowCondition(SimpleConditionHandler{}, tokenlist, symboldatabase, errorLogger, settings, skippedFunctions): 0.779734s (avg. 0.0144395s - 54 result(s)) valueFlowSubFunction(tokenlist, symboldatabase, errorLogger, settings): 0.611493s (avg. 0.0113239s - 54 result(s)) valueFlowCondition(SymbolicConditionHandler{}, tokenlist, symboldatabase, errorLogger, settings, skippedFunctions): 0.347675s (avg. 0.00643843s - 54 result(s)) Overall time: 4.20751s old-timing-info: Tokenizer::simplifyTokens1::ValueFlow: 3.64442s (avg. 0.173544s - 21 result(s)) valueFlowAfterAssign(tokenlist, symboldatabase, errorLogger, settings, skippedFunctions): 1.10431s (avg. 0.0204503s - 54 result(s)) valueFlowCondition(SimpleConditionHandler{}, tokenlist, symboldatabase, errorLogger, settings, skippedFunctions): 0.784184s (avg. 0.0145219s - 54 result(s)) valueFlowSubFunction(tokenlist, symboldatabase, errorLogger, settings): 0.616291s (avg. 0.0114128s - 54 result(s)) valueFlowCondition(SymbolicConditionHandler{}, tokenlist, symboldatabase, errorLogger, settings, skippedFunctions): 0.350018s (avg. 0.00648181s - 54 result(s)) Overall time: 4.32899s head results: gptfdisk-1.0.10/attributes.cc:72:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/attributes.cc:98:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/attributes.cc:109:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/attributes.cc:138:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/attributes.cc:164:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cerr [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/attributes.h:17:9: performance:inconclusive: Technically the member function 'Attributes::Setup' can be static (but you may consider moving to unnamed namespace). [functionStatic] gptfdisk-1.0.10/attributes.cc:47:18: note: Technically the member function 'Attributes::Setup' can be static (but you may consider moving to unnamed namespace). gptfdisk-1.0.10/attributes.h:17:9: note: Technically the member function 'Attributes::Setup' can be static (but you may consider moving to unnamed namespace). gptfdisk-1.0.10/attributes.h:27:9: style:inconclusive: Technically the member function 'Attributes::DisplayAttributes' can be const. [functionConst] gptfdisk-1.0.10/attributes.cc:68:18: note: Technically the member function 'Attributes::DisplayAttributes' can be const. gptfdisk-1.0.10/attributes.h:27:9: note: Technically the member function 'Attributes::DisplayAttributes' can be const. gptfdisk-1.0.10/attributes.h:28:9: style:inconclusive: Technically the member function 'Attributes::ShowAttributes' can be const. [functionConst] gptfdisk-1.0.10/attributes.cc:91:18: note: Technically the member function 'Attributes::ShowAttributes' can be const. gptfdisk-1.0.10/attributes.h:28:9: note: Technically the member function 'Attributes::ShowAttributes' can be const. gptfdisk-1.0.10/attributes.h:22:4: style: Class 'Attributes' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] gptfdisk-1.0.10/attributes.cc:171:16: warning: %qx in format string (no. 1) requires 'unsigned int *' but the argument type is 'unsigned long long *'. [invalidScanfArgType_int] gptfdisk-1.0.10/attributes.cc:171:54: style: C-style pointer casting [cstyleCast] gptfdisk-1.0.10/attributes.cc:93:9: style: The scope of the variable 'bitset' can be reduced. [variableScope] gptfdisk-1.0.10/attributes.cc:133:11: style: The scope of the variable 'tempAttr' can be reduced. [variableScope] gptfdisk-1.0.10/basicmbr.cc:64:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cerr [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/basicmbr.cc:121:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cerr [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/basicmbr.cc:148:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cerr [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/basicmbr.cc:189:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cerr [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/basicmbr.cc:291:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cerr [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/basicmbr.cc:363:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/basicmbr.cc:466:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cerr [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/basicmbr.cc:509:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/basicmbr.cc:540:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/basicmbr.cc:748:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/basicmbr.cc:1136:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cerr [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/basicmbr.cc:1176:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cerr [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/basicmbr.cc:1329:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cerr [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/basicmbr.cc:1390:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cerr [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/basicmbr.cc:1585:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/basicmbr.cc:1660:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/basicmbr.cc:33:15: warning: Member variable 'BasicMBRData::diskSignature' is not initialized in the constructor. [uninitMemberVar] gptfdisk-1.0.10/gptpart.h:66:18: style:inconclusive: Technically the member function 'GPTPart::GetAttributes' can be const. [functionConst] gptfdisk-1.0.10/diskio.h:74:19: style:inconclusive: Technically the member function 'DiskIO::GetModel' can be const. [functionConst] gptfdisk-1.0.10/diskio.h:77:11: style:inconclusive: Technically the member function 'DiskIO::IsOpen' can be const. [functionConst] gptfdisk-1.0.10/diskio.h:78:11: style:inconclusive: Technically the member function 'DiskIO::IsOpenForWrite' can be const. [functionConst] gptfdisk-1.0.10/mbrpart.h:92:13: style:inconclusive: Technically the member function 'MBRPart::GetType' can be const. [functionConst] gptfdisk-1.0.10/mbrpart.h:93:13: style:inconclusive: Technically the member function 'MBRPart::GetStatus' can be const. [functionConst] gptfdisk-1.0.10/mbrpart.h:94:14: style:inconclusive: Technically the member function 'MBRPart::GetStartLBA' can be const. [functionConst] gptfdisk-1.0.10/mbrpart.h:95:14: style:inconclusive: Technically the member function 'MBRPart::GetLengthLBA' can be const. [functionConst] gptfdisk-1.0.10/mbrpart.h:97:13: style:inconclusive: Technically the member function 'MBRPart::GetInclusion' can be const. [functionConst] gptfdisk-1.0.10/mbrpart.h:98:9: style:inconclusive: Technically the member function 'MBRPart::CanBeLogical' can be const. [functionConst] gptfdisk-1.0.10/mbrpart.h:99:9: style:inconclusive: Technically the member function 'MBRPart::CanBePrimary' can be const. [functionConst] gptfdisk-1.0.10/basicmbr.h:75:8: performance:inconclusive: Technically the member function 'BasicMBRData::WriteMBRData' can be static (but you may consider moving to unnamed namespace). [functionStatic] gptfdisk-1.0.10/basicmbr.cc:447:19: note: Technically the member function 'BasicMBRData::WriteMBRData' can be static (but you may consider moving to unnamed namespace). gptfdisk-1.0.10/basicmbr.h:75:8: note: Technically the member function 'BasicMBRData::WriteMBRData' can be static (but you may consider moving to unnamed namespace). gptfdisk-1.0.10/basicmbr.h:81:9: style:inconclusive: Technically the member function 'BasicMBRData::ShowState' can be const. [functionConst] gptfdisk-1.0.10/basicmbr.cc:537:20: note: Technically the member function 'BasicMBRData::ShowState' can be const. gptfdisk-1.0.10/basicmbr.h:81:9: note: Technically the member function 'BasicMBRData::ShowState' can be const. gptfdisk-1.0.10/basicmbr.h:90:16: style:inconclusive: Technically the member function 'BasicMBRData::GetValidity' can be const. [functionConst] gptfdisk-1.0.10/basicmbr.h:94:8: style:inconclusive: Technically the member function 'BasicMBRData::LBAtoCHS' can be const. [functionConst] gptfdisk-1.0.10/basicmbr.cc:694:19: note: Technically the member function 'BasicMBRData::LBAtoCHS' can be const. gptfdisk-1.0.10/basicmbr.h:94:8: note: Technically the member function 'BasicMBRData::LBAtoCHS' can be const. gptfdisk-1.0.10/basicmbr.h:149:9: performance:inconclusive: Technically the member function 'BasicMBRData::ShowCommands' can be static (but you may consider moving to unnamed namespace). [functionStatic] gptfdisk-1.0.10/basicmbr.cc:1659:20: note: Technically the member function 'BasicMBRData::ShowCommands' can be static (but you may consider moving to unnamed namespace). gptfdisk-1.0.10/basicmbr.h:149:9: note: Technically the member function 'BasicMBRData::ShowCommands' can be static (but you may consider moving to unnamed namespace). gptfdisk-1.0.10/parttypes.h:49:15: warning: The class 'PartType' defines member function with name 'operator=' also defined in its parent class 'GUIDData'. [duplInheritedMember] gptfdisk-1.0.10/guid.h:50:18: note: Parent function 'GUIDData::operator=' gptfdisk-1.0.10/parttypes.h:49:15: note: Derived function 'PartType::operator=' gptfdisk-1.0.10/parttypes.h:50:15: warning: The class 'PartType' defines member function with name 'operator=' also defined in its parent class 'GUIDData'. [duplInheritedMember] gptfdisk-1.0.10/guid.h:51:18: note: Parent function 'GUIDData::operator=' gptfdisk-1.0.10/parttypes.h:50:15: note: Derived function 'PartType::operator=' gptfdisk-1.0.10/parttypes.h:53:15: warning: The class 'PartType' defines member function with name 'operator=' also defined in its parent class 'GUIDData'. [duplInheritedMember] gptfdisk-1.0.10/guid.h:49:18: note: Parent function 'GUIDData::operator=' gptfdisk-1.0.10/parttypes.h:53:15: note: Derived function 'PartType::operator=' gptfdisk-1.0.10/mbr.h:28:14: warning: The class 'MBRData' defines member function with name 'operator=' also defined in its parent class 'BasicMBRData'. [duplInheritedMember] gptfdisk-1.0.10/basicmbr.cc:103:30: note: Parent function 'BasicMBRData::operator=' gptfdisk-1.0.10/mbr.h:28:14: note: Derived function 'MBRData::operator=' gptfdisk-1.0.10/guid.h:44:7: style: Class 'GUIDData' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] gptfdisk-1.0.10/guid.h:45:7: style: Class 'GUIDData' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] gptfdisk-1.0.10/parttypes.h:42:4: style: Class 'PartType' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] gptfdisk-1.0.10/basicmbr.h:63:4: style: Class 'BasicMBRData' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] gptfdisk-1.0.10/mbr.h:27:4: style: Class 'MBRData' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] gptfdisk-1.0.10/diskio.h:74:19: performance: Function 'GetModel()' should return member 'modelName' by const reference. [returnByReference] gptfdisk-1.0.10/diskio.h:79:19: performance: Function 'GetName()' should return member 'realFilename' by const reference. [returnByReference] gptfdisk-1.0.10/basicmbr.cc:247:11: style: The if condition is the same as the previous if condition [duplicateCondition] gptfdisk-1.0.10/basicmbr.cc:227:11: note: First condition gptfdisk-1.0.10/basicmbr.cc:247:11: note: Second condition gptfdisk-1.0.10/basicmbr.cc:239:14: style: Condition 'allOK' is always true [knownConditionTrueFalse] gptfdisk-1.0.10/basicmbr.cc:1469:23: style: Condition 'thisLastLBA>0' is always true [knownConditionTrueFalse] gptfdisk-1.0.10/basicmbr.cc:1468:48: note: Assignment 'thisLastLBA=partitions[i].GetLastLBA()+1', assigned value is greater than 0 gptfdisk-1.0.10/basicmbr.cc:1469:23: note: Condition 'thisLastLBA>0' is always true gptfdisk-1.0.10/basicmbr.cc:421:19: style: C-style pointer casting [cstyleCast] gptfdisk-1.0.10/basicmbr.cc:423:19: style: C-style pointer casting [cstyleCast] gptfdisk-1.0.10/basicmbr.cc:47:8: style: The scope of the variable 'i' can be reduced. [variableScope] gptfdisk-1.0.10/basicmbr.cc:104:8: style: The scope of the variable 'i' can be reduced. [variableScope] gptfdisk-1.0.10/basicmbr.cc:171:19: style: The scope of the variable 'i' can be reduced. [variableScope] gptfdisk-1.0.10/basicmbr.cc:375:23: style: The scope of the variable 'next' can be reduced. [variableScope] gptfdisk-1.0.10/basicmbr.cc:570:9: style: The scope of the variable 'signature1' can be reduced. [variableScope] gptfdisk-1.0.10/basicmbr.cc:570:24: style: The scope of the variable 'signature2' can be reduced. [variableScope] gptfdisk-1.0.10/basicmbr.cc:695:13: style: The scope of the variable 'cylinder' can be reduced. [variableScope] gptfdisk-1.0.10/basicmbr.cc:695:23: style: The scope of the variable 'head' can be reduced. [variableScope] gptfdisk-1.0.10/basicmbr.cc:695:29: style: The scope of the variable 'sector' can be reduced. [variableScope] gptfdisk-1.0.10/basicmbr.cc:696:13: style: The scope of the variable 'remainder' can be reduced. [variableScope] gptfdisk-1.0.10/basicmbr.cc:698:8: style: The scope of the variable 'done' can be reduced. [variableScope] gptfdisk-1.0.10/basicmbr.cc:811:55: style: The scope of the variable 'usedAsEBR' can be reduced. [variableScope] gptfdisk-1.0.10/basicmbr.cc:896:19: style: The scope of the variable 'i' can be reduced. [variableScope] gptfdisk-1.0.10/basicmbr.cc:1128:19: style: The scope of the variable 'origValue' can be reduced. [variableScope] gptfdisk-1.0.10/basicmbr.cc:1189:12: style: The scope of the variable 'type' can be reduced. [variableScope] gptfdisk-1.0.10/basicmbr.cc:1222:26: style: The scope of the variable 'earliestPartWas' can be reduced. [variableScope] gptfdisk-1.0.10/basicmbr.cc:1463:26: style: The scope of the variable 'thisLastLBA' can be reduced. [variableScope] gptfdisk-1.0.10/basicmbr.cc:1635:32: style: Checking if unsigned expression 'hexCode' is less than zero. [unsignedLessThanZero] gptfdisk-1.0.10/basicmbr.cc:76:35: style:inconclusive: Function 'BasicMBRData' argument 1 names different: declaration 'deviceFilename' definition 'filename'. [funcArgNamesDifferent] gptfdisk-1.0.10/basicmbr.h:63:29: note: Function 'BasicMBRData' argument 1 names different: declaration 'deviceFilename' definition 'filename'. gptfdisk-1.0.10/basicmbr.cc:76:35: note: Function 'BasicMBRData' argument 1 names different: declaration 'deviceFilename' definition 'filename'. gptfdisk-1.0.10/basicmbr.cc:1042:47: style:inconclusive: Function 'MakePart' argument 2 names different: declaration 'startLBA' definition 'start'. [funcArgNamesDifferent] gptfdisk-1.0.10/basicmbr.h:114:36: note: Function 'MakePart' argument 2 names different: declaration 'startLBA' definition 'start'. gptfdisk-1.0.10/basicmbr.cc:1042:47: note: Function 'MakePart' argument 2 names different: declaration 'startLBA' definition 'start'. gptfdisk-1.0.10/basicmbr.cc:1042:63: style:inconclusive: Function 'MakePart' argument 3 names different: declaration 'lengthLBA' definition 'length'. [funcArgNamesDifferent] gptfdisk-1.0.10/basicmbr.h:114:55: note: Function 'MakePart' argument 3 names different: declaration 'lengthLBA' definition 'length'. gptfdisk-1.0.10/basicmbr.cc:1042:63: note: Function 'MakePart' argument 3 names different: declaration 'lengthLBA' definition 'length'. gptfdisk-1.0.10/mbr.h:27:24: performance: Function parameter 'deviceFilename' should be passed by const reference. [passedByValue] gptfdisk-1.0.10/basicmbr.cc:76:35: performance: Function parameter 'filename' should be passed by const reference. [passedByValue] gptfdisk-1.0.10/basicmbr.cc:1096:11: style: Unused variable: anything [unusedVariable] gptfdisk-1.0.10/basicmbr.cc:1311:36: style: Variable 'swapped' is assigned a value that is never used. [unreadVariable] gptfdisk-1.0.10/basicmbr.cc:1338:13: style: Variable 'j' is assigned a value that is never used. [unreadVariable] gptfdisk-1.0.10/basicmbr.cc:1338:40: style: Variable 'swapped' is assigned a value that is never used. [unreadVariable] gptfdisk-1.0.10/bsd.cc:138:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cerr [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/bsd.cc:187:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/bsd.cc:211:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/bsd.h:79:11: style:inconclusive: Technically the member function 'BSDData::ShowState' can be const. [functionConst] gptfdisk-1.0.10/bsd.cc:206:14: note: Technically the member function 'BSDData::ShowState' can be const. gptfdisk-1.0.10/bsd.h:79:11: note: Technically the member function 'BSDData::ShowState' can be const. gptfdisk-1.0.10/bsd.h:80:11: style:inconclusive: Technically the member function 'BSDData::IsDisklabel' can be const. [functionConst] gptfdisk-1.0.10/bsd.cc:226:14: note: Technically the member function 'BSDData::IsDisklabel' can be const. gptfdisk-1.0.10/bsd.h:80:11: note: Technically the member function 'BSDData::IsDisklabel' can be const. gptfdisk-1.0.10/bsd.h:83:15: style:inconclusive: Technically the member function 'BSDData::GetType' can be const. [functionConst] gptfdisk-1.0.10/bsd.cc:231:18: note: Technically the member function 'BSDData::GetType' can be const. gptfdisk-1.0.10/bsd.h:83:15: note: Technically the member function 'BSDData::GetType' can be const. gptfdisk-1.0.10/bsd.h:84:16: style:inconclusive: Technically the member function 'BSDData::GetFirstSector' can be const. [functionConst] gptfdisk-1.0.10/bsd.cc:241:19: note: Technically the member function 'BSDData::GetFirstSector' can be const. gptfdisk-1.0.10/bsd.h:84:16: note: Technically the member function 'BSDData::GetFirstSector' can be const. gptfdisk-1.0.10/bsd.h:85:16: style:inconclusive: Technically the member function 'BSDData::GetLength' can be const. [functionConst] gptfdisk-1.0.10/bsd.cc:251:19: note: Technically the member function 'BSDData::GetLength' can be const. gptfdisk-1.0.10/bsd.h:85:16: note: Technically the member function 'BSDData::GetLength' can be const. gptfdisk-1.0.10/bsd.h:86:11: style:inconclusive: Technically the member function 'BSDData::GetNumParts' can be const. [functionConst] gptfdisk-1.0.10/bsd.cc:261:14: note: Technically the member function 'BSDData::GetNumParts' can be const. gptfdisk-1.0.10/bsd.h:86:11: note: Technically the member function 'BSDData::GetNumParts' can be const. gptfdisk-1.0.10/bsd.cc:100:19: style: C-style pointer casting [cstyleCast] gptfdisk-1.0.10/bsd.cc:103:22: style: C-style pointer casting [cstyleCast] gptfdisk-1.0.10/bsd.cc:117:16: style: C-style pointer casting [cstyleCast] gptfdisk-1.0.10/bsd.cc:119:16: style: C-style pointer casting [cstyleCast] gptfdisk-1.0.10/bsd.cc:144:24: style: C-style pointer casting [cstyleCast] gptfdisk-1.0.10/bsd.cc:69:8: style: The scope of the variable 'relative' can be reduced. [variableScope] gptfdisk-1.0.10/bsd.cc:73:14: style: The scope of the variable 'temp16' can be reduced. [variableScope] gptfdisk-1.0.10/bsd.cc:184:8: style: The scope of the variable 'i' can be reduced. [variableScope] gptfdisk-1.0.10/bsd.cc:46:41: style:inconclusive: Function 'ReadBSDData' argument 1 names different: declaration 'deviceFilename' definition 'device'. [funcArgNamesDifferent] gptfdisk-1.0.10/bsd.h:75:43: note: Function 'ReadBSDData' argument 1 names different: declaration 'deviceFilename' definition 'device'. gptfdisk-1.0.10/bsd.cc:46:41: note: Function 'ReadBSDData' argument 1 names different: declaration 'deviceFilename' definition 'device'. gptfdisk-1.0.10/bsd.cc:66:34: style:inconclusive: Function 'ReadBSDData' argument 1 names different: declaration 'myDisk' definition 'theDisk'. [funcArgNamesDifferent] gptfdisk-1.0.10/bsd.h:76:31: note: Function 'ReadBSDData' argument 1 names different: declaration 'myDisk' definition 'theDisk'. gptfdisk-1.0.10/bsd.cc:66:34: note: Function 'ReadBSDData' argument 1 names different: declaration 'myDisk' definition 'theDisk'. gptfdisk-1.0.10/bsd.cc:72:14: style: Variable 'temp32' can be declared as pointer to const [constVariablePointer] gptfdisk-1.0.10/bsd.cc:73:14: style: Variable 'temp16' can be declared as pointer to const [constVariablePointer] gptfdisk-1.0.10/cgdisk.cc:39:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/gpt.h:164:15: style:inconclusive: Technically the member function 'GPTData::GetState' can be const. [functionConst] gptfdisk-1.0.10/gpt.h:167:13: style:inconclusive: Technically the member function 'GPTData::GetNumParts' can be const. [functionConst] gptfdisk-1.0.10/gpt.h:168:13: style:inconclusive: Technically the member function 'GPTData::GetTableSizeInSectors' can be const. [functionConst] gptfdisk-1.0.10/gpt.h:170:13: style:inconclusive: Technically the member function 'GPTData::GetMainHeaderLBA' can be const. [functionConst] gptfdisk-1.0.10/gpt.h:171:13: style:inconclusive: Technically the member function 'GPTData::GetSecondHeaderLBA' can be const. [functionConst] gptfdisk-1.0.10/gpt.h:172:13: style:inconclusive: Technically the member function 'GPTData::GetMainPartsLBA' can be const. [functionConst] gptfdisk-1.0.10/gpt.h:173:13: style:inconclusive: Technically the member function 'GPTData::GetSecondPartsLBA' can be const. [functionConst] gptfdisk-1.0.10/gpt.h:174:13: style:inconclusive: Technically the member function 'GPTData::GetFirstUsableLBA' can be const. [functionConst] gptfdisk-1.0.10/gpt.h:175:13: style:inconclusive: Technically the member function 'GPTData::GetLastUsableLBA' can be const. [functionConst] gptfdisk-1.0.10/gpt.h:180:13: style:inconclusive: Technically the member function 'GPTData::GetBlockSize' can be const. [functionConst] gptfdisk-1.0.10/gpt.h:197:13: style:inconclusive: Technically the member function 'GPTData::GetAlignment' can be const. [functionConst] gptfdisk-1.0.10/gpt.h:200:15: style:inconclusive: Technically the member function 'GPTData::WhichWasUsed' can be const. [functionConst] gptfdisk-1.0.10/mbr.h:28:14: warning: The class 'MBRData' defines member function with name 'operator=' also defined in its parent class 'BasicMBRData'. [duplInheritedMember] gptfdisk-1.0.10/basicmbr.h:66:19: note: Parent function 'BasicMBRData::operator=' gptfdisk-1.0.10/mbr.h:28:14: note: Derived function 'MBRData::operator=' gptfdisk-1.0.10/gptcurses.h:109:9: warning: The class 'GPTDataCurses' defines member function with name 'Verify' also defined in its parent class 'GPTData'. [duplInheritedMember] gptfdisk-1.0.10/gpt.h:99:8: note: Parent function 'GPTData::Verify' gptfdisk-1.0.10/gptcurses.h:109:9: note: Derived function 'GPTDataCurses::Verify' gptfdisk-1.0.10/gpt.h:94:4: style: Class 'GPTData' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] gptfdisk-1.0.10/gptcurses.h:102:5: style: The destructor '~GPTDataCurses' overrides a destructor in a base class but is not marked with a 'override' specifier. [missingOverride] gptfdisk-1.0.10/gpt.h:95:13: note: Virtual destructor in base class gptfdisk-1.0.10/gptcurses.h:102:5: note: Destructor in derived class gptfdisk-1.0.10/gpt.h:161:41: style: Parameter 'newMBR' can be declared as reference to const [constParameterReference] gptfdisk-1.0.10/cgdisk.cc:30:26: style: Parameter 'argv' can be declared as const array [constParameter] gptfdisk-1.0.10/crc32.cc:52:18: style: The scope of the variable 'crc' can be reduced. [variableScope] gptfdisk-1.0.10/diskio-unix.cc:70:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/diskio-unix.cc:126:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_WRONLY [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/diskio-unix.cc:149:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cerr [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/diskio-unix.cc:190:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/diskio-unix.cc:307:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cerr [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/diskio-unix.cc:361:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cerr [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/diskio-unix.cc:403:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cerr [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/diskio-unix.cc:489:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cerr [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/diskio.h:75:16: performance:inconclusive: Technically the member function 'DiskIO::GetNumHeads' can be static (but you may consider moving to unnamed namespace). [functionStatic] gptfdisk-1.0.10/diskio-unix.cc:224:18: note: Technically the member function 'DiskIO::GetNumHeads' can be static (but you may consider moving to unnamed namespace). gptfdisk-1.0.10/diskio.h:75:16: note: Technically the member function 'DiskIO::GetNumHeads' can be static (but you may consider moving to unnamed namespace). gptfdisk-1.0.10/diskio.h:76:16: performance:inconclusive: Technically the member function 'DiskIO::GetNumSecsPerTrack' can be static (but you may consider moving to unnamed namespace). [functionStatic] gptfdisk-1.0.10/diskio-unix.cc:242:18: note: Technically the member function 'DiskIO::GetNumSecsPerTrack' can be static (but you may consider moving to unnamed namespace). gptfdisk-1.0.10/diskio.h:76:16: note: Technically the member function 'DiskIO::GetNumSecsPerTrack' can be static (but you may consider moving to unnamed namespace). gptfdisk-1.0.10/diskio-unix.cc:184:15: style: The comparison 'err == -1' is always true. [knownConditionTrueFalse] gptfdisk-1.0.10/diskio-unix.cc:158:15: note: 'err' is assigned value '-1' here. gptfdisk-1.0.10/diskio-unix.cc:184:15: note: The comparison 'err == -1' is always true. gptfdisk-1.0.10/diskio-unix.cc:217:12: style: The comparison 'err == -1' is always true. [knownConditionTrueFalse] gptfdisk-1.0.10/diskio-unix.cc:205:15: note: 'err' is assigned value '-1' here. gptfdisk-1.0.10/diskio-unix.cc:217:12: note: The comparison 'err == -1' is always true. gptfdisk-1.0.10/diskio-unix.cc:306:25: style: The comparison 'platformFound == 0' is always true. [knownConditionTrueFalse] gptfdisk-1.0.10/diskio-unix.cc:264:39: note: 'platformFound' is assigned value '0' here. gptfdisk-1.0.10/diskio-unix.cc:306:25: note: The comparison 'platformFound == 0' is always true. gptfdisk-1.0.10/diskio-unix.cc:158:8: style: The scope of the variable 'err' can be reduced. [variableScope] gptfdisk-1.0.10/diskio-unix.cc:264:23: style: The scope of the variable 'platformFound' can be reduced. [variableScope] gptfdisk-1.0.10/diskio-unix.cc:318:12: style: The scope of the variable 'seekTo' can be reduced. [variableScope] gptfdisk-1.0.10/diskio-unix.cc:318:20: style: The scope of the variable 'sought' can be reduced. [variableScope] gptfdisk-1.0.10/diskio-unix.cc:340:8: style: The scope of the variable 'blockSize' can be reduced. [variableScope] gptfdisk-1.0.10/diskio-unix.cc:340:19: style: The scope of the variable 'numBlocks' can be reduced. [variableScope] gptfdisk-1.0.10/diskio-unix.cc:341:10: style: The scope of the variable 'tempSpace' can be reduced. [variableScope] gptfdisk-1.0.10/diskio-unix.cc:383:8: style: The scope of the variable 'blockSize' can be reduced. [variableScope] gptfdisk-1.0.10/diskio-unix.cc:383:19: style: The scope of the variable 'i' can be reduced. [variableScope] gptfdisk-1.0.10/diskio-unix.cc:383:22: style: The scope of the variable 'numBlocks' can be reduced. [variableScope] gptfdisk-1.0.10/diskio-unix.cc:384:10: style: The scope of the variable 'tempSpace' can be reduced. [variableScope] gptfdisk-1.0.10/diskio-unix.cc:435:12: style: The scope of the variable 'bytes' can be reduced. [variableScope] gptfdisk-1.0.10/diskio-unix.cc:437:8: style: The scope of the variable 'platformFound' can be reduced. [variableScope] gptfdisk-1.0.10/diskio-unix.cc:382:25: style: Parameter 'buffer' can be declared as pointer to const [constParameterPointer] gptfdisk-1.0.10/diskio-unix.cc:433:32: style: Parameter 'err' can be declared as pointer to const [constParameterPointer] gptfdisk-1.0.10/diskio-unix.cc:264:8: style: Unused variable: i [unusedVariable] gptfdisk-1.0.10/diskio-unix.cc:435:18: style: Variable 'bytes' is assigned a value that is never used. [unreadVariable] gptfdisk-1.0.10/diskio-windows.cc:42:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable npos [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/diskio-windows.cc:65:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INVALID_HANDLE_VALUE [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/diskio-windows.cc:90:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GENERIC_READ [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/diskio-windows.cc:116:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INVALID_HANDLE_VALUE [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/diskio-windows.cc:180:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/diskio-windows.cc:209:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/diskio-windows.cc:244:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cerr [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/diskio-windows.cc:287:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cerr [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/diskio.h:73:11: performance:inconclusive: Technically the member function 'DiskIO::GetPhysBlockSize' can be static (but you may consider moving to unnamed namespace). [functionStatic] gptfdisk-1.0.10/diskio-windows.cc:149:13: note: Technically the member function 'DiskIO::GetPhysBlockSize' can be static (but you may consider moving to unnamed namespace). gptfdisk-1.0.10/diskio.h:73:11: note: Technically the member function 'DiskIO::GetPhysBlockSize' can be static (but you may consider moving to unnamed namespace). gptfdisk-1.0.10/diskio.h:75:16: performance:inconclusive: Technically the member function 'DiskIO::GetNumHeads' can be static (but you may consider moving to unnamed namespace). [functionStatic] gptfdisk-1.0.10/diskio-windows.cc:155:18: note: Technically the member function 'DiskIO::GetNumHeads' can be static (but you may consider moving to unnamed namespace). gptfdisk-1.0.10/diskio.h:75:16: note: Technically the member function 'DiskIO::GetNumHeads' can be static (but you may consider moving to unnamed namespace). gptfdisk-1.0.10/diskio.h:76:16: performance:inconclusive: Technically the member function 'DiskIO::GetNumSecsPerTrack' can be static (but you may consider moving to unnamed namespace). [functionStatic] gptfdisk-1.0.10/diskio-windows.cc:161:18: note: Technically the member function 'DiskIO::GetNumSecsPerTrack' can be static (but you may consider moving to unnamed namespace). gptfdisk-1.0.10/diskio.h:76:16: note: Technically the member function 'DiskIO::GetNumSecsPerTrack' can be static (but you may consider moving to unnamed namespace). gptfdisk-1.0.10/diskio-windows.cc:251:11: style: C-style pointer casting [cstyleCast] gptfdisk-1.0.10/diskio-windows.cc:293:26: style: C-style pointer casting [cstyleCast] gptfdisk-1.0.10/diskio-windows.cc:222:8: style: The scope of the variable 'blockSize' can be reduced. [variableScope] gptfdisk-1.0.10/diskio-windows.cc:222:25: style: The scope of the variable 'i' can be reduced. [variableScope] gptfdisk-1.0.10/diskio-windows.cc:222:28: style: The scope of the variable 'numBlocks' can be reduced. [variableScope] gptfdisk-1.0.10/diskio-windows.cc:266:8: style: The scope of the variable 'blockSize' can be reduced. [variableScope] gptfdisk-1.0.10/diskio-windows.cc:266:25: style: The scope of the variable 'i' can be reduced. [variableScope] gptfdisk-1.0.10/diskio-windows.cc:266:28: style: The scope of the variable 'numBlocks' can be reduced. [variableScope] gptfdisk-1.0.10/diskio-windows.cc:267:10: style: The scope of the variable 'tempSpace' can be reduced. [variableScope] gptfdisk-1.0.10/diskio-windows.cc:222:18: style: Variable 'blockSize' is assigned a value that is never used. [unreadVariable] gptfdisk-1.0.10/diskio-windows.cc:266:18: style: Variable 'blockSize' is assigned a value that is never used. [unreadVariable] gptfdisk-1.0.10/diskio.cc:41:9: warning: Member variable 'DiskIO::fd' is not initialized in the constructor. [uninitMemberVar] gptfdisk-1.0.10/diskio.cc:42:4: performance: Variable 'userFilename' is assigned in constructor body. Consider performing initialization in initialization list. [useInitializationList] gptfdisk-1.0.10/diskio.cc:43:4: performance: Variable 'realFilename' is assigned in constructor body. Consider performing initialization in initialization list. [useInitializationList] gptfdisk-1.0.10/diskio.cc:44:4: performance: Variable 'modelName' is assigned in constructor body. Consider performing initialization in initialization list. [useInitializationList] gptfdisk-1.0.10/fixparts.cc:29:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/fixparts.cc:88:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/fixparts.cc:25:26: style: Parameter 'argv' can be declared as const array [constParameter] gptfdisk-1.0.10/gdisk.cc:23:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/gpttext.h:30:7: style: Class 'GPTDataTextUI' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] gptfdisk-1.0.10/gpttext.h:31:8: style: The destructor '~GPTDataTextUI' overrides a destructor in a base class but is not marked with a 'override' specifier. [missingOverride] gptfdisk-1.0.10/gpt.h:95:13: note: Virtual destructor in base class gptfdisk-1.0.10/gpttext.h:31:8: note: Destructor in derived class gptfdisk-1.0.10/gpttext.h:37:18: style: The function 'UseWhichPartitions' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] gptfdisk-1.0.10/gpt.h:136:23: note: Virtual function in base class gptfdisk-1.0.10/gpttext.h:37:18: note: Function in derived class gptfdisk-1.0.10/gdisk.cc:16:26: style: Parameter 'argv' can be declared as const array [constParameter] gptfdisk-1.0.10/gdisk.cc:19:18: style: Unused variable: uString [unusedVariable] gptfdisk-1.0.10/gpt.cc:120:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cerr [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/gpt.cc:191:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cerr [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/gpt.cc:221:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/gpt.cc:476:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/gpt.cc:509:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable uppercase [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/gpt.cc:566:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cerr [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/gpt.cc:708:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/gpt.cc:735:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/gpt.cc:759:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/gpt.cc:814:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cerr [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/gpt.cc:848:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/gpt.cc:931:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/gpt.cc:1059:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cerr [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/gpt.cc:1103:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cerr [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/gpt.cc:1154:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cerr [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/gpt.cc:1191:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/gpt.cc:1356:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/gpt.cc:1451:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/gpt.cc:1495:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cerr [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/gpt.cc:1554:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cerr [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/gpt.cc:1561:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/gpt.cc:1570:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/gpt.cc:1589:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/gpt.cc:1618:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/gpt.cc:1641:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/gpt.cc:1744:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/gpt.cc:1785:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cerr [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/gpt.cc:1804:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/gpt.cc:1855:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/gpt.cc:1918:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cerr [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/gpt.cc:1935:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cerr [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/gpt.cc:1968:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cerr [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/gpt.cc:1982:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/gpt.cc:2500:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/gpt.cc:2585:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cerr [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/gpt.cc:2595:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cerr [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/gpt.cc:2620:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cerr [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/gpt.cc:2668:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cerr [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/gpt.h:129:9: style:inconclusive: Technically the member function 'GPTData::ShowAPMState' can be const. [functionConst] gptfdisk-1.0.10/gpt.cc:1559:15: note: Technically the member function 'GPTData::ShowAPMState' can be const. gptfdisk-1.0.10/gpt.h:129:9: note: Technically the member function 'GPTData::ShowAPMState' can be const. gptfdisk-1.0.10/gpt.h:130:9: style:inconclusive: Technically the member function 'GPTData::ShowGPTState' can be const. [functionConst] gptfdisk-1.0.10/gpt.cc:1567:15: note: Technically the member function 'GPTData::ShowGPTState' can be const. gptfdisk-1.0.10/gpt.h:130:9: note: Technically the member function 'GPTData::ShowGPTState' can be const. gptfdisk-1.0.10/gpt.h:177:9: style:inconclusive: Technically the member function 'GPTData::ValidPartNum' can be const. [functionConst] gptfdisk-1.0.10/gpt.cc:2583:15: note: Technically the member function 'GPTData::ValidPartNum' can be const. gptfdisk-1.0.10/gpt.h:177:9: note: Technically the member function 'GPTData::ValidPartNum' can be const. gptfdisk-1.0.10/gpt.h:203:9: performance:inconclusive: Technically the member function 'GPTData::ReverseHeaderBytes' can be static (but you may consider moving to unnamed namespace). [functionStatic] gptfdisk-1.0.10/gpt.cc:2556:15: note: Technically the member function 'GPTData::ReverseHeaderBytes' can be static (but you may consider moving to unnamed namespace). gptfdisk-1.0.10/gpt.h:203:9: note: Technically the member function 'GPTData::ReverseHeaderBytes' can be static (but you may consider moving to unnamed namespace). gptfdisk-1.0.10/gpt.cc:784:8: style: Condition 'allOK' is always true [knownConditionTrueFalse] gptfdisk-1.0.10/gpt.cc:781:21: note: Assignment 'allOK=1', assigned value is 1 gptfdisk-1.0.10/gpt.cc:784:8: note: Condition 'allOK' is always true gptfdisk-1.0.10/gpt.cc:1343:11: style: Condition 'allOK' is always true [knownConditionTrueFalse] gptfdisk-1.0.10/gpt.cc:1330:16: note: Assignment 'allOK=1', assigned value is 1 gptfdisk-1.0.10/gpt.cc:1343:11: note: Condition 'allOK' is always true gptfdisk-1.0.10/gpt.cc:583:29: style: C-style pointer casting [cstyleCast] gptfdisk-1.0.10/gpt.cc:616:23: style: C-style pointer casting [cstyleCast] gptfdisk-1.0.10/gpt.cc:628:23: style: C-style pointer casting [cstyleCast] gptfdisk-1.0.10/gpt.cc:632:23: style: C-style pointer casting [cstyleCast] gptfdisk-1.0.10/gpt.cc:1119:32: style: C-style pointer casting [cstyleCast] gptfdisk-1.0.10/gpt.cc:1160:32: style: C-style pointer casting [cstyleCast] gptfdisk-1.0.10/gpt.cc:92:13: style: The scope of the variable 'i' can be reduced. [variableScope] gptfdisk-1.0.10/gpt.cc:163:13: style: The scope of the variable 'i' can be reduced. [variableScope] gptfdisk-1.0.10/gpt.cc:216:13: style: The scope of the variable 'totalFree' can be reduced. [variableScope] gptfdisk-1.0.10/gpt.cc:453:13: style: The scope of the variable 'overlap' can be reduced. [variableScope] gptfdisk-1.0.10/gpt.cc:842:16: style: The scope of the variable 'mbrState' can be reduced. [variableScope] gptfdisk-1.0.10/gpt.cc:922:29: style: The scope of the variable 'loadedTable' can be reduced. [variableScope] gptfdisk-1.0.10/gpt.cc:1099:13: style: The scope of the variable 'sizeOfParts' can be reduced. [variableScope] gptfdisk-1.0.10/gpt.cc:1099:26: style: The scope of the variable 'newCRC' can be reduced. [variableScope] gptfdisk-1.0.10/gpt.cc:1142:13: style: The scope of the variable 'sizeOfParts' can be reduced. [variableScope] gptfdisk-1.0.10/gpt.cc:1142:26: style: The scope of the variable 'newCRC' can be reduced. [variableScope] gptfdisk-1.0.10/gpt.cc:1143:13: style: The scope of the variable 'partsToCheck' can be reduced. [variableScope] gptfdisk-1.0.10/gpt.cc:1144:15: style: The scope of the variable 'otherHeader' can be reduced. [variableScope] gptfdisk-1.0.10/gpt.cc:1184:19: style: The scope of the variable 'syncIt' can be reduced. [variableScope] gptfdisk-1.0.10/gpt.cc:1185:9: style: The scope of the variable 'answer' can be reduced. [variableScope] gptfdisk-1.0.10/gpt.cc:1414:19: style: The scope of the variable 'val' can be reduced. [variableScope] gptfdisk-1.0.10/gpt.cc:1415:8: style: The scope of the variable 'shortBackup' can be reduced. [variableScope] gptfdisk-1.0.10/gpt.cc:1484:8: style: The scope of the variable 'sum' can be reduced. [variableScope] gptfdisk-1.0.10/gpt.cc:1484:13: style: The scope of the variable 'tableSize' can be reduced. [variableScope] gptfdisk-1.0.10/gpt.cc:1486:13: style: The scope of the variable 'emptyTable' can be reduced. [variableScope] gptfdisk-1.0.10/gpt.cc:1706:12: style: The scope of the variable 'origType' can be reduced. [variableScope] gptfdisk-1.0.10/gpt.cc:1773:8: style: The scope of the variable 'i' can be reduced. [variableScope] gptfdisk-1.0.10/gpt.cc:1773:11: style: The scope of the variable 'partNum' can be reduced. [variableScope] gptfdisk-1.0.10/gpt.cc:1848:22: style: The scope of the variable 'copyNum' can be reduced. [variableScope] gptfdisk-1.0.10/gpt.cc:1954:13: style: The scope of the variable 'startSector' can be reduced. [variableScope] gptfdisk-1.0.10/gpt.cc:1954:26: style: The scope of the variable 'length' can be reduced. [variableScope] gptfdisk-1.0.10/gpt.cc:2180:20: style: The scope of the variable 'sectorOK' can be reduced. [variableScope] gptfdisk-1.0.10/gpt.cc:2181:13: style: The scope of the variable 'earlier' can be reduced. [variableScope] gptfdisk-1.0.10/gpt.cc:2181:22: style: The scope of the variable 'later' can be reduced. [variableScope] gptfdisk-1.0.10/gpt.cc:2181:29: style: The scope of the variable 'testSector' can be reduced. [variableScope] gptfdisk-1.0.10/gpt.cc:2423:13: style: The scope of the variable 'firstBlock' can be reduced. [variableScope] gptfdisk-1.0.10/gpt.cc:2424:13: style: The scope of the variable 'lastBlock' can be reduced. [variableScope] gptfdisk-1.0.10/gpt.cc:2425:13: style: The scope of the variable 'segmentSize' can be reduced. [variableScope] gptfdisk-1.0.10/gpt.cc:131:25: style:inconclusive: Function 'GPTData' argument 1 names different: declaration 'deviceFilename' definition 'filename'. [funcArgNamesDifferent] gptfdisk-1.0.10/gpt.h:94:24: note: Function 'GPTData' argument 1 names different: declaration 'deviceFilename' definition 'filename'. gptfdisk-1.0.10/gpt.cc:131:25: note: Function 'GPTData' argument 1 names different: declaration 'deviceFilename' definition 'filename'. gptfdisk-1.0.10/gpt.cc:2149:38: style:inconclusive: Function 'ChangePartType' argument 1 names different: declaration 'pn' definition 'partNum'. [funcArgNamesDifferent] gptfdisk-1.0.10/gpt.h:157:32: note: Function 'ChangePartType' argument 1 names different: declaration 'pn' definition 'partNum'. gptfdisk-1.0.10/gpt.cc:2149:38: note: Function 'ChangePartType' argument 1 names different: declaration 'pn' definition 'partNum'. gptfdisk-1.0.10/gpt.cc:131:25: performance: Function parameter 'filename' should be passed by const reference. [passedByValue] gptfdisk-1.0.10/gpt.cc:1144:15: style: Variable 'otherHeader' can be declared as pointer to const [constVariablePointer] gptfdisk-1.0.10/gpt.cc:1415:20: style: Variable 'shortBackup' is assigned a value that is never used. [unreadVariable] gptfdisk-1.0.10/gptcl.cc:53:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cerr [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/gptcl.cc:79:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable POPT_ARG_STRING [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/gptcl.cc:549:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cerr [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/gptcl.cc:609:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable npos [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/gptcl.cc:40:12: warning: Member variable 'GPTDataCL::attributeOperation' is not initialized in the constructor. [uninitMemberVar] gptfdisk-1.0.10/gptcl.cc:40:12: warning: Member variable 'GPTDataCL::backupFile' is not initialized in the constructor. [uninitMemberVar] gptfdisk-1.0.10/gptcl.cc:40:12: warning: Member variable 'GPTDataCL::partName' is not initialized in the constructor. [uninitMemberVar] gptfdisk-1.0.10/gptcl.cc:40:12: warning: Member variable 'GPTDataCL::hybrids' is not initialized in the constructor. [uninitMemberVar] gptfdisk-1.0.10/gptcl.cc:40:12: warning: Member variable 'GPTDataCL::newPartInfo' is not initialized in the constructor. [uninitMemberVar] gptfdisk-1.0.10/gptcl.cc:40:12: warning: Member variable 'GPTDataCL::mbrParts' is not initialized in the constructor. [uninitMemberVar] gptfdisk-1.0.10/gptcl.cc:40:12: warning: Member variable 'GPTDataCL::twoParts' is not initialized in the constructor. [uninitMemberVar] gptfdisk-1.0.10/gptcl.cc:40:12: warning: Member variable 'GPTDataCL::outDevice' is not initialized in the constructor. [uninitMemberVar] gptfdisk-1.0.10/gptcl.cc:40:12: warning: Member variable 'GPTDataCL::typeCode' is not initialized in the constructor. [uninitMemberVar] gptfdisk-1.0.10/gptcl.cc:40:12: warning: Member variable 'GPTDataCL::partGUID' is not initialized in the constructor. [uninitMemberVar] gptfdisk-1.0.10/gptcl.cc:40:12: warning: Member variable 'GPTDataCL::diskGUID' is not initialized in the constructor. [uninitMemberVar] gptfdisk-1.0.10/gptcl.cc:40:12: warning: Member variable 'GPTDataCL::alignment' is not initialized in the constructor. [uninitMemberVar] gptfdisk-1.0.10/gptcl.cc:40:12: warning: Member variable 'GPTDataCL::deletePartNum' is not initialized in the constructor. [uninitMemberVar] gptfdisk-1.0.10/gptcl.cc:40:12: warning: Member variable 'GPTDataCL::infoPartNum' is not initialized in the constructor. [uninitMemberVar] gptfdisk-1.0.10/gptcl.cc:40:12: warning: Member variable 'GPTDataCL::largestPartNum' is not initialized in the constructor. [uninitMemberVar] gptfdisk-1.0.10/gptcl.cc:40:12: warning: Member variable 'GPTDataCL::bsdPartNum' is not initialized in the constructor. [uninitMemberVar] gptfdisk-1.0.10/gptcl.cc:40:12: warning: Member variable 'GPTDataCL::alignEnd' is not initialized in the constructor. [uninitMemberVar] gptfdisk-1.0.10/gptcl.cc:40:12: warning: Member variable 'GPTDataCL::tableSize' is not initialized in the constructor. [uninitMemberVar] gptfdisk-1.0.10/gptcl.h:42:7: style: Class 'GPTDataCL' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] gptfdisk-1.0.10/gptcl.h:43:8: style: The destructor '~GPTDataCL' overrides a destructor in a base class but is not marked with a 'override' specifier. [missingOverride] gptfdisk-1.0.10/gpt.h:95:13: note: Virtual destructor in base class gptfdisk-1.0.10/gptcl.h:43:8: note: Destructor in derived class gptfdisk-1.0.10/gptcl.cc:125:42: style: C-style pointer casting [cstyleCast] gptfdisk-1.0.10/gptcl.cc:160:13: style: C-style pointer casting [cstyleCast] gptfdisk-1.0.10/gptcl.cc:68:29: style: The scope of the variable 'saveData' can be reduced. [variableScope] gptfdisk-1.0.10/gptcl.cc:68:43: style: The scope of the variable 'neverSaveData' can be reduced. [variableScope] gptfdisk-1.0.10/gptcl.cc:69:8: style: The scope of the variable 'partNum' can be reduced. [variableScope] gptfdisk-1.0.10/gptcl.cc:69:21: style: The scope of the variable 'newPartNum' can be reduced. [variableScope] gptfdisk-1.0.10/gptcl.cc:69:38: style: The scope of the variable 'saveNonGPT' can be reduced. [variableScope] gptfdisk-1.0.10/gptcl.cc:71:18: style: The scope of the variable 'high' can be reduced. [variableScope] gptfdisk-1.0.10/gptcl.cc:71:37: style: The scope of the variable 'endSector' can be reduced. [variableScope] gptfdisk-1.0.10/gptcl.cc:71:48: style: The scope of the variable 'sSize' can be reduced. [variableScope] gptfdisk-1.0.10/gptcl.cc:74:26: style: The scope of the variable 'name' can be reduced. [variableScope] gptfdisk-1.0.10/gptcl.cc:522:8: style: The scope of the variable 'numParts' can be reduced. [variableScope] gptfdisk-1.0.10/gptcl.cc:522:29: style: The scope of the variable 'i' can be reduced. [variableScope] gptfdisk-1.0.10/gptcl.cc:522:32: style: The scope of the variable 'origPartNum' can be reduced. [variableScope] gptfdisk-1.0.10/gptcl.cc:523:8: style: The scope of the variable 'eeLast' can be reduced. [variableScope] gptfdisk-1.0.10/gptcl.cc:523:20: style: The scope of the variable 'mbrNum' can be reduced. [variableScope] gptfdisk-1.0.10/gptcl.cc:40:29: performance: Function parameter 'filename' should be passed by const reference. [passedByValue] gptfdisk-1.0.10/gptcl.cc:46:39: performance: Function parameter 'backupFile' should be passed by const reference. [passedByValue] gptfdisk-1.0.10/gptcl.cc:577:23: style: Parameter 'argument' can be declared as pointer to const [constParameterPointer] gptfdisk-1.0.10/gptcl.cc:223:26: performance: Passing the result of c_str() to a function that takes std::string as argument no. 2 is slow and redundant. [stlcstrParam] gptfdisk-1.0.10/gptcl.cc:74:16: style: Unused variable: typeGUID [unusedVariable] gptfdisk-1.0.10/gptcl.cc:523:27: style: Variable 'mbrNum' is assigned a value that is never used. [unreadVariable] gptfdisk-1.0.10/gptcurses.cc:47:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_ALL [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/gptcurses.cc:238:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LINES [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/gptcurses.cc:278:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LINES [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/gptcurses.cc:331:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable COLS [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/gptcurses.cc:357:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LINES [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/gptcurses.cc:381:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LINES [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/gptcurses.cc:404:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LINES [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/gptcurses.cc:425:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/gptcurses.cc:437:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LINES [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/gptcurses.cc:485:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LINES [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/gptcurses.cc:518:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LINES [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/gptcurses.cc:531:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LINES [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/gptcurses.cc:546:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable COLS [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/gptcurses.cc:598:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable npos [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/gptcurses.cc:618:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable npos [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/gptcurses.cc:669:67: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LINES [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/gptcurses.cc:760:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable COLS [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/gptcurses.cc:770:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LINES [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/gptcurses.cc:799:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LINES [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/gptcurses.cc:805:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LINES [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/gptcurses.cc:816:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LINES [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/gptcurses.cc:831:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LINES [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/gptcurses.cc:43:16: warning: Member variable 'GPTDataCurses::numSpaces' is not initialized in the constructor. [uninitMemberVar] gptfdisk-1.0.10/gptcurses.h:114:9: performance:inconclusive: Technically the member function 'GPTDataCurses::ShowHelp' can be static (but you may consider moving to unnamed namespace). [functionStatic] gptfdisk-1.0.10/gptcurses.cc:542:21: note: Technically the member function 'GPTDataCurses::ShowHelp' can be static (but you may consider moving to unnamed namespace). gptfdisk-1.0.10/gptcurses.h:114:9: note: Technically the member function 'GPTDataCurses::ShowHelp' can be static (but you may consider moving to unnamed namespace). gptfdisk-1.0.10/gptcurses.cc:419:21: warning: The class 'GPTDataCurses' defines member function with name 'Verify' also defined in its parent class 'GPTData'. [duplInheritedMember] gptfdisk-1.0.10/gpt.h:99:8: note: Parent function 'GPTData::Verify' gptfdisk-1.0.10/gptcurses.cc:419:21: note: Derived function 'GPTDataCurses::Verify' gptfdisk-1.0.10/gptcurses.cc:392:19: style:inconclusive: Variable 'tempType' is reassigned a value before the old one has been used if variable is no semaphore variable. [redundantAssignment] gptfdisk-1.0.10/gptcurses.cc:391:22: note: tempType is assigned gptfdisk-1.0.10/gptcurses.cc:392:19: note: tempType is overwritten gptfdisk-1.0.10/gptcurses.cc:78:11: style: The scope of the variable 'trash' can be reduced. [variableScope] gptfdisk-1.0.10/gptcurses.cc:354:9: style: The scope of the variable 'temp' can be reduced. [variableScope] gptfdisk-1.0.10/gptcurses.cc:612:13: style: The scope of the variable 'i' can be reduced. [variableScope] gptfdisk-1.0.10/gptcurses.cc:612:16: style: The scope of the variable 'j' can be reduced. [variableScope] gptfdisk-1.0.10/gptcurses.cc:612:23: style: The scope of the variable 'firstLine' can be reduced. [variableScope] gptfdisk-1.0.10/gptcurses.cc:612:34: style: The scope of the variable 'numPerLine' can be reduced. [variableScope] gptfdisk-1.0.10/gptcurses.cc:613:11: style: The scope of the variable 'optionName' can be reduced. [variableScope] gptfdisk-1.0.10/gptcurses.cc:613:23: style: The scope of the variable 'optionDesc' can be reduced. [variableScope] gptfdisk-1.0.10/gptcurses.cc:656:8: style: The scope of the variable 'inputKey' can be reduced. [variableScope] gptfdisk-1.0.10/gptcurses.cc:812:20: performance: Function parameter 'theText' should be passed by const reference. [passedByValue] gptfdisk-1.0.10/gptcurses.cc:189:22: style: Variable 'oldLast' can be declared as pointer to const [constVariablePointer] gptfdisk-1.0.10/gptcurses.cc:612:18: style: Variable 'j' is assigned a value that is never used. [unreadVariable] gptfdisk-1.0.10/gptpart.cc:304:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/gptpart.cc:371:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/gptpart.cc:444:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/gptpart.cc:41:4: performance: Variable 'partitionType' is assigned in constructor body. Consider performing initialization in initialization list. [useInitializationList] gptfdisk-1.0.10/gptpart.cc:42:4: performance: Variable 'uniqueGUID' is assigned in constructor body. Consider performing initialization in initialization list. [useInitializationList] gptfdisk-1.0.10/gptpart.cc:45:4: performance: Variable 'attributes' is assigned in constructor body. Consider performing initialization in initialization list. [useInitializationList] gptfdisk-1.0.10/gptpart.h:60:19: style:inconclusive: Technically the member function 'GPTPart::GetTypeName' can be const. [functionConst] gptfdisk-1.0.10/gptpart.cc:59:17: note: Technically the member function 'GPTPart::GetTypeName' can be const. gptfdisk-1.0.10/gptpart.h:60:19: note: Technically the member function 'GPTPart::GetTypeName' can be const. gptfdisk-1.0.10/gptpart.h:68:21: style:inconclusive: Technically the member function 'GPTPart::GetDescription' can be const. [functionConst] gptfdisk-1.0.10/gptpart.cc:88:17: note: Technically the member function 'GPTPart::GetDescription' can be const. gptfdisk-1.0.10/gptpart.h:68:21: note: Technically the member function 'GPTPart::GetDescription' can be const. gptfdisk-1.0.10/gptpart.h:69:11: style:inconclusive: Technically the member function 'GPTPart::IsUsed' can be const. [functionConst] gptfdisk-1.0.10/gptpart.cc:144:14: note: Technically the member function 'GPTPart::IsUsed' can be const. gptfdisk-1.0.10/gptpart.h:69:11: note: Technically the member function 'GPTPart::IsUsed' can be const. gptfdisk-1.0.10/gptpart.h:70:11: style:inconclusive: Technically the member function 'GPTPart::IsSizedForMBR' can be const. [functionConst] gptfdisk-1.0.10/gptpart.cc:150:14: note: Technically the member function 'GPTPart::IsSizedForMBR' can be const. gptfdisk-1.0.10/gptpart.h:70:11: note: Technically the member function 'GPTPart::IsSizedForMBR' can be const. gptfdisk-1.0.10/gptpart.h:93:11: style:inconclusive: Technically the member function 'GPTPart::DoTheyOverlap' can be const. [functionConst] gptfdisk-1.0.10/gptpart.cc:404:14: note: Technically the member function 'GPTPart::DoTheyOverlap' can be const. gptfdisk-1.0.10/gptpart.h:93:11: note: Technically the member function 'GPTPart::DoTheyOverlap' can be const. gptfdisk-1.0.10/gptpart.cc:296:11: style: The scope of the variable 'sizeInIeee' can be reduced. [variableScope] gptfdisk-1.0.10/gptpart.cc:298:11: style: The scope of the variable 'i' can be reduced. [variableScope] gptfdisk-1.0.10/gptpart.cc:368:13: style: The scope of the variable 'size' can be reduced. [variableScope] gptfdisk-1.0.10/gptpart.cc:324:14: style: Local variable 'i' shadows outer variable [shadowVariable] gptfdisk-1.0.10/gptpart.cc:298:11: note: Shadowed declaration gptfdisk-1.0.10/gptpart.cc:324:14: note: Shadow variable gptfdisk-1.0.10/gptpart.cc:448:16: warning: Either the condition 'line.length()==0' is redundant or expression 'line[0]' causes access out of bounds. [containerOutOfBounds] gptfdisk-1.0.10/gptpart.cc:451:28: note: Assuming that condition 'line.length()==0' is not redundant gptfdisk-1.0.10/gptpart.cc:448:16: note: Access out of bounds gptfdisk-1.0.10/gptpart.cc:297:18: style: Unused variable: description [unusedVariable] gptfdisk-1.0.10/gpttext.cc:76:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/gpttext.cc:126:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/gpttext.cc:165:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/gpttext.cc:191:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/gpttext.cc:209:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/gpttext.cc:247:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/gpttext.cc:298:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/gpttext.cc:311:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/gpttext.cc:324:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/gpttext.cc:351:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/gpttext.cc:372:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/gpttext.cc:402:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/gpttext.cc:413:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/gpttext.cc:446:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/gpttext.cc:461:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/gpttext.cc:586:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/gpttext.cc:607:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/gpttext.cc:629:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/gpttext.cc:700:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/gpttext.cc:725:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/gpttext.cc:820:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/gpttext.cc:851:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/gpttext.cc:964:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/gpttext.cc:1008:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable uppercase [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/gpttext.h:57:16: style:inconclusive: Technically the member function 'GPTDataTextUI::GetSectorNum' can be const. [functionConst] gptfdisk-1.0.10/gpttext.cc:580:25: note: Technically the member function 'GPTDataTextUI::GetSectorNum' can be const. gptfdisk-1.0.10/gpttext.h:57:16: note: Technically the member function 'GPTDataTextUI::GetSectorNum' can be const. gptfdisk-1.0.10/gpttext.h:60:12: performance:inconclusive: Technically the member function 'GPTDataTextUI::WarnAboutIffyMBRPart' can be static (but you may consider moving to unnamed namespace). [functionStatic] gptfdisk-1.0.10/gpttext.cc:606:21: note: Technically the member function 'GPTDataTextUI::WarnAboutIffyMBRPart' can be static (but you may consider moving to unnamed namespace). gptfdisk-1.0.10/gpttext.h:60:12: note: Technically the member function 'GPTDataTextUI::WarnAboutIffyMBRPart' can be static (but you may consider moving to unnamed namespace). gptfdisk-1.0.10/gpttext.h:64:12: performance:inconclusive: Technically the member function 'GPTDataTextUI::ShowCommands' can be static (but you may consider moving to unnamed namespace). [functionStatic] gptfdisk-1.0.10/gpttext.cc:699:21: note: Technically the member function 'GPTDataTextUI::ShowCommands' can be static (but you may consider moving to unnamed namespace). gptfdisk-1.0.10/gpttext.h:64:12: note: Technically the member function 'GPTDataTextUI::ShowCommands' can be static (but you may consider moving to unnamed namespace). gptfdisk-1.0.10/gpttext.h:66:12: performance:inconclusive: Technically the member function 'GPTDataTextUI::ShowExpertCommands' can be static (but you may consider moving to unnamed namespace). [functionStatic] gptfdisk-1.0.10/gpttext.cc:963:21: note: Technically the member function 'GPTDataTextUI::ShowExpertCommands' can be static (but you may consider moving to unnamed namespace). gptfdisk-1.0.10/gpttext.h:66:12: note: Technically the member function 'GPTDataTextUI::ShowExpertCommands' can be static (but you may consider moving to unnamed namespace). gptfdisk-1.0.10/gpttext.h:68:12: performance:inconclusive: Technically the member function 'GPTDataTextUI::ShowRecoveryCommands' can be static (but you may consider moving to unnamed namespace). [functionStatic] gptfdisk-1.0.10/gpttext.cc:819:21: note: Technically the member function 'GPTDataTextUI::ShowRecoveryCommands' can be static (but you may consider moving to unnamed namespace). gptfdisk-1.0.10/gpttext.h:68:12: note: Technically the member function 'GPTDataTextUI::ShowRecoveryCommands' can be static (but you may consider moving to unnamed namespace). gptfdisk-1.0.10/gpttext.cc:224:41: style: The scope of the variable 'lastBlock' can be reduced. [variableScope] gptfdisk-1.0.10/gpttext.cc:224:60: style: The scope of the variable 'origSector' can be reduced. [variableScope] gptfdisk-1.0.10/gpttext.cc:224:72: style: The scope of the variable 'lastAligned' can be reduced. [variableScope] gptfdisk-1.0.10/gpttext.cc:227:8: style: The scope of the variable 'partNum' can be reduced. [variableScope] gptfdisk-1.0.10/gpttext.cc:289:8: style: The scope of the variable 'partNum' can be reduced. [variableScope] gptfdisk-1.0.10/gpttext.cc:304:8: style: The scope of the variable 'partNum' can be reduced. [variableScope] gptfdisk-1.0.10/gpttext.cc:318:8: style: The scope of the variable 'partNum' can be reduced. [variableScope] gptfdisk-1.0.10/gpttext.cc:320:11: style: The scope of the variable 'guidStr' can be reduced. [variableScope] gptfdisk-1.0.10/gpttext.cc:347:18: style: The scope of the variable 'theName' can be reduced. [variableScope] gptfdisk-1.0.10/gpttext.cc:388:8: style: The scope of the variable 'partNum1' can be reduced. [variableScope] gptfdisk-1.0.10/gpttext.cc:388:18: style: The scope of the variable 'partNum2' can be reduced. [variableScope] gptfdisk-1.0.10/gpttext.cc:439:8: style: The scope of the variable 'partNum' can be reduced. [variableScope] gptfdisk-1.0.10/gpttext.cc:455:48: style: The scope of the variable 'j' can be reduced. [variableScope] gptfdisk-1.0.10/gpttext.cc:456:17: style: The scope of the variable 'hexCode' can be reduced. [variableScope] gptfdisk-1.0.10/gpttext.cc:1005:11: style: The scope of the variable 'line' can be reduced. [variableScope] gptfdisk-1.0.10/gpttext.cc:46:37: performance: Function parameter 'filename' should be passed by const reference. [passedByValue] gptfdisk-1.0.10/gpttext.cc:623:37: performance: Function parameter 'filename' should be passed by const reference. [passedByValue] gptfdisk-1.0.10/gpttext.cc:720:41: performance: Function parameter 'filename' should be passed by const reference. [passedByValue] gptfdisk-1.0.10/gpttext.cc:842:40: performance: Function parameter 'filename' should be passed by const reference. [passedByValue] gptfdisk-1.0.10/gpttext.cc:347:26: style: Variable 'theName' is assigned a value that is never used. [unreadVariable] gptfdisk-1.0.10/gpttext.cc:456:25: style: Variable 'hexCode' is assigned a value that is never used. [unreadVariable] gptfdisk-1.0.10/guid.cc:160:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cerr [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/guid.h:40:19: performance:inconclusive: Technically the member function 'GUIDData::DeleteSpaces' can be static (but you may consider moving to unnamed namespace). [functionStatic] gptfdisk-1.0.10/guid.cc:192:18: note: Technically the member function 'GUIDData::DeleteSpaces' can be static (but you may consider moving to unnamed namespace). gptfdisk-1.0.10/guid.h:40:19: note: Technically the member function 'GUIDData::DeleteSpaces' can be static (but you may consider moving to unnamed namespace). gptfdisk-1.0.10/guid.cc:159:8: style: Condition '!uuidGenerated' is always true [knownConditionTrueFalse] gptfdisk-1.0.10/guid.cc:142:27: note: Assignment 'uuidGenerated=0', assigned value is 0 gptfdisk-1.0.10/guid.cc:159:8: note: Condition '!uuidGenerated' is always true gptfdisk-1.0.10/guid.cc:68:11: style: The scope of the variable 'len' can be reduced. [variableScope] gptfdisk-1.0.10/guid.cc:72:12: style: The scope of the variable 'segStart' can be reduced. [variableScope] gptfdisk-1.0.10/guid.cc:142:8: style: The scope of the variable 'i' can be reduced. [variableScope] gptfdisk-1.0.10/guid.cc:193:11: style: The scope of the variable 'position' can be reduced. [variableScope] gptfdisk-1.0.10/guid.cc:72:12: style: Variable 'segStart' can be declared as pointer to const [constVariablePointer] gptfdisk-1.0.10/guid.cc:67:17: style: Unused variable: fragment [unusedVariable] gptfdisk-1.0.10/mbr.cc:35:20: warning: The class 'MBRData' defines member function with name 'operator=' also defined in its parent class 'BasicMBRData'. [duplInheritedMember] gptfdisk-1.0.10/basicmbr.h:66:19: note: Parent function 'BasicMBRData::operator=' gptfdisk-1.0.10/mbr.cc:35:20: note: Derived function 'MBRData::operator=' gptfdisk-1.0.10/mbr.cc:107:13: style: The scope of the variable 'start32' can be reduced. [variableScope] gptfdisk-1.0.10/mbr.cc:107:22: style: The scope of the variable 'length32' can be reduced. [variableScope] gptfdisk-1.0.10/mbr.cc:108:8: style: The scope of the variable 'i' can be reduced. [variableScope] gptfdisk-1.0.10/mbr.cc:136:12: style: The scope of the variable 'origType' can be reduced. [variableScope] gptfdisk-1.0.10/mbr.cc:137:13: style: The scope of the variable 'firstSector' can be reduced. [variableScope] gptfdisk-1.0.10/mbr.cc:137:26: style: The scope of the variable 'lastSector' can be reduced. [variableScope] gptfdisk-1.0.10/mbrpart.cc:161:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cerr [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/mbrpart.cc:168:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cerr [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/mbrpart.cc:180:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cerr [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/mbrpart.cc:325:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/mbrpart.h:79:10: performance:inconclusive: Technically the member function 'MBRPart::SetGeometry' can be static (but you may consider moving to unnamed namespace). [functionStatic] gptfdisk-1.0.10/mbrpart.cc:124:15: note: Technically the member function 'MBRPart::SetGeometry' can be static (but you may consider moving to unnamed namespace). gptfdisk-1.0.10/mbrpart.h:79:10: note: Technically the member function 'MBRPart::SetGeometry' can be static (but you may consider moving to unnamed namespace). gptfdisk-1.0.10/mbrpart.h:89:10: style:inconclusive: Technically the member function 'MBRPart::StoreInStruct' can be const. [functionConst] gptfdisk-1.0.10/mbrpart.cc:199:15: note: Technically the member function 'MBRPart::StoreInStruct' can be const. gptfdisk-1.0.10/mbrpart.h:89:10: note: Technically the member function 'MBRPart::StoreInStruct' can be const. gptfdisk-1.0.10/mbrpart.h:100:9: style:inconclusive: Technically the member function 'MBRPart::DoTheyOverlap' can be const. [functionConst] gptfdisk-1.0.10/mbrpart.cc:230:14: note: Technically the member function 'MBRPart::DoTheyOverlap' can be const. gptfdisk-1.0.10/mbrpart.h:100:9: note: Technically the member function 'MBRPart::DoTheyOverlap' can be const. gptfdisk-1.0.10/mbrpart.h:104:9: performance:inconclusive: Technically the member function 'MBRPart::LBAtoCHS' can be static (but you may consider moving to unnamed namespace). [functionStatic] gptfdisk-1.0.10/mbrpart.cc:258:14: note: Technically the member function 'MBRPart::LBAtoCHS' can be static (but you may consider moving to unnamed namespace). gptfdisk-1.0.10/mbrpart.h:104:9: note: Technically the member function 'MBRPart::LBAtoCHS' can be static (but you may consider moving to unnamed namespace). gptfdisk-1.0.10/mbrpart.h:74:22: style: Virtual function 'operator=' is called from copy constructor 'MBRPart(const MBRPart&other)' at line 62. Dynamic binding is not used. [virtualCallInConstructor] gptfdisk-1.0.10/mbrpart.cc:62:4: note: Calling operator= gptfdisk-1.0.10/mbrpart.h:74:22: note: operator= is a virtual function gptfdisk-1.0.10/mbrpart.cc:259:13: style: The scope of the variable 'cylinder' can be reduced. [variableScope] gptfdisk-1.0.10/mbrpart.cc:259:23: style: The scope of the variable 'head' can be reduced. [variableScope] gptfdisk-1.0.10/mbrpart.cc:259:29: style: The scope of the variable 'sector' can be reduced. [variableScope] gptfdisk-1.0.10/mbrpart.cc:260:13: style: The scope of the variable 'remainder' can be reduced. [variableScope] gptfdisk-1.0.10/mbrpart.cc:262:8: style: The scope of the variable 'done' can be reduced. [variableScope] gptfdisk-1.0.10/mbrpart.cc:60:33: style:inconclusive: Function 'MBRPart' argument 1 names different: declaration 'other' definition 'orig'. [funcArgNamesDifferent] gptfdisk-1.0.10/mbrpart.h:72:28: note: Function 'MBRPart' argument 1 names different: declaration 'other' definition 'orig'. gptfdisk-1.0.10/mbrpart.cc:60:33: note: Function 'MBRPart' argument 1 names different: declaration 'other' definition 'orig'. gptfdisk-1.0.10/mbrpart.cc:159:36: style:inconclusive: Function 'SetStartLBA' argument 1 names different: declaration 's' definition 'start'. [funcArgNamesDifferent] gptfdisk-1.0.10/mbrpart.h:81:31: note: Function 'SetStartLBA' argument 1 names different: declaration 's' definition 'start'. gptfdisk-1.0.10/mbrpart.cc:159:36: note: Function 'SetStartLBA' argument 1 names different: declaration 's' definition 'start'. gptfdisk-1.0.10/mbrpart.cc:166:37: style:inconclusive: Function 'SetLengthLBA' argument 1 names different: declaration 'l' definition 'length'. [funcArgNamesDifferent] gptfdisk-1.0.10/mbrpart.h:82:32: note: Function 'SetLengthLBA' argument 1 names different: declaration 'l' definition 'length'. gptfdisk-1.0.10/mbrpart.cc:166:37: note: Function 'SetLengthLBA' argument 1 names different: declaration 'l' definition 'length'. gptfdisk-1.0.10/parttypes.cc:556:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cerr [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/parttypes.cc:603:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable uppercase [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/parttypes.cc:695:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable uppercase [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/parttypes.h:46:8: performance:inconclusive: Technically the member function 'PartType::AddType' can be static (but you may consider moving to unnamed namespace). [functionStatic] gptfdisk-1.0.10/parttypes.cc:537:15: note: Technically the member function 'PartType::AddType' can be static (but you may consider moving to unnamed namespace). gptfdisk-1.0.10/parttypes.h:46:8: note: Technically the member function 'PartType::AddType' can be static (but you may consider moving to unnamed namespace). gptfdisk-1.0.10/parttypes.h:64:9: performance:inconclusive: Technically the member function 'PartType::ShowAllTypes' can be static (but you may consider moving to unnamed namespace). [functionStatic] gptfdisk-1.0.10/parttypes.cc:688:16: note: Technically the member function 'PartType::ShowAllTypes' can be static (but you may consider moving to unnamed namespace). gptfdisk-1.0.10/parttypes.h:64:9: note: Technically the member function 'PartType::ShowAllTypes' can be static (but you may consider moving to unnamed namespace). gptfdisk-1.0.10/parttypes.h:65:8: performance:inconclusive: Technically the member function 'PartType::Valid' can be static (but you may consider moving to unnamed namespace). [functionStatic] gptfdisk-1.0.10/parttypes.cc:731:15: note: Technically the member function 'PartType::Valid' can be static (but you may consider moving to unnamed namespace). gptfdisk-1.0.10/parttypes.h:65:8: note: Technically the member function 'PartType::Valid' can be static (but you may consider moving to unnamed namespace). gptfdisk-1.0.10/parttypes.cc:567:22: warning: The class 'PartType' defines member function with name 'operator=' also defined in its parent class 'GUIDData'. [duplInheritedMember] gptfdisk-1.0.10/guid.h:50:18: note: Parent function 'GUIDData::operator=' gptfdisk-1.0.10/parttypes.cc:567:22: note: Derived function 'PartType::operator=' gptfdisk-1.0.10/parttypes.cc:582:22: warning: The class 'PartType' defines member function with name 'operator=' also defined in its parent class 'GUIDData'. [duplInheritedMember] gptfdisk-1.0.10/guid.h:51:18: note: Parent function 'GUIDData::operator=' gptfdisk-1.0.10/parttypes.cc:582:22: note: Derived function 'PartType::operator=' gptfdisk-1.0.10/parttypes.cc:59:11: style: The scope of the variable 'tempType' can be reduced. [variableScope] gptfdisk-1.0.10/parttypes.cc:693:11: style: The scope of the variable 'found' can be reduced. [variableScope] gptfdisk-1.0.10/support.cc:62:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/support.cc:81:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/support.cc:107:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/support.cc:144:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cerr [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/support.cc:333:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cerr [valueFlowBailoutIncompleteVar] gptfdisk-1.0.10/support.cc:0:0: debug: ValueFlow maximum iterations exceeded [valueFlowMaxIterations] gptfdisk-1.0.10/support.cc:330:11: style: C-style pointer casting [cstyleCast] gptfdisk-1.0.10/support.cc:76:23: style: The scope of the variable 'num' can be reduced. [variableScope] gptfdisk-1.0.10/support.cc:77:9: style: The scope of the variable 'line' can be reduced. [variableScope] gptfdisk-1.0.10/support.cc:103:11: style: The scope of the variable 'line' can be reduced. [variableScope] gptfdisk-1.0.10/support.cc:136:29: style: The scope of the variable 'bytesPerUnit' can be reduced. [variableScope] gptfdisk-1.0.10/support.cc:239:10: style: The scope of the variable 'decimalIeee' can be reduced. [variableScope] gptfdisk-1.0.10/support.cc:241:11: style: The scope of the variable 'units' can be reduced. [variableScope] gptfdisk-1.0.10/support.cc:324:8: style: The scope of the variable 'i' can be reduced. [variableScope] gptfdisk-1.0.10/support.cc:135:27: style:inconclusive: Function 'IeeeToInt' argument 1 names different: declaration 'IeeeValue' definition 'inValue'. [funcArgNamesDifferent] gptfdisk-1.0.10/support.h:75:32: note: Function 'IeeeToInt' argument 1 names different: declaration 'IeeeValue' definition 'inValue'. gptfdisk-1.0.10/support.cc:135:27: note: Function 'IeeeToInt' argument 1 names different: declaration 'IeeeValue' definition 'inValue'. gptfdisk-1.0.10/support.cc:176:14: style: Variable 'suffix' is assigned a value that is never used. [unreadVariable] diff: DONE