2026-03-26 15:40 ftp://ftp.de.debian.org/debian/pool/main/z/zpaq/zpaq_7.15+repack.orig.tar.xz cppcheck-options: --library=posix --library=gnu --library=bsd --inconclusive --enable=style,information --inline-suppr --template=daca2 --disable=missingInclude --suppress=unmatchedSuppression --check-library --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning --suppress=normalCheckLevelConditionExpressions -D__GNUC__ --platform=unix64 -j6 platform: Linux-6.18.15+deb14-amd64-x86_64-with-glibc2.42 python: 3.13.12 client-version: 1.3.70 compiler: g++ (Debian 15.2.0-16) 15.2.0 cppcheck: head 2.20.0 head-info: 6c25934c (2026-03-26 09:00:39 +0100) count: 382 381 elapsed-time: 16.9 6.8 head-timing-info: old-timing-info: head results: libzpaq.h:1155:0: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable error [valueFlowBailoutIncompleteVar] zpaq.cpp:210:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INFINITE [valueFlowBailoutIncompleteVar] zpaq.cpp:213:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INFINITE [valueFlowBailoutIncompleteVar] zpaq.cpp:223:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INFINITE [valueFlowBailoutIncompleteVar] zpaq.cpp:280:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FILE_TYPE_CHAR [valueFlowBailoutIncompleteVar] zpaq.cpp:396:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GENERIC_READ [valueFlowBailoutIncompleteVar] zpaq.cpp:408:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] zpaq.cpp:430:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FILE_BEGIN [valueFlowBailoutIncompleteVar] zpaq.cpp:441:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FILE_CURRENT [valueFlowBailoutIncompleteVar] zpaq.cpp:457:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INVALID_FILE_ATTRIBUTES [valueFlowBailoutIncompleteVar] zpaq.cpp:481:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] zpaq.cpp:523:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FILE_SHARE_WRITE [valueFlowBailoutIncompleteVar] zpaq.cpp:580:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GENERIC_READ [valueFlowBailoutIncompleteVar] zpaq.cpp:1299:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] zpaq.cpp:1366:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] zpaq.cpp:1751:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INVALID_HANDLE_VALUE [valueFlowBailoutIncompleteVar] zpaq.cpp:1827:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] zpaq.cpp:1959:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] zpaq.cpp:2012:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] zpaq.cpp:2130:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] zpaq.cpp:2871:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] zpaq.cpp:3231:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] zpaq.cpp:3588:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable data [valueFlowBailoutIncompleteVar] zpaq.cpp:3728:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] libzpaq.cpp:77:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MEM_RELEASE [valueFlowBailoutIncompleteVar] libzpaq.cpp:699:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libzpaq.cpp:2719:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable compsize [valueFlowBailoutIncompleteVar] libzpaq.cpp:6510:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BUFSIZE [valueFlowBailoutIncompleteVar] libzpaq.cpp:6517:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BUFSIZE [valueFlowBailoutIncompleteVar] libzpaq.cpp:6524:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BUFSIZE [valueFlowBailoutIncompleteVar] libzpaq.cpp:6665:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BUFSIZE [valueFlowBailoutIncompleteVar] libzpaq.cpp:6860:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BUFSIZE [valueFlowBailoutIncompleteVar] zpaq.cpp:372:21: warning: Either the condition 'date<=0' is redundant or the array 'days[12]' is accessed at index -1, which is out of bounds. [negativeIndex] zpaq.cpp:364:11: note: Assuming that condition 'date<=0' is not redundant zpaq.cpp:367:41: note: Assignment 'month=(date/100000000%100-1)%12', assigned value is -1 zpaq.cpp:372:21: note: Negative array index zpaq.cpp:2453:17: style: Array index 'i' is used before limits check. [arrayIndexThenCheck] zpaq.cpp:1194:9: portability: Non reentrant function 'gmtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'gmtime_r'. [prohibitedgmtimeCalled] libzpaq.h:1342:3: warning: Member variable 'Compressor::sha1result' is not initialized in the constructor. [uninitMemberVar] libzpaq.h:1377:1: style: The class 'StringBuffer' does not declare a constructor although it has private member variables which likely require initialization. [noConstructor] zpaq.cpp:1015:1: style: The class 'Jidac' does not declare a constructor although it has private member variables which likely require initialization. [noConstructor] zpaq.cpp:1848:3: warning: Member variable 'CJ::in' is not initialized in the constructor. [uninitMemberVar] zpaq.cpp:1848:3: warning: Member variable 'CJ::out' is not initialized in the constructor. [uninitMemberVar] libzpaq.h:1101:7: style:inconclusive: Technically the member function 'libzpaq::StateTable::next' can be const. [functionConst] libzpaq.h:1106:7: style:inconclusive: Technically the member function 'libzpaq::StateTable::cminit' can be const. [functionConst] libzpaq.h:1151:8: style:inconclusive: Technically the member function 'libzpaq::Predictor::train' can be const. [functionConst] libzpaq.h:1174:7: style: The member function 'libzpaq::Predictor::clamp2k' can be static. [functionStatic] libzpaq.h:1181:7: style: The member function 'libzpaq::Predictor::clamp512k' can be static. [functionStatic] libzpaq.h:1213:7: style:inconclusive: Technically the member function 'libzpaq::Decoder::buffered' can be const. [functionConst] libzpaq.h:1359:11: style:inconclusive: Technically the member function 'libzpaq::Compressor::getSize' can be const. [functionConst] zpaq.cpp:627:8: style:inconclusive: Technically the member function 'ArchiveBase::isopen' can be const. [functionConst] zpaq.cpp:664:11: style:inconclusive: Technically the member function 'InputArchive::tell' can be const. [functionConst] zpaq.cpp:2717:13: style:inconclusive: Technically the member function 'Jidac::equal' can be const. [functionConst] zpaq.cpp:1071:8: note: Technically the member function 'Jidac::equal' can be const. zpaq.cpp:2717:13: note: Technically the member function 'Jidac::equal' can be const. zpaq.cpp:2038:12: style:inconclusive: Technically the member function 'HTIndex::hash' can be const. [functionConst] zpaq.cpp:624:21: warning: Class 'ArchiveBase' does not have a copy constructor which is recommended since it has dynamic memory/resource management. [noCopyConstructor] zpaq.cpp:624:21: warning: Class 'ArchiveBase' does not have a operator= which is recommended since it has dynamic memory/resource management. [noOperatorEq] zpaq.cpp:1868:5: warning: Class 'CompressJob' does not have a copy constructor which is recommended since it has dynamic memory/resource management. [noCopyConstructor] zpaq.cpp:1868:5: warning: Class 'CompressJob' does not have a operator= which is recommended since it has dynamic memory/resource management. [noOperatorEq] libzpaq.h:1118:3: style: Class 'Predictor' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] libzpaq.h:1200:3: style: Class 'Decoder' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] libzpaq.h:1275:3: style: Class 'Encoder' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] libzpaq.h:1324:5: style: Class 'Stack' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] zpaq.cpp:638:3: style: Class 'InputArchive' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] zpaq.cpp:747:3: style: Class 'OutputArchive' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] zpaq.cpp:957:3: style: Struct 'HT' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] zpaq.cpp:2784:3: style: Struct 'ExtractJob' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] zpaq.cpp:3078:3: style: Struct 'OutputFile' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] libzpaq.h:895:3: style: Class 'Array < uint8_t >' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] libzpaq.h:895:3: style: Class 'Array < uint32_t >' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] libzpaq.h:895:3: style: Class 'Array < char >' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] libzpaq.h:895:3: style: Class 'Array < uint16_t >' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] libzpaq.h:895:3: style: Class 'Array < unsigned int >' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] libzpaq.h:895:3: style: Class 'Array < const char * >' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] libzpaq.h:1205:7: style: The function 'get' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] libzpaq.h:866:15: note: Virtual function in base class libzpaq.h:1205:7: note: Function in derived class libzpaq.h:1439:8: style: The function 'put' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] libzpaq.h:873:16: note: Virtual function in base class libzpaq.h:1439:8: note: Function in derived class libzpaq.h:1448:8: style: The function 'write' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] libzpaq.h:874:16: note: Virtual function in base class libzpaq.h:1448:8: note: Function in derived class libzpaq.h:1458:7: style: The function 'get' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] libzpaq.h:866:15: note: Virtual function in base class libzpaq.h:1458:7: note: Function in derived class libzpaq.h:1467:7: style: The function 'read' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] libzpaq.h:867:15: note: Virtual function in base class libzpaq.h:1467:7: note: Function in derived class zpaq.cpp:641:7: style: The function 'get' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] libzpaq.h:866:15: note: Virtual function in base class zpaq.cpp:641:7: note: Function in derived class zpaq.cpp:648:7: style: The function 'read' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] libzpaq.h:867:15: note: Virtual function in base class zpaq.cpp:648:7: note: Function in derived class zpaq.cpp:775:8: style: The function 'put' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] libzpaq.h:873:16: note: Virtual function in base class zpaq.cpp:775:8: note: Function in derived class zpaq.cpp:784:8: style: The function 'write' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] libzpaq.h:874:16: note: Virtual function in base class zpaq.cpp:784:8: note: Function in derived class zpaq.cpp:890:8: style: The function 'put' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] libzpaq.h:873:16: note: Virtual function in base class zpaq.cpp:890:8: note: Function in derived class zpaq.cpp:2093:8: style: The function 'put' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] libzpaq.h:873:16: note: Virtual function in base class zpaq.cpp:2093:8: note: Function in derived class zpaq.cpp:2097:8: style: The function 'write' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] libzpaq.h:874:16: note: Virtual function in base class zpaq.cpp:2097:8: note: Function in derived class zpaq.cpp:3073:8: style: The function 'put' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] libzpaq.h:873:16: note: Virtual function in base class zpaq.cpp:3073:8: note: Function in derived class zpaq.cpp:3077:8: style: The function 'write' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] libzpaq.h:874:16: note: Virtual function in base class zpaq.cpp:3077:8: note: Function in derived class zpaq.cpp:3139:13: style: The if condition is the same as the previous if condition [duplicateCondition] zpaq.cpp:3137:13: note: First condition zpaq.cpp:3139:13: note: Second condition zpaq.cpp:1477:22: style: Condition 'jmp<0' is always false [knownConditionTrueFalse] zpaq.cpp:1476:31: note: Calling function 'btol' returns !<=-1 zpaq.cpp:1477:22: note: Condition 'jmp<0' is always false zpaq.cpp:2742:52: style: Return value 'fclose(in),false' is always false [knownConditionTrueFalse] zpaq.cpp:2751:64: style: Return value 'fclose(in),false' is always false [knownConditionTrueFalse] zpaq.cpp:2756:34: style: Return value 'fclose(in),false' is always false [knownConditionTrueFalse] zpaq.cpp:2760:68: style: Return value 'fclose(in),false' is always false [knownConditionTrueFalse] zpaq.cpp:2762:55: style: Return value 'fclose(in),false' is always false [knownConditionTrueFalse] libzpaq.h:923:9: style: Condition 'nb<=128' is always false [knownConditionTrueFalse] libzpaq.h:920:9: note: Assuming that condition 'sz==0' is not redundant libzpaq.h:921:5: note: Assignment 'n=sz', assigned value is greater than 0 libzpaq.h:922:22: note: Assignment 'nb=128+n*sizeof(uint8_t)', assigned value is greater than 128 libzpaq.h:923:9: note: Condition 'nb<=128' is always false libzpaq.h:923:9: style: Condition 'nb<=128' is always false [knownConditionTrueFalse] libzpaq.h:920:9: note: Assuming that condition 'sz==0' is not redundant libzpaq.h:921:5: note: Assignment 'n=sz', assigned value is greater than 0 libzpaq.h:922:22: note: Assignment 'nb=128+n*sizeof(char)', assigned value is greater than 128 libzpaq.h:923:9: note: Condition 'nb<=128' is always false libzpaq.h:898:13: error: Unhandled exception thrown in function declared not to throw exceptions. [throwInNoexceptFunction] zpaq.cpp:2863:11: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] zpaq.cpp:2863:11: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] zpaq.cpp:2872:9: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] zpaq.cpp:2872:9: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] zpaq.cpp:2872:9: warning: %d in format string (no. 4) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] zpaq.cpp:3489:9: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] zpaq.cpp:3489:9: warning: %u in format string (no. 2) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] zpaq.cpp:3632:13: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] zpaq.cpp:3677:3: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] zpaq.cpp:3685:5: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] zpaq.cpp:3687:5: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] zpaq.cpp:3687:5: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] zpaq.cpp:3687:5: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] zpaq.cpp:3687:5: warning: %d in format string (no. 4) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] zpaq.cpp:3691:5: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] libzpaq.h:1390:16: style: C-style pointer casting [cstyleCast] zpaq.cpp:257:26: style: C-style pointer casting [cstyleCast] zpaq.cpp:1919:21: style: C-style pointer casting [cstyleCast] zpaq.cpp:1969:21: style: C-style pointer casting [cstyleCast] zpaq.cpp:2070:25: style: C-style pointer casting [cstyleCast] zpaq.cpp:2595:18: style: C-style pointer casting [cstyleCast] zpaq.cpp:2797:20: style: C-style pointer casting [cstyleCast] zpaq.cpp:3314:20: style: C-style pointer casting [cstyleCast] libzpaq.h:915:12: style: C-style pointer casting [cstyleCast] libzpaq.h:916:12: style: C-style pointer casting [cstyleCast] libzpaq.h:926:15: style: C-style pointer casting [cstyleCast] libzpaq.h:928:13: style: C-style pointer casting [cstyleCast] zpaq.cpp:2039:14: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] libzpaq.h:915:12: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] libzpaq.h:916:12: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] libzpaq.h:926:15: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] libzpaq.h:928:8: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] libzpaq.h:928:13: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] zpaq.cpp:1267:11: style: The scope of the variable 'digits' can be reduced. [variableScope] zpaq.cpp:1899:17: style: The scope of the variable 'j' can be reduced. [variableScope] zpaq.cpp:1969:16: style: The scope of the variable 'job' can be reduced. [variableScope] zpaq.cpp:2146:9: style: The scope of the variable 'parts' can be reduced. [variableScope] zpaq.cpp:3382:16: style: The scope of the variable 'b' can be reduced. [variableScope] libzpaq.h:1330:14: style: Checking if unsigned expression 'top' is less than zero. [unsignedLessThanZero] zpaq.cpp:3251:20: style: Unsigned expression 'lo' can't be negative so it is unnecessary to test it. [unsignedPositive] zpaq.cpp:1894:54: style:inconclusive: Function 'write' argument 2 names different: declaration 'filename' definition 'fn'. [funcArgNamesDifferent] zpaq.cpp:1888:43: note: Function 'write' argument 2 names different: declaration 'filename' definition 'fn'. zpaq.cpp:1894:54: note: Function 'write' argument 2 names different: declaration 'filename' definition 'fn'. libzpaq.h:1155:9: style: Local variable 'error' shadows outer function [shadowFunction] libzpaq.h:858:13: note: Shadowed declaration libzpaq.h:1155:9: note: Shadow variable zpaq.cpp:1360:12: style: Local variable 'files' shadows outer variable [shadowVariable] zpaq.cpp:1026:18: note: Shadowed declaration zpaq.cpp:1360:12: note: Shadow variable zpaq.cpp:1524:29: style: Local variable 'i' shadows outer variable [shadowVariable] zpaq.cpp:1434:22: note: Shadowed declaration zpaq.cpp:1524:29: note: Shadow variable zpaq.cpp:1568:33: style: Local variable 'i' shadows outer variable [shadowVariable] zpaq.cpp:1434:22: note: Shadowed declaration zpaq.cpp:1568:33: note: Shadow variable zpaq.cpp:1575:33: style: Local variable 'i' shadows outer variable [shadowVariable] zpaq.cpp:1434:22: note: Shadowed declaration zpaq.cpp:1575:33: note: Shadow variable zpaq.cpp:2439:36: style: Local variable 'dt' shadows outer variable [shadowVariable] zpaq.cpp:1052:9: note: Shadowed declaration zpaq.cpp:2439:36: note: Shadow variable zpaq.cpp:1703:28: performance: Function parameter 'filename' should be passed by const reference. [passedByValue] zpaq.cpp:1803:28: performance: Function parameter 'filename' should be passed by const reference. [passedByValue] zpaq.cpp:1894:65: performance: Function parameter 'method' should be passed by const reference. [passedByValue] zpaq.cpp:1194:7: style: Variable 't' can be declared as pointer to const [constVariablePointer] zpaq.cpp:2063:10: style: Variable 'zero' can be declared as const array [constVariable] zpaq.cpp:1419:13: performance: Assigning the result of c_str() to a std::string is slow and redundant. [stlcstrAssignment] zpaq.cpp:2109:29: performance: Passing the result of c_str() to a function that takes std::string as argument no. 1 is slow and redundant. [stlcstrParam] zpaq.cpp:2113:7: performance: Passing the result of c_str() to a function that takes std::string as argument no. 1 is slow and redundant. [stlcstrParam] zpaq.cpp:2129:9: performance: Passing the result of c_str() to a function that takes std::string as argument no. 1 is slow and redundant. [stlcstrParam] zpaq.cpp:2161:11: performance: Passing the result of c_str() to a function that takes std::string as argument no. 1 is slow and redundant. [stlcstrParam] zpaq.cpp:2177:7: performance: Passing the result of c_str() to a function that takes std::string as argument no. 1 is slow and redundant. [stlcstrParam] zpaq.cpp:2250:23: performance: Passing the result of c_str() to a function that takes std::string as argument no. 1 is slow and redundant. [stlcstrParam] zpaq.cpp:2512:17: performance: Passing the result of c_str() to a function that takes std::string as argument no. 3 is slow and redundant. [stlcstrParam] zpaq.cpp:451:38: performance: Ineffective call of function 'substr' because a prefix of the string is assigned to itself. Use resize() or pop_back() instead. [uselessCallsSubstr] zpaq.cpp:571:14: performance: Ineffective call of function 'substr' because a prefix of the string is assigned to itself. Use resize() or pop_back() instead. [uselessCallsSubstr] zpaq.cpp:611:10: performance: Ineffective call of function 'substr' because a prefix of the string is assigned to itself. Use replace() instead. [uselessCallsSubstr] zpaq.cpp:1145:31: performance: Ineffective call of function 'substr' because a prefix of the string is assigned to itself. Use resize() or pop_back() instead. [uselessCallsSubstr] zpaq.cpp:1390:14: performance: Ineffective call of function 'substr' because a prefix of the string is assigned to itself. Use resize() or pop_back() instead. [uselessCallsSubstr] zpaq.cpp:678:45: style: Consider using std::accumulate algorithm instead of a raw loop. [useStlAlgorithm] zpaq.cpp:1685:0: style: Consider using std::any_of algorithm instead of a raw loop. [useStlAlgorithm] zpaq.cpp:1707:0: style: Consider using std::any_of algorithm instead of a raw loop. [useStlAlgorithm] zpaq.cpp:1391:23: style: int result is assigned to long variable. If the variable is long to avoid loss of information, then you have loss of information. [truncLongCastAssignment] zpaq.cpp:2127:15: style: int result is assigned to long variable. If the variable is long to avoid loss of information, then you have loss of information. [truncLongCastAssignment] zpaq.cpp:2159:17: style: int result is assigned to long variable. If the variable is long to avoid loss of information, then you have loss of information. [truncLongCastAssignment] zpaq.cpp:3159:40: warning: Uninitialized variable: salt [uninitvar] zpaq.cpp:3151:22: note: Assuming condition is false zpaq.cpp:3159:40: note: Uninitialized variable: salt zpaq.cpp:3346:11: warning: Uninitialized variable: is [uninitvar] zpaq.cpp:3328:43: note: Assuming condition is false zpaq.cpp:3346:11: note: Uninitialized variable: is libzpaq.h:1155:9: style: Unused variable: error [unusedVariable] zpaq.cpp:370:16: style: Variable 'min' is assigned a value that is never used. [unreadVariable] libzpaq.cpp:904:22: warning: Either the condition 'type>255' is redundant or the array 'compsize[256]' is accessed at index 256, which is out of bounds. [arrayIndexOutOfBoundsCond] libzpaq.cpp:902:23: note: Assuming that condition 'type>255' is not redundant libzpaq.cpp:904:22: note: Array index out of bounds libzpaq.cpp:904:22: warning: Either the condition 'type<0' is redundant or the array 'compsize[256]' is accessed at index -1, which is out of bounds. [negativeIndex] libzpaq.cpp:902:13: note: Assuming that condition 'type<0' is not redundant libzpaq.cpp:904:22: note: Negative array index libzpaq.cpp:7434:14: style: Array index 'i' is used before limits check. [arrayIndexThenCheck] libzpaq.h:946:3: warning: Member variable 'SHA1::hbuf' is not initialized in the constructor. [uninitMemberVar] libzpaq.h:971:3: warning: Member variable 'SHA256::hbuf' is not initialized in the constructor. [uninitMemberVar] libzpaq.cpp:347:10: warning: Member variable 'AES_CTR::ek' is not initialized in the constructor. [uninitMemberVar] libzpaq.cpp:1705:12: warning: Member variable 'Predictor::p' is not initialized in the constructor. [uninitMemberVar] libzpaq.cpp:1705:12: warning: Member variable 'Predictor::h' is not initialized in the constructor. [uninitMemberVar] libzpaq.cpp:1705:12: warning: Member variable 'Predictor::dt2k' is not initialized in the constructor. [uninitMemberVar] libzpaq.cpp:1705:12: warning: Member variable 'Predictor::dt' is not initialized in the constructor. [uninitMemberVar] libzpaq.cpp:1705:12: warning: Member variable 'Predictor::squasht' is not initialized in the constructor. [uninitMemberVar] libzpaq.cpp:1705:12: warning: Member variable 'Predictor::stretcht' is not initialized in the constructor. [uninitMemberVar] libzpaq.cpp:6596:11: warning: Member variable 'LZBuffer::buf' is not initialized in the constructor. [uninitMemberVar] libzpaq.cpp:1265:13: style: The member function 'libzpaq::ZPAQL::err' can be static. [functionStatic] libzpaq.h:1074:8: note: The member function 'libzpaq::ZPAQL::err' can be static. libzpaq.cpp:1265:13: note: The member function 'libzpaq::ZPAQL::err' can be static. libzpaq.cpp:3824:16: style:inconclusive: Technically the member function 'libzpaq::Predictor::assemble_p' can be const. [functionConst] libzpaq.h:1191:7: note: Technically the member function 'libzpaq::Predictor::assemble_p' can be const. libzpaq.cpp:3824:16: note: Technically the member function 'libzpaq::Predictor::assemble_p' can be const. libzpaq.cpp:2510:16: style:inconclusive: Technically the member function 'libzpaq::Compiler::matchToken' can be const. [functionConst] libzpaq.h:1313:8: note: Technically the member function 'libzpaq::Compiler::matchToken' can be const. libzpaq.cpp:2510:16: note: Technically the member function 'libzpaq::Compiler::matchToken' can be const. libzpaq.h:1416:3: style: Class 'StringBuffer' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] libzpaq.cpp:2837:3: style: Class 'MemoryReader' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] libzpaq.h:895:3: style: Class 'Array < int >' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] libzpaq.h:1423:4: style: The destructor '~StringBuffer' overrides a destructor in a base class but is not marked with a 'override' specifier. [missingOverride] libzpaq.h:868:12: note: Virtual destructor in base class libzpaq.h:1423:4: note: Destructor in derived class libzpaq.cpp:2838:7: style: The function 'get' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] libzpaq.h:866:15: note: Virtual function in base class libzpaq.cpp:2838:7: note: Function in derived class libzpaq.cpp:6532:7: style: The function 'get' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] libzpaq.h:866:15: note: Virtual function in base class libzpaq.cpp:6532:7: note: Function in derived class libzpaq.cpp:6541:7: style: The function 'read' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] libzpaq.h:867:15: note: Virtual function in base class libzpaq.cpp:6541:7: note: Function in derived class libzpaq.cpp:3236:17: style: Condition '*(char*)&t!=0x78' is always true [knownConditionTrueFalse] libzpaq.cpp:3235:9: note: Assignment 't=0x12345678', assigned value is 305419896 libzpaq.cpp:3236:17: note: Condition '*(char*)&t!=0x78' is always true libzpaq.cpp:3836:17: style: Condition '*(char*)&t!=0x78' is always true [knownConditionTrueFalse] libzpaq.cpp:3835:9: note: Assignment 't=0x12345678', assigned value is 305419896 libzpaq.cpp:3836:17: note: Condition '*(char*)&t!=0x78' is always true libzpaq.h:928:24: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] libzpaq.h:924:20: note: Assuming allocation function fails libzpaq.h:924:8: note: Assignment 'data=(uint8_t*)::calloc(nb,1)', assigned value is 0 libzpaq.h:928:24: note: Null pointer addition libzpaq.h:928:24: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] libzpaq.h:924:20: note: Assuming allocation function fails libzpaq.h:924:8: note: Assignment 'data=(uint32_t*)::calloc(nb,1)', assigned value is 0 libzpaq.h:928:24: note: Null pointer addition libzpaq.h:928:24: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] libzpaq.h:924:20: note: Assuming allocation function fails libzpaq.h:924:8: note: Assignment 'data=(char*)::calloc(nb,1)', assigned value is 0 libzpaq.h:928:24: note: Null pointer addition libzpaq.h:928:24: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] libzpaq.h:924:20: note: Assuming allocation function fails libzpaq.h:924:8: note: Assignment 'data=(uint16_t*)::calloc(nb,1)', assigned value is 0 libzpaq.h:928:24: note: Null pointer addition libzpaq.h:928:24: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] libzpaq.h:924:20: note: Assuming allocation function fails libzpaq.h:924:8: note: Assignment 'data=(int*)::calloc(nb,1)', assigned value is 0 libzpaq.h:928:24: note: Null pointer addition libzpaq.h:928:24: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] libzpaq.h:924:20: note: Assuming allocation function fails libzpaq.h:924:8: note: Assignment 'data=(unsigned int*)::calloc(nb,1)', assigned value is 0 libzpaq.h:928:24: note: Null pointer addition libzpaq.cpp:88:7: style: C-style pointer casting [cstyleCast] libzpaq.cpp:148:26: style: C-style pointer casting [cstyleCast] libzpaq.cpp:330:26: style: C-style pointer casting [cstyleCast] libzpaq.cpp:1913:17: style: C-style pointer casting [cstyleCast] libzpaq.cpp:1925:17: style: C-style pointer casting [cstyleCast] libzpaq.cpp:2028:17: style: C-style pointer casting [cstyleCast] libzpaq.cpp:2036:17: style: C-style pointer casting [cstyleCast] libzpaq.cpp:2897:13: style: C-style pointer casting [cstyleCast] libzpaq.cpp:3024:28: style: C-style pointer casting [cstyleCast] libzpaq.cpp:4615:4: style: C-style pointer casting [cstyleCast] libzpaq.cpp:6382:14: style: C-style pointer casting [cstyleCast] libzpaq.cpp:6383:14: style: C-style pointer casting [cstyleCast] libzpaq.cpp:6409:29: style: C-style pointer casting [cstyleCast] libzpaq.cpp:6410:14: style: C-style pointer casting [cstyleCast] libzpaq.cpp:6411:14: style: C-style pointer casting [cstyleCast] libzpaq.cpp:6637:27: style: C-style pointer casting [cstyleCast] libzpaq.cpp:6637:53: style: C-style pointer casting [cstyleCast] libzpaq.cpp:696:52: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] libzpaq.cpp:3236:8: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] libzpaq.cpp:3836:8: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] libzpaq.cpp:3871:9: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] libzpaq.cpp:3872:9: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] libzpaq.cpp:3874:9: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] libzpaq.cpp:3876:9: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] libzpaq.cpp:3879:9: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] libzpaq.cpp:3880:9: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] libzpaq.cpp:3920:9: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] libzpaq.cpp:3930:9: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] libzpaq.cpp:3969:9: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] libzpaq.cpp:3972:9: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] libzpaq.cpp:3974:9: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] libzpaq.cpp:3978:9: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] libzpaq.cpp:3980:9: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] libzpaq.cpp:3988:11: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] libzpaq.cpp:3991:11: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] libzpaq.cpp:4005:9: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] libzpaq.cpp:4023:9: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] libzpaq.cpp:4026:9: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] libzpaq.cpp:4032:9: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] libzpaq.cpp:4033:9: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] libzpaq.cpp:4034:9: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] libzpaq.cpp:4039:9: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] libzpaq.cpp:4042:9: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] libzpaq.cpp:4043:9: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] libzpaq.cpp:4047:9: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] libzpaq.cpp:4048:9: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] libzpaq.cpp:4054:9: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] libzpaq.cpp:4055:9: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] libzpaq.cpp:4058:9: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] libzpaq.cpp:4059:9: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] libzpaq.cpp:4073:9: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] libzpaq.cpp:4075:9: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] libzpaq.cpp:4077:9: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] libzpaq.cpp:4079:9: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] libzpaq.cpp:4080:9: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] libzpaq.cpp:4086:9: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] libzpaq.cpp:4104:9: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] libzpaq.cpp:4107:9: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] libzpaq.cpp:4109:9: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] libzpaq.cpp:4123:11: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] libzpaq.cpp:4125:13: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] libzpaq.cpp:4157:9: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] libzpaq.cpp:4174:9: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] libzpaq.cpp:4178:9: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] libzpaq.cpp:4191:9: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] libzpaq.cpp:4196:9: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] libzpaq.cpp:4204:9: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] libzpaq.cpp:4205:9: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] libzpaq.cpp:4214:3: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] libzpaq.cpp:4216:3: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] libzpaq.cpp:4270:9: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] libzpaq.cpp:4271:9: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] libzpaq.cpp:4283:9: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] libzpaq.cpp:4304:9: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] libzpaq.cpp:4306:9: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] libzpaq.cpp:4308:9: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] libzpaq.cpp:4311:9: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] libzpaq.cpp:4314:9: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] libzpaq.cpp:4333:11: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] libzpaq.cpp:4335:11: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] libzpaq.cpp:4340:11: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] libzpaq.cpp:4392:9: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] libzpaq.cpp:4394:9: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] libzpaq.cpp:4397:9: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] libzpaq.cpp:4401:9: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] libzpaq.cpp:4404:9: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] libzpaq.cpp:4411:9: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] libzpaq.cpp:4414:9: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] libzpaq.cpp:4419:9: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] libzpaq.cpp:4422:9: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] libzpaq.cpp:4425:9: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] libzpaq.cpp:4430:9: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] libzpaq.cpp:4432:9: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] libzpaq.cpp:4434:9: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] libzpaq.cpp:4442:9: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] libzpaq.cpp:4458:9: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] libzpaq.cpp:4464:9: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] libzpaq.cpp:4467:9: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] libzpaq.cpp:4469:9: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] libzpaq.cpp:4489:9: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] libzpaq.cpp:4491:9: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] libzpaq.cpp:4500:9: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] libzpaq.cpp:4502:9: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] libzpaq.cpp:4505:9: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] libzpaq.cpp:4506:9: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] libzpaq.cpp:4533:9: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] libzpaq.cpp:4535:9: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] libzpaq.cpp:4544:9: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] libzpaq.cpp:4546:9: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] libzpaq.cpp:4551:11: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] libzpaq.cpp:4604:11: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] libzpaq.cpp:4649:17: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] libzpaq.cpp:1154:17: style: Same expression on both sides of '-='. [duplicateExpression] libzpaq.cpp:1186:17: style: Same expression on both sides of '&='. [duplicateExpression] libzpaq.cpp:1202:17: style: Same expression on both sides of '|='. [duplicateExpression] libzpaq.cpp:1210:17: style: Same expression on both sides of '^='. [duplicateExpression] libzpaq.cpp:3344:11: style: The scope of the variable 'op' can be reduced. [variableScope] libzpaq.cpp:4922:10: style: The scope of the variable 'd' can be reduced. [variableScope] libzpaq.cpp:4922:13: style: The scope of the variable 'e' can be reduced. [variableScope] libzpaq.cpp:5020:7: style: The scope of the variable 't' can be reduced. [variableScope] libzpaq.cpp:5179:7: style: The scope of the variable 't' can be reduced. [variableScope] libzpaq.cpp:5234:7: style: The scope of the variable 'q' can be reduced. [variableScope] libzpaq.cpp:5276:7: style: The scope of the variable 'r' can be reduced. [variableScope] libzpaq.cpp:5327:7: style: The scope of the variable 'r' can be reduced. [variableScope] libzpaq.cpp:5479:13: style: The scope of the variable 'curbufsize' can be reduced. [variableScope] libzpaq.cpp:5585:10: style: The scope of the variable 'd' can be reduced. [variableScope] libzpaq.cpp:5585:13: style: The scope of the variable 'e' can be reduced. [variableScope] libzpaq.cpp:5709:24: style: The scope of the variable 'e' can be reduced. [variableScope] libzpaq.cpp:5709:28: style: The scope of the variable 'f' can be reduced. [variableScope] libzpaq.cpp:5710:10: style: The scope of the variable 's' can be reduced. [variableScope] libzpaq.cpp:6042:7: style: The scope of the variable 't' can be reduced. [variableScope] libzpaq.cpp:6042:10: style: The scope of the variable 'skip' can be reduced. [variableScope] libzpaq.cpp:6042:16: style: The scope of the variable 'unsorted' can be reduced. [variableScope] libzpaq.cpp:6085:13: style: The scope of the variable 'k' can be reduced. [variableScope] libzpaq.cpp:6085:22: style: The scope of the variable 'bufsize' can be reduced. [variableScope] libzpaq.cpp:6239:11: style: The scope of the variable 'c1' can be reduced. [variableScope] libzpaq.cpp:6303:11: style: The scope of the variable 'c1' can be reduced. [variableScope] libzpaq.cpp:6403:7: style: The scope of the variable 'm' can be reduced. [variableScope] libzpaq.cpp:6403:16: style: The scope of the variable 'i' can be reduced. [variableScope] libzpaq.cpp:7657:11: style: The scope of the variable 'pt' can be reduced. [variableScope] libzpaq.cpp:6571:11: style: Unsigned expression 'x' can't be negative so it is unnecessary to test it. [unsignedPositive] libzpaq.cpp:6798:13: style: Unsigned expression 'lit' can't be negative so it is unnecessary to test it. [unsignedPositive] libzpaq.cpp:6799:11: style: Unsigned expression 'i' can't be negative so it is unnecessary to test it. [unsignedPositive] libzpaq.cpp:6834:14: style: Unsigned expression 'rb' can't be negative so it is unnecessary to test it. [unsignedPositive] libzpaq.cpp:674:40: style:inconclusive: Function 'stretchKey' argument 2 names different: declaration 'key' definition 'in'. [funcArgNamesDifferent] libzpaq.h:1009:40: note: Function 'stretchKey' argument 2 names different: declaration 'key' definition 'in'. libzpaq.cpp:674:40: note: Function 'stretchKey' argument 2 names different: declaration 'key' definition 'in'. libzpaq.cpp:2510:39: style:inconclusive: Function 'matchToken' argument 1 names different: declaration 'tok' definition 'word'. [funcArgNamesDifferent] libzpaq.h:1313:31: note: Function 'matchToken' argument 1 names different: declaration 'tok' definition 'word'. libzpaq.cpp:2510:39: note: Function 'matchToken' argument 1 names different: declaration 'tok' definition 'word'. libzpaq.cpp:2698:32: style:inconclusive: Function 'Compiler' argument 1 names different: declaration 'in' definition 'in_'. [funcArgNamesDifferent] libzpaq.h:1295:24: note: Function 'Compiler' argument 1 names different: declaration 'in' definition 'in_'. libzpaq.cpp:2698:32: note: Function 'Compiler' argument 1 names different: declaration 'in' definition 'in_'. libzpaq.cpp:2698:42: style:inconclusive: Function 'Compiler' argument 2 names different: declaration 'args' definition 'args_'. [funcArgNamesDifferent] libzpaq.h:1295:33: note: Function 'Compiler' argument 2 names different: declaration 'args' definition 'args_'. libzpaq.cpp:2698:42: note: Function 'Compiler' argument 2 names different: declaration 'args' definition 'args_'. libzpaq.cpp:2698:56: style:inconclusive: Function 'Compiler' argument 3 names different: declaration 'hz' definition 'hz_'. [funcArgNamesDifferent] libzpaq.h:1295:46: note: Function 'Compiler' argument 3 names different: declaration 'hz' definition 'hz_'. libzpaq.cpp:2698:56: note: Function 'Compiler' argument 3 names different: declaration 'hz' definition 'hz_'. libzpaq.cpp:2698:68: style:inconclusive: Function 'Compiler' argument 4 names different: declaration 'pz' definition 'pz_'. [funcArgNamesDifferent] libzpaq.h:1295:57: note: Function 'Compiler' argument 4 names different: declaration 'pz' definition 'pz_'. libzpaq.cpp:2698:68: note: Function 'Compiler' argument 4 names different: declaration 'pz' definition 'pz_'. libzpaq.cpp:2699:28: style:inconclusive: Function 'Compiler' argument 5 names different: declaration 'out2' definition 'out2_'. [funcArgNamesDifferent] libzpaq.h:1295:69: note: Function 'Compiler' argument 5 names different: declaration 'out2' definition 'out2_'. libzpaq.cpp:2699:28: note: Function 'Compiler' argument 5 names different: declaration 'out2' definition 'out2_'. libzpaq.cpp:7543:63: style:inconclusive: Function 'compressBlock' argument 3 names different: declaration 'method' definition 'method_'. [funcArgNamesDifferent] libzpaq.h:1505:63: note: Function 'compressBlock' argument 3 names different: declaration 'method' definition 'method_'. libzpaq.cpp:7543:63: note: Function 'compressBlock' argument 3 names different: declaration 'method' definition 'method_'. libzpaq.cpp:3440:11: style: Local variable 't' shadows outer variable [shadowVariable] libzpaq.cpp:3235:7: note: Shadowed declaration libzpaq.cpp:3440:11: note: Shadow variable libzpaq.cpp:3445:15: style: Local variable 'a' shadows outer variable [shadowVariable] libzpaq.h:1059:7: note: Shadowed declaration libzpaq.cpp:3445:15: note: Shadow variable libzpaq.cpp:335:34: style: Parameter 'x' can be declared as reference to const [constParameterReference] libzpaq.cpp:3165:25: style: Variable 'x' can be declared as reference to const [constVariableReference] libzpaq.cpp:1913:14: style: Variable 'wt' can be declared as pointer to const [constVariablePointer] libzpaq.cpp:1925:14: style: Variable 'wt' can be declared as pointer to const [constVariablePointer] libzpaq.cpp:4894:23: style: Parameter 'first' can be declared as pointer to const [constParameterPointer] libzpaq.cpp:4894:35: style: Parameter 'last' can be declared as pointer to const [constParameterPointer] libzpaq.cpp:5187:41: style: Parameter 'last' can be declared as pointer to const [constParameterPointer] libzpaq.cpp:5272:47: style: Parameter 'last' can be declared as pointer to const [constParameterPointer] libzpaq.cpp:5322:23: style: Parameter 'first' can be declared as pointer to const [constParameterPointer] libzpaq.cpp:5322:48: style: Parameter 'last' can be declared as pointer to const [constParameterPointer] libzpaq.cpp:5563:52: style: Parameter 'last' can be declared as pointer to const [constParameterPointer] libzpaq.cpp:5564:8: style: Variable 'a' can be declared as pointer to const [constVariablePointer] libzpaq.cpp:5707:31: style: Parameter 'middle' can be declared as pointer to const [constParameterPointer] libzpaq.cpp:5749:26: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] libzpaq.cpp:5749:42: style: Parameter 'last' can be declared as pointer to const [constParameterPointer] libzpaq.cpp:5753:8: style: Variable 'c' can be declared as pointer to const [constVariablePointer] libzpaq.cpp:5753:16: style: Variable 'e' can be declared as pointer to const [constVariablePointer] libzpaq.cpp:5774:33: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] libzpaq.cpp:5774:49: style: Parameter 'last' can be declared as pointer to const [constParameterPointer] libzpaq.cpp:5776:8: style: Variable 'c' can be declared as pointer to const [constVariablePointer] libzpaq.cpp:5776:16: style: Variable 'e' can be declared as pointer to const [constVariablePointer] libzpaq.cpp:5812:19: style: Parameter 'SA' can be declared as pointer to const [constParameterPointer] libzpaq.cpp:5816:16: style: Variable 'c' can be declared as pointer to const [constVariablePointer] libzpaq.cpp:6080:8: style: Variable 'PAb' can be declared as pointer to const [constVariablePointer] libzpaq.cpp:6301:20: style: Variable 'orig' can be declared as pointer to const [constVariablePointer] libzpaq.cpp:7389:25: style: Consider using std::accumulate algorithm instead of a raw loop. [useStlAlgorithm] libzpaq.cpp:1890:42: warning: Expression '-2' has a negative value. That is converted to an unsigned value and used in an unsigned calculation. [signConversion] libzpaq.cpp:6686:19: warning: Expression 'j' can have a negative value. That is converted to an unsigned value and used in an unsigned calculation. [signConversion] libzpaq.cpp:6683:21: note: Assignment 'j=-1', assigned value is -1 libzpaq.cpp:6686:19: note: Negative value is converted to an unsigned value diff: head zpaq.cpp:1803:28: performance: Function parameter 'filename' should be passed by const reference. [passedByValue] DONE