2026-05-01 05:01 ftp://ftp.de.debian.org/debian/pool/main/b/bbhash/bbhash_1.0.0.orig.tar.gz 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 -j1 platform: Linux-6.8.0-110-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.70 compiler: g++ (Ubuntu 14.2.0-4ubuntu2~24.04.1) 14.2.0 cppcheck: head 2.20.0 head-info: 0fda84e (2026-05-01 02:32:52 +0200) count: 195 195 elapsed-time: 2.1 1.9 head-timing-info: old-timing-info: head results: BBHash-1.0.0/BooPHF.h:1407:4: debug: Failed to parse 'typedef decltype ( input_range . begin ( ) ) it_type ;'. The checking continues anyway. [simplifyTypedef] BBHash-1.0.0/BooPHF.h:1423:5: debug: Failed to parse 'typedef decltype ( data_iterator_level . begin ( ) ) disklevel_it_type ;'. The checking continues anyway. [simplifyTypedef] BBHash-1.0.0/BooPHF.h:1448:6: debug: Failed to parse 'typedef decltype ( setLevelFastmode . begin ( ) ) fastmode_it_type ;'. The checking continues anyway. [simplifyTypedef] BBHash-1.0.0/BooPHF.h:52:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable basetype [valueFlowBailoutIncompleteVar] BBHash-1.0.0/BooPHF.h:60:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable basetype [valueFlowBailoutIncompleteVar] BBHash-1.0.0/BooPHF.h:71:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable basetype [valueFlowBailoutIncompleteVar] BBHash-1.0.0/BooPHF.h:110:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable basetype [valueFlowBailoutIncompleteVar] BBHash-1.0.0/BooPHF.h:234:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] BBHash-1.0.0/BooPHF.h:242:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] BBHash-1.0.0/BooPHF.h:283:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] BBHash-1.0.0/BooPHF.h:322:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] BBHash-1.0.0/bootest.cpp:66:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable u_int64_t [valueFlowBailoutIncompleteVar] BBHash-1.0.0/bootest.cpp:74:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable u_int64_t [valueFlowBailoutIncompleteVar] BBHash-1.0.0/bootest.cpp:84:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable u_int64_t [valueFlowBailoutIncompleteVar] BBHash-1.0.0/bootest.cpp:119:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable u_int64_t [valueFlowBailoutIncompleteVar] BBHash-1.0.0/bootest.cpp:526:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable default_seed [valueFlowBailoutIncompleteVar] BBHash-1.0.0/bootest.cpp:642:12: warning: Assert statement calls a function which may have desired side effects: 'std::modf'. [assertWithSideEffect] BBHash-1.0.0/BooPHF.h:342:3: warning: Member variable 'Progress::heure_debut' is not initialized in the constructor. [uninitMemberVar] BBHash-1.0.0/BooPHF.h:342:3: warning: Member variable 'Progress::heure_actuelle' is not initialized in the constructor. [uninitMemberVar] BBHash-1.0.0/BooPHF.h:342:3: warning: Member variable 'Progress::done' is not initialized in the constructor. [uninitMemberVar] BBHash-1.0.0/BooPHF.h:342:3: warning: Member variable 'Progress::todo' is not initialized in the constructor. [uninitMemberVar] BBHash-1.0.0/BooPHF.h:342:3: warning: Member variable 'Progress::subdiv' is not initialized in the constructor. [uninitMemberVar] BBHash-1.0.0/BooPHF.h:342:3: warning: Member variable 'Progress::partial' is not initialized in the constructor. [uninitMemberVar] BBHash-1.0.0/BooPHF.h:342:3: warning: Member variable 'Progress::_nthreads' is not initialized in the constructor. [uninitMemberVar] BBHash-1.0.0/BooPHF.h:342:3: warning: Member variable 'Progress::steps' is not initialized in the constructor. [uninitMemberVar] BBHash-1.0.0/BooPHF.h:562:3: warning: Member variable 'bitVector::_nchar' is not initialized in the constructor. [uninitMemberVar] BBHash-1.0.0/BooPHF.h:823:3: warning: Member variable 'level::idx_begin' is not initialized in the constructor. [uninitMemberVar] BBHash-1.0.0/BooPHF.h:823:3: warning: Member variable 'level::hash_domain' is not initialized in the constructor. [uninitMemberVar] BBHash-1.0.0/BooPHF.h:878:3: warning: Member variable 'mphf < u_int64_t , boomphf :: SingleHashFunctor < u_int64_t > >::_nb_levels' is not initialized in the constructor. [uninitMemberVar] BBHash-1.0.0/BooPHF.h:878:3: warning: Member variable 'mphf < u_int64_t , boomphf :: SingleHashFunctor < u_int64_t > >::_tempBitset' is not initialized in the constructor. [uninitMemberVar] BBHash-1.0.0/BooPHF.h:878:3: warning: Member variable 'mphf < u_int64_t , boomphf :: SingleHashFunctor < u_int64_t > >::_gamma' is not initialized in the constructor. [uninitMemberVar] BBHash-1.0.0/BooPHF.h:878:3: warning: Member variable 'mphf < u_int64_t , boomphf :: SingleHashFunctor < u_int64_t > >::_hash_domain' is not initialized in the constructor. [uninitMemberVar] BBHash-1.0.0/BooPHF.h:878:3: warning: Member variable 'mphf < u_int64_t , boomphf :: SingleHashFunctor < u_int64_t > >::_nelem' is not initialized in the constructor. [uninitMemberVar] BBHash-1.0.0/BooPHF.h:878:3: warning: Member variable 'mphf < u_int64_t , boomphf :: SingleHashFunctor < u_int64_t > >::_nb_living' is not initialized in the constructor. [uninitMemberVar] BBHash-1.0.0/BooPHF.h:878:3: warning: Member variable 'mphf < u_int64_t , boomphf :: SingleHashFunctor < u_int64_t > >::_num_thread' is not initialized in the constructor. [uninitMemberVar] BBHash-1.0.0/BooPHF.h:878:3: warning: Member variable 'mphf < u_int64_t , boomphf :: SingleHashFunctor < u_int64_t > >::_hashidx' is not initialized in the constructor. [uninitMemberVar] BBHash-1.0.0/BooPHF.h:878:3: warning: Member variable 'mphf < u_int64_t , boomphf :: SingleHashFunctor < u_int64_t > >::_proba_collision' is not initialized in the constructor. [uninitMemberVar] BBHash-1.0.0/BooPHF.h:878:3: warning: Member variable 'mphf < u_int64_t , boomphf :: SingleHashFunctor < u_int64_t > >::_lastbitsetrank' is not initialized in the constructor. [uninitMemberVar] BBHash-1.0.0/BooPHF.h:878:3: warning: Member variable 'mphf < u_int64_t , boomphf :: SingleHashFunctor < u_int64_t > >::_idxLevelsetLevelFastmode' is not initialized in the constructor. [uninitMemberVar] BBHash-1.0.0/BooPHF.h:878:3: warning: Member variable 'mphf < u_int64_t , boomphf :: SingleHashFunctor < u_int64_t > >::_cptLevel' is not initialized in the constructor. [uninitMemberVar] BBHash-1.0.0/BooPHF.h:878:3: warning: Member variable 'mphf < u_int64_t , boomphf :: SingleHashFunctor < u_int64_t > >::_cptTotalProcessed' is not initialized in the constructor. [uninitMemberVar] BBHash-1.0.0/BooPHF.h:878:3: warning: Member variable 'mphf < u_int64_t , boomphf :: SingleHashFunctor < u_int64_t > >::_percent_elem_loaded_for_fastMode' is not initialized in the constructor. [uninitMemberVar] BBHash-1.0.0/BooPHF.h:878:3: warning: Member variable 'mphf < u_int64_t , boomphf :: SingleHashFunctor < u_int64_t > >::_fastmode' is not initialized in the constructor. [uninitMemberVar] BBHash-1.0.0/BooPHF.h:878:3: warning: Member variable 'mphf < u_int64_t , boomphf :: SingleHashFunctor < u_int64_t > >::_fastModeLevel' is not initialized in the constructor. [uninitMemberVar] BBHash-1.0.0/BooPHF.h:878:3: warning: Member variable 'mphf < u_int64_t , boomphf :: SingleHashFunctor < u_int64_t > >::_withprogress' is not initialized in the constructor. [uninitMemberVar] BBHash-1.0.0/BooPHF.h:878:3: warning: Member variable 'mphf < u_int64_t , boomphf :: SingleHashFunctor < u_int64_t > >::_writeEachLevel' is not initialized in the constructor. [uninitMemberVar] BBHash-1.0.0/BooPHF.h:878:3: warning: Member variable 'mphf < u_int64_t , boomphf :: SingleHashFunctor < u_int64_t > >::_currlevelFile' is not initialized in the constructor. [uninitMemberVar] BBHash-1.0.0/BooPHF.h:878:3: warning: Member variable 'mphf < u_int64_t , boomphf :: SingleHashFunctor < u_int64_t > >::_pid' is not initialized in the constructor. [uninitMemberVar] BBHash-1.0.0/BooPHF.h:878:3: warning: Member variable 'mphf < u_int64_t , boomphf :: SingleHashFunctor < u_int64_t > >::_mutex' is not initialized in the constructor. [uninitMemberVar] BBHash-1.0.0/bootest.cpp:223:12: style:inconclusive: Member variable 'uint64_iterator::_stop' is in the wrong place in the initializer list. [initializerList] BBHash-1.0.0/bootest.cpp:191:102: note: Member variable 'uint64_iterator::_stop' is in the wrong place in the initializer list. BBHash-1.0.0/bootest.cpp:223:12: note: Member variable 'uint64_iterator::_stop' is in the wrong place in the initializer list. BBHash-1.0.0/BooPHF.h:584:5: performance: Variable '_ranks' is assigned in constructor body. Consider performing initialization in initialization list. [useInitializationList] BBHash-1.0.0/bootest.cpp:184:3: performance: Variable '_nb_elem' is assigned in constructor body. Consider performing initialization in initialization list. [useInitializationList] BBHash-1.0.0/bootest.cpp:185:3: performance: Variable '_curr' is assigned in constructor body. Consider performing initialization in initialization list. [useInitializationList] BBHash-1.0.0/bootest.cpp:186:3: performance: Variable '_step' is assigned in constructor body. Consider performing initialization in initialization list. [useInitializationList] BBHash-1.0.0/bootest.cpp:187:3: performance: Variable '_stop' is assigned in constructor body. Consider performing initialization in initialization list. [useInitializationList] BBHash-1.0.0/bootest.cpp:188:3: performance: Variable '_nb_iterated' is assigned in constructor body. Consider performing initialization in initialization list. [useInitializationList] BBHash-1.0.0/BooPHF.h:161:17: style: The member function 'boomphf::file_binary::size' can be static. [functionStatic] BBHash-1.0.0/BooPHF.h:828:12: style:inconclusive: Technically the member function 'boomphf::level::get' can be const. [functionConst] BBHash-1.0.0/bootest.cpp:164:17: style: The member function 'file_binary::end' can be static. [functionStatic] BBHash-1.0.0/bootest.cpp:166:16: style: The member function 'file_binary::size' can be static. [functionStatic] BBHash-1.0.0/bootest.cpp:245:18: style: The member function 'uint64_range::end' can be static. [functionStatic] BBHash-1.0.0/BooPHF.h:467:18: style: The member function 'boomphf::XorshiftHashFunctors < u_int64_t , boomphf :: SingleHashFunctor < u_int64_t > >::next' can be static. [functionStatic] BBHash-1.0.0/BooPHF.h:492:12: style: The member function 'boomphf::XorshiftHashFunctors < u_int64_t , boomphf :: SingleHashFunctor < u_int64_t > >::next' can be static. [functionStatic] BBHash-1.0.0/BooPHF.h:375:18: style: The member function 'boomphf::HashFunctors < u_int64_t >::hashWithSeed' can be static. [functionStatic] BBHash-1.0.0/BooPHF.h:379:14: style:inconclusive: Technically the member function 'boomphf::HashFunctors < u_int64_t >::operator()' can be const. [functionConst] BBHash-1.0.0/BooPHF.h:142:4: warning: Class 'file_binary' does not have a copy constructor which is recommended since it has dynamic memory/resource management. [noCopyConstructor] BBHash-1.0.0/BooPHF.h:142:4: warning: Class 'file_binary' does not have a operator= which is recommended since it has dynamic memory/resource management. [noOperatorEq] BBHash-1.0.0/bootest.cpp:156:10: warning: Class 'file_binary' does not have a copy constructor which is recommended since it has dynamic memory/resource management. [noCopyConstructor] BBHash-1.0.0/bootest.cpp:156:10: warning: Class 'file_binary' does not have a operator= which is recommended since it has dynamic memory/resource management. [noOperatorEq] BBHash-1.0.0/BooPHF.h:942:5: warning: Class 'mphf < u_int64_t , boomphf :: SingleHashFunctor < u_int64_t > >' does not have a copy constructor which is recommended since it has dynamic memory/resource management. [noCopyConstructor] BBHash-1.0.0/BooPHF.h:942:5: warning: Class 'mphf < u_int64_t , boomphf :: SingleHashFunctor < u_int64_t > >' does not have a operator= which is recommended since it has dynamic memory/resource management. [noOperatorEq] BBHash-1.0.0/BooPHF.h:67:3: style: Class 'bfile_iterator' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] BBHash-1.0.0/BooPHF.h:140:3: style: Class 'file_binary' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] BBHash-1.0.0/BooPHF.h:567:3: style: Class 'bitVector' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] BBHash-1.0.0/bootest.cpp:81:2: style: Class 'bfile_iterator' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] BBHash-1.0.0/bootest.cpp:146:2: style: Class 'file_binary' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] BBHash-1.0.0/bootest.cpp:479:10: style: Condition 'argc>=4' is always true [knownConditionTrueFalse] BBHash-1.0.0/bootest.cpp:460:10: note: Assuming that condition 'argc<4' is not redundant BBHash-1.0.0/bootest.cpp:479:10: note: Condition 'argc>=4' is always true BBHash-1.0.0/bootest.cpp:567:26: error: Unhandled exception thrown in function that is an entry point. [throwInEntryPoint] BBHash-1.0.0/BooPHF.h:676:4: warning: %lli in format string (no. 1) requires 'long long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] BBHash-1.0.0/BooPHF.h:680:6: warning: %llu in format string (no. 1) requires 'unsigned long long' but the argument type is 'unsigned long'. [invalidPrintfArgType_uint] BBHash-1.0.0/BooPHF.h:686:4: portability: %lu in format string (no. 1) requires 'unsigned long' but the argument type is 'std::size_t {aka unsigned long}'. [invalidPrintfArgType_uint] BBHash-1.0.0/BooPHF.h:689:5: warning: %llu in format string (no. 1) requires 'unsigned long long' but the argument type is 'unsigned long'. [invalidPrintfArgType_uint] BBHash-1.0.0/BooPHF.h:689:5: warning: %lli in format string (no. 2) requires 'long long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] BBHash-1.0.0/bootest.cpp:413:2: portability: %lu in format string (no. 1) requires 'unsigned long' but the argument type is 'std::size_t {aka unsigned long}'. [invalidPrintfArgType_uint] BBHash-1.0.0/bootest.cpp:706:4: portability: %lu in format string (no. 1) requires 'unsigned long' but the argument type is 'std::size_t {aka unsigned long}'. [invalidPrintfArgType_uint] BBHash-1.0.0/BooPHF.h:1026:4: warning: %llu in format string (no. 1) requires 'unsigned long long' but the argument type is 'unsigned long'. [invalidPrintfArgType_uint] BBHash-1.0.0/BooPHF.h:1028:4: portability: %lu in format string (no. 1) requires 'unsigned long' but the argument type is 'std::size_t {aka unsigned long}'. [invalidPrintfArgType_uint] BBHash-1.0.0/BooPHF.h:1028:4: portability: %lu in format string (no. 3) requires 'unsigned long' but the argument type is 'std::size_t {aka unsigned long}'. [invalidPrintfArgType_uint] BBHash-1.0.0/BooPHF.h:633:4: error: Common realloc mistake: '_bitArray' nulled but not freed upon failure [memleakOnRealloc] BBHash-1.0.0/BooPHF.h:61:12: warning: If memory allocation fails, then there is a possible null pointer dereference: _buffer [nullPointerOutOfMemory] BBHash-1.0.0/BooPHF.h:60:33: note: Assuming allocation function fails BBHash-1.0.0/BooPHF.h:60:14: note: Assignment '_buffer=(basetype*)malloc(_buffsize*sizeof(basetype))', assigned value is 0 BBHash-1.0.0/BooPHF.h:61:12: note: Null pointer dereference BBHash-1.0.0/BooPHF.h:586:12: warning: If memory allocation fails, then there is a possible null pointer dereference: _bitArray [nullPointerOutOfMemory] BBHash-1.0.0/BooPHF.h:585:37: note: Assuming allocation function fails BBHash-1.0.0/BooPHF.h:585:17: note: Assignment '_bitArray=(uint64_t*)calloc(_nchar,sizeof(uint64_t))', assigned value is 0 BBHash-1.0.0/BooPHF.h:586:12: note: Null pointer dereference BBHash-1.0.0/BooPHF.h:600:12: warning: If memory allocation fails, then there is a possible null pointer dereference: _bitArray [nullPointerOutOfMemory] BBHash-1.0.0/BooPHF.h:599:37: note: Assuming allocation function fails BBHash-1.0.0/BooPHF.h:599:17: note: Assignment '_bitArray=(uint64_t*)calloc(_nchar,sizeof(uint64_t))', assigned value is 0 BBHash-1.0.0/BooPHF.h:600:12: note: Null pointer dereference BBHash-1.0.0/bootest.cpp:75:11: warning: If memory allocation fails, then there is a possible null pointer dereference: _buffer [nullPointerOutOfMemory] BBHash-1.0.0/bootest.cpp:74:33: note: Assuming allocation function fails BBHash-1.0.0/bootest.cpp:74:13: note: Assignment '_buffer=(u_int64_t*)std::malloc(_buffsize*sizeof(u_int64_t))', assigned value is 0 BBHash-1.0.0/bootest.cpp:75:11: note: Null pointer dereference BBHash-1.0.0/bootest.cpp:532:4: warning: If memory allocation fails, then there is a possible null pointer dereference: data [nullPointerOutOfMemory] BBHash-1.0.0/bootest.cpp:529:31: note: Assuming allocation function fails BBHash-1.0.0/bootest.cpp:529:10: note: Assignment 'data=(u_int64_t*)std::calloc(nelem+rab,sizeof(u_int64_t))', assigned value is 0 BBHash-1.0.0/bootest.cpp:532:4: note: Null pointer dereference BBHash-1.0.0/bootest.cpp:539:8: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: data [nullPointerOutOfMemory] BBHash-1.0.0/bootest.cpp:529:31: note: Assuming allocation function fails BBHash-1.0.0/bootest.cpp:529:10: note: Assignment 'data=(u_int64_t*)std::calloc(nelem+rab,sizeof(u_int64_t))', assigned value is 0 BBHash-1.0.0/bootest.cpp:539:8: note: Null pointer dereference BBHash-1.0.0/bootest.cpp:539:20: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: data [nullPointerOutOfMemory] BBHash-1.0.0/bootest.cpp:529:31: note: Assuming allocation function fails BBHash-1.0.0/bootest.cpp:529:10: note: Assignment 'data=(u_int64_t*)std::calloc(nelem+rab,sizeof(u_int64_t))', assigned value is 0 BBHash-1.0.0/bootest.cpp:539:20: note: Null pointer dereference BBHash-1.0.0/bootest.cpp:856:4: warning: If memory allocation fails, then there is a possible null pointer dereference: data_random [nullPointerOutOfMemory] BBHash-1.0.0/bootest.cpp:854:51: note: Assuming allocation function fails BBHash-1.0.0/bootest.cpp:854:30: note: Assignment 'data_random=(u_int64_t*)std::calloc(nrandom,sizeof(u_int64_t))', assigned value is 0 BBHash-1.0.0/bootest.cpp:856:4: note: Null pointer dereference BBHash-1.0.0/bootest.cpp:867:30: warning: If memory allocation fails, then there is a possible null pointer dereference: data_random [nullPointerOutOfMemory] BBHash-1.0.0/bootest.cpp:854:51: note: Assuming allocation function fails BBHash-1.0.0/bootest.cpp:854:30: note: Assignment 'data_random=(u_int64_t*)std::calloc(nrandom,sizeof(u_int64_t))', assigned value is 0 BBHash-1.0.0/bootest.cpp:867:30: note: Null pointer dereference BBHash-1.0.0/bootest.cpp:536:22: error:inconclusive: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] BBHash-1.0.0/bootest.cpp:529:31: note: Assuming allocation function fails BBHash-1.0.0/bootest.cpp:529:10: note: Assignment 'data=(u_int64_t*)std::calloc(nelem+rab,sizeof(u_int64_t))', assigned value is 0 BBHash-1.0.0/bootest.cpp:536:22: note: Null pointer addition BBHash-1.0.0/BooPHF.h:27:25: style: C-style pointer casting [cstyleCast] BBHash-1.0.0/BooPHF.h:27:41: style: C-style pointer casting [cstyleCast] BBHash-1.0.0/BooPHF.h:52:14: style: C-style pointer casting [cstyleCast] BBHash-1.0.0/BooPHF.h:60:14: style: C-style pointer casting [cstyleCast] BBHash-1.0.0/BooPHF.h:71:14: style: C-style pointer casting [cstyleCast] BBHash-1.0.0/BooPHF.h:570:17: style: C-style pointer casting [cstyleCast] BBHash-1.0.0/BooPHF.h:585:17: style: C-style pointer casting [cstyleCast] BBHash-1.0.0/BooPHF.h:599:17: style: C-style pointer casting [cstyleCast] BBHash-1.0.0/BooPHF.h:633:16: style: C-style pointer casting [cstyleCast] BBHash-1.0.0/BooPHF.h:1547:38: style: C-style pointer casting [cstyleCast] BBHash-1.0.0/BooPHF.h:1549:35: style: C-style pointer casting [cstyleCast] BBHash-1.0.0/bootest.cpp:66:13: style: C-style pointer casting [cstyleCast] BBHash-1.0.0/bootest.cpp:74:13: style: C-style pointer casting [cstyleCast] BBHash-1.0.0/bootest.cpp:84:13: style: C-style pointer casting [cstyleCast] BBHash-1.0.0/bootest.cpp:529:10: style: C-style pointer casting [cstyleCast] BBHash-1.0.0/bootest.cpp:854:30: style: C-style pointer casting [cstyleCast] BBHash-1.0.0/BooPHF.h:1174:13: portability:inconclusive: Casting from double * to const char * is not portable due to different binary data representations on different platforms. [invalidPointerCast] BBHash-1.0.0/BooPHF.h:1201:12: portability:inconclusive: Casting from double * to char * is not portable due to different binary data representations on different platforms. [invalidPointerCast] BBHash-1.0.0/bootest.cpp:420:9: style: The scope of the variable 'elapsed' can be reduced. [variableScope] BBHash-1.0.0/bootest.cpp:513:9: style: The scope of the variable 'bench_file' can be reduced. [variableScope] BBHash-1.0.0/bootest.cpp:519:11: style: The scope of the variable 'ii' can be reduced. [variableScope] BBHash-1.0.0/bootest.cpp:519:15: style: The scope of the variable 'jj' can be reduced. [variableScope] BBHash-1.0.0/bootest.cpp:588:11: style: The scope of the variable 'begin' can be reduced. [variableScope] BBHash-1.0.0/bootest.cpp:588:18: style: The scope of the variable 'end' can be reduced. [variableScope] BBHash-1.0.0/bootest.cpp:713:11: style: The scope of the variable 'elapsed' can be reduced. [variableScope] BBHash-1.0.0/BooPHF.h:1069:15: style: The scope of the variable 'level_hash' can be reduced. [variableScope] BBHash-1.0.0/bootest.cpp:604:11: style: Local variable 'ii' shadows outer variable [shadowVariable] BBHash-1.0.0/bootest.cpp:519:11: note: Shadowed declaration BBHash-1.0.0/bootest.cpp:604:11: note: Shadow variable BBHash-1.0.0/bootest.cpp:621:11: style: Local variable 'ii' shadows outer variable [shadowVariable] BBHash-1.0.0/bootest.cpp:519:11: note: Shadowed declaration BBHash-1.0.0/bootest.cpp:621:11: note: Shadow variable BBHash-1.0.0/bootest.cpp:626:12: style: Local variable 'ii' shadows outer variable [shadowVariable] BBHash-1.0.0/bootest.cpp:519:11: note: Shadowed declaration BBHash-1.0.0/bootest.cpp:626:12: note: Shadow variable BBHash-1.0.0/bootest.cpp:631:11: style: Local variable 'ii' shadows outer variable [shadowVariable] BBHash-1.0.0/bootest.cpp:519:11: note: Shadowed declaration BBHash-1.0.0/bootest.cpp:631:11: note: Shadow variable BBHash-1.0.0/bootest.cpp:713:11: style: Local variable 'elapsed' shadows outer variable [shadowVariable] BBHash-1.0.0/bootest.cpp:655:10: note: Shadowed declaration BBHash-1.0.0/bootest.cpp:713:11: note: Shadow variable BBHash-1.0.0/bootest.cpp:717:17: style: Local variable 'ii' shadows outer variable [shadowVariable] BBHash-1.0.0/bootest.cpp:519:11: note: Shadowed declaration BBHash-1.0.0/bootest.cpp:717:17: note: Shadow variable BBHash-1.0.0/bootest.cpp:865:15: style: Local variable 'ii' shadows outer variable [shadowVariable] BBHash-1.0.0/bootest.cpp:519:11: note: Shadowed declaration BBHash-1.0.0/bootest.cpp:865:15: note: Shadow variable BBHash-1.0.0/bootest.cpp:886:15: style: Local variable 'ii' shadows outer variable [shadowVariable] BBHash-1.0.0/bootest.cpp:519:11: note: Shadowed declaration BBHash-1.0.0/bootest.cpp:886:15: note: Shadow variable BBHash-1.0.0/bootest.cpp:446:27: style: Parameter 'argv' can be declared as const array [constParameter] BBHash-1.0.0/BooPHF.h:27:19: style: Variable 'ptc' can be declared as pointer to const [constVariablePointer] BBHash-1.0.0/BooPHF.h:256:43: style: Consider using std::accumulate algorithm instead of a raw loop. [useStlAlgorithm] BBHash-1.0.0/BooPHF.h:257:46: style: Consider using std::accumulate algorithm instead of a raw loop. [useStlAlgorithm] BBHash-1.0.0/BooPHF.h:312:51: style: Consider using std::accumulate algorithm instead of a raw loop. [useStlAlgorithm] BBHash-1.0.0/bootest.cpp:410:10: style: Consider using std::copy algorithm instead of a raw loop. [useStlAlgorithm] BBHash-1.0.0/bootest.cpp:703:12: style: Consider using std::copy algorithm instead of a raw loop. [useStlAlgorithm] BBHash-1.0.0/BooPHF.h:1021:21: style: Consider using std::accumulate algorithm instead of a raw loop. [useStlAlgorithm] BBHash-1.0.0/BooPHF.h:72:13: style: Variable 'reso' is assigned a value that is never used. [unreadVariable] BBHash-1.0.0/BooPHF.h:255:15: style: Variable 'rem' is assigned a value that is never used. [unreadVariable] BBHash-1.0.0/bootest.cpp:85:12: style: Variable 'reso' is assigned a value that is never used. [unreadVariable] BBHash-1.0.0/bootest.cpp:665:10: style: Variable 'begin' is assigned a value that is never used. [unreadVariable] BBHash-1.0.0/bootest.cpp:689:8: style: Variable 'end' is assigned a value that is never used. [unreadVariable] BBHash-1.0.0/bootest.cpp:750:10: style: Unused variable: begin [unusedVariable] BBHash-1.0.0/bootest.cpp:750:17: style: Unused variable: end [unusedVariable] BBHash-1.0.0/BooPHF.h:1165:15: style: Variable 'writebuff' is assigned a value that is never used. [unreadVariable] BBHash-1.0.0/BooPHF.h:1281:20: style: Variable 'sum_geom' is assigned a value that is never used. [unreadVariable] BBHash-1.0.0/example.cpp:39:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable default_seed [valueFlowBailoutIncompleteVar] BBHash-1.0.0/example.cpp:28:10: style: Condition 'argc==3' is always true [knownConditionTrueFalse] BBHash-1.0.0/example.cpp:22:10: note: Assuming that condition 'argc!=3' is not redundant BBHash-1.0.0/example.cpp:28:10: note: Condition 'argc==3' is always true BBHash-1.0.0/example.cpp:87:2: warning: %llu in format string (no. 2) requires 'unsigned long long' but the argument type is 'unsigned long'. [invalidPrintfArgType_uint] BBHash-1.0.0/example.cpp:45:3: warning: If memory allocation fails, then there is a possible null pointer dereference: data [nullPointerOutOfMemory] BBHash-1.0.0/example.cpp:42:30: note: Assuming allocation function fails BBHash-1.0.0/example.cpp:42:9: note: Assignment 'data=(u_int64_t*)std::calloc(nelem+rab,sizeof(u_int64_t))', assigned value is 0 BBHash-1.0.0/example.cpp:45:3: note: Null pointer dereference BBHash-1.0.0/example.cpp:52:7: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: data [nullPointerOutOfMemory] BBHash-1.0.0/example.cpp:42:30: note: Assuming allocation function fails BBHash-1.0.0/example.cpp:42:9: note: Assignment 'data=(u_int64_t*)std::calloc(nelem+rab,sizeof(u_int64_t))', assigned value is 0 BBHash-1.0.0/example.cpp:52:7: note: Null pointer dereference BBHash-1.0.0/example.cpp:52:19: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: data [nullPointerOutOfMemory] BBHash-1.0.0/example.cpp:42:30: note: Assuming allocation function fails BBHash-1.0.0/example.cpp:42:9: note: Assignment 'data=(u_int64_t*)std::calloc(nelem+rab,sizeof(u_int64_t))', assigned value is 0 BBHash-1.0.0/example.cpp:52:19: note: Null pointer dereference BBHash-1.0.0/example.cpp:49:21: error:inconclusive: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] BBHash-1.0.0/example.cpp:42:30: note: Assuming allocation function fails BBHash-1.0.0/example.cpp:42:9: note: Assignment 'data=(u_int64_t*)std::calloc(nelem+rab,sizeof(u_int64_t))', assigned value is 0 BBHash-1.0.0/example.cpp:49:21: note: Null pointer addition BBHash-1.0.0/example.cpp:42:9: style: C-style pointer casting [cstyleCast] BBHash-1.0.0/example.cpp:16:27: style: Parameter 'argv' can be declared as const array [constParameter] BBHash-1.0.0/example_custom_hash.cpp:66:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable default_seed [valueFlowBailoutIncompleteVar] BBHash-1.0.0/BooPHF.h:878:3: warning: Member variable 'mphf < u_int64_t , Custom_uint64_Hasher >::_nb_levels' is not initialized in the constructor. [uninitMemberVar] BBHash-1.0.0/BooPHF.h:878:3: warning: Member variable 'mphf < u_int64_t , Custom_uint64_Hasher >::_tempBitset' is not initialized in the constructor. [uninitMemberVar] BBHash-1.0.0/BooPHF.h:878:3: warning: Member variable 'mphf < u_int64_t , Custom_uint64_Hasher >::_gamma' is not initialized in the constructor. [uninitMemberVar] BBHash-1.0.0/BooPHF.h:878:3: warning: Member variable 'mphf < u_int64_t , Custom_uint64_Hasher >::_hash_domain' is not initialized in the constructor. [uninitMemberVar] BBHash-1.0.0/BooPHF.h:878:3: warning: Member variable 'mphf < u_int64_t , Custom_uint64_Hasher >::_nelem' is not initialized in the constructor. [uninitMemberVar] BBHash-1.0.0/BooPHF.h:878:3: warning: Member variable 'mphf < u_int64_t , Custom_uint64_Hasher >::_nb_living' is not initialized in the constructor. [uninitMemberVar] BBHash-1.0.0/BooPHF.h:878:3: warning: Member variable 'mphf < u_int64_t , Custom_uint64_Hasher >::_num_thread' is not initialized in the constructor. [uninitMemberVar] BBHash-1.0.0/BooPHF.h:878:3: warning: Member variable 'mphf < u_int64_t , Custom_uint64_Hasher >::_hashidx' is not initialized in the constructor. [uninitMemberVar] BBHash-1.0.0/BooPHF.h:878:3: warning: Member variable 'mphf < u_int64_t , Custom_uint64_Hasher >::_proba_collision' is not initialized in the constructor. [uninitMemberVar] BBHash-1.0.0/BooPHF.h:878:3: warning: Member variable 'mphf < u_int64_t , Custom_uint64_Hasher >::_lastbitsetrank' is not initialized in the constructor. [uninitMemberVar] BBHash-1.0.0/BooPHF.h:878:3: warning: Member variable 'mphf < u_int64_t , Custom_uint64_Hasher >::_idxLevelsetLevelFastmode' is not initialized in the constructor. [uninitMemberVar] BBHash-1.0.0/BooPHF.h:878:3: warning: Member variable 'mphf < u_int64_t , Custom_uint64_Hasher >::_cptLevel' is not initialized in the constructor. [uninitMemberVar] BBHash-1.0.0/BooPHF.h:878:3: warning: Member variable 'mphf < u_int64_t , Custom_uint64_Hasher >::_cptTotalProcessed' is not initialized in the constructor. [uninitMemberVar] BBHash-1.0.0/BooPHF.h:878:3: warning: Member variable 'mphf < u_int64_t , Custom_uint64_Hasher >::_percent_elem_loaded_for_fastMode' is not initialized in the constructor. [uninitMemberVar] BBHash-1.0.0/BooPHF.h:878:3: warning: Member variable 'mphf < u_int64_t , Custom_uint64_Hasher >::_fastmode' is not initialized in the constructor. [uninitMemberVar] BBHash-1.0.0/BooPHF.h:878:3: warning: Member variable 'mphf < u_int64_t , Custom_uint64_Hasher >::_fastModeLevel' is not initialized in the constructor. [uninitMemberVar] BBHash-1.0.0/BooPHF.h:878:3: warning: Member variable 'mphf < u_int64_t , Custom_uint64_Hasher >::_withprogress' is not initialized in the constructor. [uninitMemberVar] BBHash-1.0.0/BooPHF.h:878:3: warning: Member variable 'mphf < u_int64_t , Custom_uint64_Hasher >::_writeEachLevel' is not initialized in the constructor. [uninitMemberVar] BBHash-1.0.0/BooPHF.h:878:3: warning: Member variable 'mphf < u_int64_t , Custom_uint64_Hasher >::_currlevelFile' is not initialized in the constructor. [uninitMemberVar] BBHash-1.0.0/BooPHF.h:878:3: warning: Member variable 'mphf < u_int64_t , Custom_uint64_Hasher >::_pid' is not initialized in the constructor. [uninitMemberVar] BBHash-1.0.0/BooPHF.h:878:3: warning: Member variable 'mphf < u_int64_t , Custom_uint64_Hasher >::_mutex' is not initialized in the constructor. [uninitMemberVar] BBHash-1.0.0/BooPHF.h:375:18: style: The member function 'boomphf::HashFunctors::hashWithSeed' can be static. [functionStatic] BBHash-1.0.0/BooPHF.h:379:14: style:inconclusive: Technically the member function 'boomphf::HashFunctors::operator()' can be const. [functionConst] BBHash-1.0.0/BooPHF.h:467:18: style: The member function 'boomphf::XorshiftHashFunctors < u_int64_t , Custom_uint64_Hasher >::next' can be static. [functionStatic] BBHash-1.0.0/BooPHF.h:492:12: style: The member function 'boomphf::XorshiftHashFunctors < u_int64_t , Custom_uint64_Hasher >::next' can be static. [functionStatic] BBHash-1.0.0/BooPHF.h:942:5: warning: Class 'mphf < u_int64_t , Custom_uint64_Hasher >' does not have a copy constructor which is recommended since it has dynamic memory/resource management. [noCopyConstructor] BBHash-1.0.0/BooPHF.h:942:5: warning: Class 'mphf < u_int64_t , Custom_uint64_Hasher >' does not have a operator= which is recommended since it has dynamic memory/resource management. [noOperatorEq] BBHash-1.0.0/example_custom_hash.cpp:55:10: style: Condition 'argc==3' is always true [knownConditionTrueFalse] BBHash-1.0.0/example_custom_hash.cpp:49:10: note: Assuming that condition 'argc!=3' is not redundant BBHash-1.0.0/example_custom_hash.cpp:55:10: note: Condition 'argc==3' is always true BBHash-1.0.0/example_custom_hash.cpp:115:2: warning: %llu in format string (no. 2) requires 'unsigned long long' but the argument type is 'unsigned long'. [invalidPrintfArgType_uint] BBHash-1.0.0/example_custom_hash.cpp:72:3: warning: If memory allocation fails, then there is a possible null pointer dereference: data [nullPointerOutOfMemory] BBHash-1.0.0/example_custom_hash.cpp:69:30: note: Assuming allocation function fails BBHash-1.0.0/example_custom_hash.cpp:69:9: note: Assignment 'data=(u_int64_t*)std::calloc(nelem+rab,sizeof(u_int64_t))', assigned value is 0 BBHash-1.0.0/example_custom_hash.cpp:72:3: note: Null pointer dereference BBHash-1.0.0/example_custom_hash.cpp:79:7: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: data [nullPointerOutOfMemory] BBHash-1.0.0/example_custom_hash.cpp:69:30: note: Assuming allocation function fails BBHash-1.0.0/example_custom_hash.cpp:69:9: note: Assignment 'data=(u_int64_t*)std::calloc(nelem+rab,sizeof(u_int64_t))', assigned value is 0 BBHash-1.0.0/example_custom_hash.cpp:79:7: note: Null pointer dereference BBHash-1.0.0/example_custom_hash.cpp:79:19: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: data [nullPointerOutOfMemory] BBHash-1.0.0/example_custom_hash.cpp:69:30: note: Assuming allocation function fails BBHash-1.0.0/example_custom_hash.cpp:69:9: note: Assignment 'data=(u_int64_t*)std::calloc(nelem+rab,sizeof(u_int64_t))', assigned value is 0 BBHash-1.0.0/example_custom_hash.cpp:79:19: note: Null pointer dereference BBHash-1.0.0/example_custom_hash.cpp:76:21: error:inconclusive: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] BBHash-1.0.0/example_custom_hash.cpp:69:30: note: Assuming allocation function fails BBHash-1.0.0/example_custom_hash.cpp:69:9: note: Assignment 'data=(u_int64_t*)std::calloc(nelem+rab,sizeof(u_int64_t))', assigned value is 0 BBHash-1.0.0/example_custom_hash.cpp:76:21: note: Null pointer addition BBHash-1.0.0/example_custom_hash.cpp:69:9: style: C-style pointer casting [cstyleCast] BBHash-1.0.0/example_custom_hash.cpp:43:27: style: Parameter 'argv' can be declared as const array [constParameter] diff: DONE