2024-04-12 02:08 ftp://ftp.de.debian.org/debian/pool/main/q/quorum/quorum_1.1.2.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --library=googletest --inconclusive --enable=style,information --inline-suppr --template=daca2 --disable=missingInclude --suppress=unmatchedSuppression --check-library --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning -D__GNUC__ --platform=unix64 -j1 platform: Linux-5.15.0-102-generic-x86_64-with-glibc2.35 python: 3.10.12 client-version: 1.3.55 compiler: g++ (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0 cppcheck: head 2.13.0 head-info: a41ef74 (2024-04-11 22:48:57 +0200) count: 45 35 elapsed-time: 1.9 2.2 head-timing-info: old-timing-info: head results: Quorum-1.1.2/src/create_database.cc:64:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable seq [valueFlowBailoutIncompleteVar] Quorum-1.1.2/src/error_correct_reads.cc:80:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cerr [valueFlowBailoutIncompleteVar] Quorum-1.1.2/src/error_correct_reads.cc:93:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cerr [valueFlowBailoutIncompleteVar] Quorum-1.1.2/src/error_correct_reads.cc:256:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable endr [valueFlowBailoutIncompleteVar] Quorum-1.1.2/src/error_correct_reads.cc:604:99: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable no [valueFlowBailoutIncompleteVar] Quorum-1.1.2/src/error_correct_reads.cc:659:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vlog [valueFlowBailoutIncompleteVar] Quorum-1.1.2/src/error_correct_reads.cc:669:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vlog [valueFlowBailoutIncompleteVar] Quorum-1.1.2/src/error_correct_reads.cc:685:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable verbose [valueFlowBailoutIncompleteVar] Quorum-1.1.2/src/error_correct_reads.cc:152:93: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable no [valueFlowBailoutIncompleteVar] Quorum-1.1.2/src/error_correct_reads.cc:167:5: error: Non-local variable '_log' will use pointer to local variable 'log_m'. [danglingLifetime] Quorum-1.1.2/src/error_correct_reads.cc:167:24: note: Raw pointer to smart pointer created here. Quorum-1.1.2/src/error_correct_reads.cc:164:7: note: Variable created here. Quorum-1.1.2/src/error_correct_reads.cc:167:5: note: Non-local variable '_log' will use pointer to local variable 'log_m'. Quorum-1.1.2/src/error_correct_reads.cc:168:5: error: Non-local variable '_output' will use pointer to local variable 'output_m'. [danglingLifetime] Quorum-1.1.2/src/error_correct_reads.cc:168:27: note: Raw pointer to smart pointer created here. Quorum-1.1.2/src/error_correct_reads.cc:166:7: note: Variable created here. Quorum-1.1.2/src/error_correct_reads.cc:168:5: note: Non-local variable '_output' will use pointer to local variable 'output_m'. Quorum-1.1.2/src/error_correct_reads.cc:125:3: warning: Member variable 'error_correct_t < error_correct_instance >::_anchor' is not initialized in the constructor. [uninitMemberVar] Quorum-1.1.2/src/error_correct_reads.cc:125:3: warning: Member variable 'error_correct_t < error_correct_instance >::_qual_cutoff' is not initialized in the constructor. [uninitMemberVar] Quorum-1.1.2/src/error_correct_reads.cc:125:3: warning: Member variable 'error_correct_t < error_correct_instance >::_collision_prob' is not initialized in the constructor. [uninitMemberVar] Quorum-1.1.2/src/error_correct_reads.cc:125:3: warning: Member variable 'error_correct_t < error_correct_instance >::_poisson_threshold' is not initialized in the constructor. [uninitMemberVar] Quorum-1.1.2/src/error_correct_reads.cc:125:3: warning: Member variable 'error_correct_t < error_correct_instance >::_output' is not initialized in the constructor. [uninitMemberVar] Quorum-1.1.2/src/error_correct_reads.cc:125:3: warning: Member variable 'error_correct_t < error_correct_instance >::_log' is not initialized in the constructor. [uninitMemberVar] Quorum-1.1.2/src/error_correct_reads.cc:77:12: style: The destructor '~contaminant_no_database' overrides a destructor in a base class but is not marked with a 'override' specifier. [missingOverride] Quorum-1.1.2/src/error_correct_reads.cc:68:12: note: Virtual destructor in base class Quorum-1.1.2/src/error_correct_reads.cc:77:12: note: Destructor in derived class Quorum-1.1.2/src/error_correct_reads.cc:78:16: style: The function 'is_contaminant' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] Quorum-1.1.2/src/error_correct_reads.cc:70:16: note: Virtual function in base class Quorum-1.1.2/src/error_correct_reads.cc:78:16: note: Function in derived class Quorum-1.1.2/src/error_correct_reads.cc:79:16: style: The function 'is_contaminant' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] Quorum-1.1.2/src/error_correct_reads.cc:71:16: note: Virtual function in base class Quorum-1.1.2/src/error_correct_reads.cc:79:16: note: Function in derived class Quorum-1.1.2/src/error_correct_reads.cc:80:16: style: The function 'debug' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] Quorum-1.1.2/src/error_correct_reads.cc:72:16: note: Virtual function in base class Quorum-1.1.2/src/error_correct_reads.cc:80:16: note: Function in derived class Quorum-1.1.2/src/error_correct_reads.cc:92:12: style: The destructor '~contaminant_database' overrides a destructor in a base class but is not marked with a 'override' specifier. [missingOverride] Quorum-1.1.2/src/error_correct_reads.cc:68:12: note: Virtual destructor in base class Quorum-1.1.2/src/error_correct_reads.cc:92:12: note: Destructor in derived class Quorum-1.1.2/src/error_correct_reads.cc:93:16: style: The function 'debug' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] Quorum-1.1.2/src/error_correct_reads.cc:72:16: note: Virtual function in base class Quorum-1.1.2/src/error_correct_reads.cc:93:16: note: Function in derived class Quorum-1.1.2/src/error_correct_reads.cc:94:16: style: The function 'is_contaminant' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] Quorum-1.1.2/src/error_correct_reads.cc:70:16: note: Virtual function in base class Quorum-1.1.2/src/error_correct_reads.cc:94:16: note: Function in derived class Quorum-1.1.2/src/error_correct_reads.cc:95:16: style: The function 'is_contaminant' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] Quorum-1.1.2/src/error_correct_reads.cc:71:16: note: Virtual function in base class Quorum-1.1.2/src/error_correct_reads.cc:95:16: note: Function in derived class Quorum-1.1.2/src/error_correct_reads.cc:77:12: style: The destructor '~contaminant_no_database' overrides a destructor in a base class but is identical to the overridden function [uselessOverride] Quorum-1.1.2/src/error_correct_reads.cc:68:12: note: Virtual destructor in base class Quorum-1.1.2/src/error_correct_reads.cc:77:12: note: Destructor in derived class Quorum-1.1.2/src/error_correct_reads.cc:602:18: style: C-style pointer casting [cstyleCast] Quorum-1.1.2/src/error_correct_reads.cc:134:45: performance: Function parameter 'prefix' should be passed by const reference. [passedByValue] Quorum-1.1.2/src/error_correct_reads.cc:135:45: performance: Function parameter 'def' should be passed by const reference. [passedByValue] Quorum-1.1.2/src/error_correct_reads.cc:181:45: performance: Function parameter 's' should be passed by const reference. [passedByValue] Quorum-1.1.2/src/error_correct_reads.cc:565:44: style: Parameter 'out_start' can be declared as pointer to const [constParameterPointer] Quorum-1.1.2/src/histo_mer_database.cc:25:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] Quorum-1.1.2/src/histo_mer_database.cc:18:11: style: Variable 'vals' can be declared as reference to const [constVariableReference] Quorum-1.1.2/src/merge_mate_pairs.cc:53:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] Quorum-1.1.2/src/merge_mate_pairs.cc:21:5: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] Quorum-1.1.2/src/merge_mate_pairs.cc:20:18: error: No 'return' statement in non-void function causes undefined behavior. [operatorEqMissingReturnStatement] Quorum-1.1.2/src/merge_mate_pairs.cc:19:3: style: Class 'skip_iterator < cmdline :: file_arg_it >' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] Quorum-1.1.2/src/query_mer_database.cc:14:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] Quorum-1.1.2/src/split_mate_pairs.cc:9:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cin [valueFlowBailoutIncompleteVar] Quorum-1.1.2/src/split_mate_pairs.cc:29:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cin [valueFlowBailoutIncompleteVar] Quorum-1.1.2/unit_tests/gtest/src/gtest-all.cc:5008:12: error: There is an unknown macro here somewhere. Configuration is required. If GTEST_NAME_ is a macro then please configure it. [unknownMacro] Quorum-1.1.2/unit_tests/test_mer_database.cc:68:10: style: The scope of the variable 'key_start' can be reduced. [variableScope] Quorum-1.1.2/unit_tests/test_mer_database.cc:68:21: style: The scope of the variable 'val_start' can be reduced. [variableScope] Quorum-1.1.2/unit_tests/test_mer_database.cc:68:32: style: The scope of the variable 'total_len' can be reduced. [variableScope] Quorum-1.1.2/unit_tests/test_speed_calc.cc:16:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable random_bits [valueFlowBailoutIncompleteVar] diff: head Quorum-1.1.2/src/error_correct_reads.cc:152:93: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable no [valueFlowBailoutIncompleteVar] 2.13.0 Quorum-1.1.2/src/error_correct_reads.cc:161:35: style: Local variable 'output' shadows outer function [shadowFunction] Quorum-1.1.2/src/error_correct_reads.cc:218:25: note: Shadowed declaration Quorum-1.1.2/src/error_correct_reads.cc:161:35: note: Shadow variable head Quorum-1.1.2/src/error_correct_reads.cc:256:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable endr [valueFlowBailoutIncompleteVar] head Quorum-1.1.2/src/error_correct_reads.cc:604:99: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable no [valueFlowBailoutIncompleteVar] head Quorum-1.1.2/src/error_correct_reads.cc:659:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vlog [valueFlowBailoutIncompleteVar] head Quorum-1.1.2/src/error_correct_reads.cc:669:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vlog [valueFlowBailoutIncompleteVar] head Quorum-1.1.2/src/error_correct_reads.cc:685:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable verbose [valueFlowBailoutIncompleteVar] head Quorum-1.1.2/src/error_correct_reads.cc:77:12: style: The destructor '~contaminant_no_database' overrides a destructor in a base class but is identical to the overridden function [uselessOverride] Quorum-1.1.2/src/error_correct_reads.cc:68:12: note: Virtual destructor in base class Quorum-1.1.2/src/error_correct_reads.cc:77:12: note: Destructor in derived class head Quorum-1.1.2/src/error_correct_reads.cc:77:12: style: The destructor '~contaminant_no_database' overrides a destructor in a base class but is not marked with a 'override' specifier. [missingOverride] Quorum-1.1.2/src/error_correct_reads.cc:68:12: note: Virtual destructor in base class Quorum-1.1.2/src/error_correct_reads.cc:77:12: note: Destructor in derived class head Quorum-1.1.2/src/error_correct_reads.cc:92:12: style: The destructor '~contaminant_database' overrides a destructor in a base class but is not marked with a 'override' specifier. [missingOverride] Quorum-1.1.2/src/error_correct_reads.cc:68:12: note: Virtual destructor in base class Quorum-1.1.2/src/error_correct_reads.cc:92:12: note: Destructor in derived class head Quorum-1.1.2/src/error_correct_reads.cc:93:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cerr [valueFlowBailoutIncompleteVar] head Quorum-1.1.2/src/split_mate_pairs.cc:29:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cin [valueFlowBailoutIncompleteVar] DONE