2024-03-28 03:30 ftp://ftp.de.debian.org/debian/pool/main/libv/libvhdi/libvhdi_20210425.orig.tar.gz cppcheck-options: --library=posix --library=gnu --showtime=top5 --check-library --inconclusive --enable=style,information --inline-suppr --disable=missingInclude --suppress=unmatchedSuppression --template=daca2 --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning --suppress=valueFlowBailoutIncompleteVar -D__GNUC__ --platform=unix64 -j4 platform: Linux-6.1.0-0.deb11.6-amd64-x86_64-with-glibc2.31 python: 3.9.2 client-version: 1.3.45 compiler: g++ (Debian 10.2.1-6) 10.2.1 20210110 cppcheck: head 2.13.0 head-info: 98951f5 (2024-03-27 21:50:05 +0100) count: 276 279 elapsed-time: 12.4 17.0 head-timing-info: Tokenizer::simplifyTokens1::ValueFlow: 0.039668s (avg. 0.039668s - 1 result(s)) valueFlowAfterAssign(tokenlist, symboldatabase, errorLogger, settings, skippedFunctions): 0.021865s (avg. 0.0109325s - 2 result(s)) valueFlowCondition(SimpleConditionHandler{}, tokenlist, symboldatabase, errorLogger, settings, skippedFunctions): 0.009107s (avg. 0.0045535s - 2 result(s)) Tokenizer::simplifyTokens1::createSymbolDatabase: 0.006036s (avg. 0.006036s - 1 result(s)) Tokenizer::simplifyTokens1::simplifyTokenList1: 0.003986s (avg. 0.003986s - 1 result(s)) Overall time: 0.065634s old-timing-info: Tokenizer::simplifyTokens1::ValueFlow: 0.029746s (avg. 0.029746s - 1 result(s)) valueFlowAfterAssign(tokenlist, symboldatabase, errorLogger, settings, skippedFunctions): 0.015552s (avg. 0.007776s - 2 result(s)) valueFlowCondition(SimpleConditionHandler{}, tokenlist, symboldatabase, errorLogger, settings, skippedFunctions): 0.005942s (avg. 0.002971s - 2 result(s)) Tokenizer::simplifyTokens1::createSymbolDatabase: 0.005696s (avg. 0.005696s - 1 result(s)) Tokenizer::simplifyTokens1::simplifyTokenList1: 0.003515s (avg. 0.003515s - 1 result(s)) Overall time: 0.053648s head results: libvhdi-20210425/libbfio/libbfio_file_pool.c:271:35: style: Variable 'name_length' is assigned a value that is never used. [unreadVariable] libvhdi-20210425/libbfio/libbfio_file_io_handle.c:308:32: style: Parameter 'file_io_handle' can be declared as pointer to const [constParameterPointer] libvhdi-20210425/libbfio/libbfio_file_io_handle.c:348:32: style: Parameter 'file_io_handle' can be declared as pointer to const [constParameterPointer] libvhdi-20210425/libbfio/libbfio_memory_range_io_handle.c:773:40: style: Parameter 'memory_range_io_handle' can be declared as pointer to const [constParameterPointer] libvhdi-20210425/libbfio/libbfio_memory_range_io_handle.c:800:40: style: Parameter 'memory_range_io_handle' can be declared as pointer to const [constParameterPointer] libvhdi-20210425/libbfio/libbfio_file_range_io_handle.c:513:38: style: Parameter 'file_range_io_handle' can be declared as pointer to const [constParameterPointer] libvhdi-20210425/libbfio/libbfio_file_range_io_handle.c:914:24: style: Variable 'file_offset' is assigned a value that is never used. [unreadVariable] libvhdi-20210425/libcdata/libcdata_btree.c:44:10: style:inconclusive: Function 'libcdata_btree_initialize' argument 2 names different: declaration 'maximum_number_of_sub_nodes' definition 'maximum_number_of_values'. [funcArgNamesDifferent] libvhdi-20210425/libcdata/libcdata_btree.h:67:10: note: Function 'libcdata_btree_initialize' argument 2 names different: declaration 'maximum_number_of_sub_nodes' definition 'maximum_number_of_values'. libvhdi-20210425/libcdata/libcdata_btree.c:44:10: note: Function 'libcdata_btree_initialize' argument 2 names different: declaration 'maximum_number_of_sub_nodes' definition 'maximum_number_of_values'. libvhdi-20210425/libbfio/libbfio_handle.c:2104:29: style: Variable 'internal_handle' can be declared as pointer to const [constVariablePointer] libvhdi-20210425/libbfio/libbfio_handle.c:2245:29: style: Variable 'internal_handle' can be declared as pointer to const [constVariablePointer] libvhdi-20210425/libbfio/libbfio_handle.c:991:24: style: Variable 'is_open' is assigned a value that is never used. [unreadVariable] libvhdi-20210425/libbfio/libbfio_handle.c:992:24: style: Variable 'result' is assigned a value that is never used. [unreadVariable] libvhdi-20210425/libcdata/libcdata_array.c:827:35: style: Condition 'internal_array->entries!=NULL' is always true [knownConditionTrueFalse] libvhdi-20210425/libcdata/libcdata_array.c:1036:29: style: Variable 'internal_array' can be declared as pointer to const [constVariablePointer] libvhdi-20210425/libcdata/libcdata_array.c:379:24: style: Variable 'entry_free_result' is assigned a value that is never used. [unreadVariable] libvhdi-20210425/libcdata/libcdata_array.c:715:34: style: Variable 'entries_size' is assigned a value that is never used. [unreadVariable] libvhdi-20210425/libcdata/libcdata_array.c:716:34: style: Variable 'entry_iterator' is assigned a value that is never used. [unreadVariable] libvhdi-20210425/libcdata/libcdata_array.c:717:34: style: Variable 'number_of_allocated_entries' is assigned a value that is never used. [unreadVariable] libvhdi-20210425/libcdata/libcdata_array.c:955:44: style: Variable 'reverse_entry_iterator' is assigned a value that is never used. [unreadVariable] libvhdi-20210425/libcdata/libcdata_array.c:1212:44: style: Variable 'compare_result' is assigned a value that is never used. [unreadVariable] libvhdi-20210425/libcdata/libcdata_array.c:1432:44: style: Variable 'entry_iterator' is assigned a value that is never used. [unreadVariable] libvhdi-20210425/libbfio/libbfio_pool.c:1771:13: style: The if condition is the same as the previous if condition [duplicateCondition] libvhdi-20210425/libbfio/libbfio_pool.c:1752:13: note: First condition libvhdi-20210425/libbfio/libbfio_pool.c:1771:13: note: Second condition libvhdi-20210425/libbfio/libbfio_pool.c:554:29: style: Variable 'internal_handle' can be declared as pointer to const [constVariablePointer] libvhdi-20210425/libbfio/libbfio_pool.c:1806:27: style: Variable 'internal_pool' can be declared as pointer to const [constVariablePointer] libvhdi-20210425/libbfio/libbfio_pool.c:2691:32: style: Variable 'is_open' is assigned a value that is never used. [unreadVariable] libvhdi-20210425/libcdata/libcdata_btree_node.c:67:52: style: Variable 'result' is assigned a value that is never used. [unreadVariable] libvhdi-20210425/libcdata/libcdata_range_list_value.c:388:35: style: Parameter 'range_list_value' can be declared as pointer to const [constParameterPointer] libvhdi-20210425/libcerror/libcerror_error.c:34:0: error: #error Missing headers stdarg.h and varargs.h [preprocessorErrorDirective] libvhdi-20210425/libcerror/libcerror_system.c:42:0: error: #error Missing headers stdarg.h and varargs.h [preprocessorErrorDirective] libvhdi-20210425/libcfile/libcfile_file.c:757:0: error: #error Missing file open function [preprocessorErrorDirective] libvhdi-20210425/libcfile/libcfile_support.c:363:0: error: #error Missing file exists function [preprocessorErrorDirective] libvhdi-20210425/libcdata/libcdata_list.c:568:28: style: Variable 'internal_list' can be declared as pointer to const [constVariablePointer] libvhdi-20210425/libcdata/libcdata_list.c:206:42: style: Variable 'element_index' is assigned a value that is never used. [unreadVariable] libvhdi-20210425/libcdata/libcdata_list.c:207:42: style: Variable 'number_of_elements' is assigned a value that is never used. [unreadVariable] libvhdi-20210425/libclocale/libclocale_locale.c:141:16: style: Condition '*codepage==-1' is always true [knownConditionTrueFalse] libvhdi-20210425/libclocale/libclocale_locale.c:139:15: note: Assignment '*codepage=-1', assigned value is -1 libvhdi-20210425/libclocale/libclocale_locale.c:141:16: note: Condition '*codepage==-1' is always true libvhdi-20210425/libclocale/libclocale_locale.c:308:16: style: Condition 'charset!=NULL' is always false [knownConditionTrueFalse] libvhdi-20210425/libclocale/libclocale_locale.c:288:26: note: Assignment 'charset=NULL', assigned value is 0 libvhdi-20210425/libclocale/libclocale_locale.c:293:15: note: Assuming condition is false libvhdi-20210425/libclocale/libclocale_locale.c:308:16: note: Condition 'charset!=NULL' is always false libvhdi-20210425/libclocale/libclocale_locale.c:355:16: style: Condition 'locale==NULL' is always true [knownConditionTrueFalse] libvhdi-20210425/libclocale/libclocale_locale.c:287:26: note: Assignment 'locale=NULL', assigned value is 0 libvhdi-20210425/libclocale/libclocale_locale.c:293:15: note: Assuming condition is false libvhdi-20210425/libclocale/libclocale_locale.c:355:16: note: Condition 'locale==NULL' is always true libvhdi-20210425/libclocale/libclocale_locale.c:291:24: style: Variable 'locale_length' is assigned a value that is never used. [unreadVariable] libvhdi-20210425/libcnotify/libcnotify_print.c:32:0: error: #error Missing headers stdarg.h and varargs.h [preprocessorErrorDirective] libvhdi-20210425/libcpath/libcpath_path.c:236:0: error: #error Missing change directory function [preprocessorErrorDirective] libvhdi-20210425/libcsplit/libcsplit_narrow_split_string.c:340:44: style: Variable 'internal_split_string' can be declared as pointer to const [constVariablePointer] libvhdi-20210425/libcsplit/libcsplit_narrow_split_string.c:450:66: style: Variable 'string_segment_offset' is assigned a value that is never used. [unreadVariable] libvhdi-20210425/libcsplit/libcsplit_narrow_string.c:144:21: style: Condition 'segment_end!=NULL' is always true [knownConditionTrueFalse] libvhdi-20210425/libcsplit/libcsplit_narrow_string.c:43:8: style: Variable 'string_end' can be declared as pointer to const [constVariablePointer] libvhdi-20210425/libcthreads/libcthreads_condition.h:83:0: error: #error Missing condition type [preprocessorErrorDirective] libvhdi-20210425/libcthreads/libcthreads_lock.h:57:0: error: #error Missing lock type [preprocessorErrorDirective] libvhdi-20210425/libcthreads/libcthreads_mutex.h:62:0: error: #error Missing mutex type [preprocessorErrorDirective] libvhdi-20210425/libcthreads/libcthreads_read_write_lock.h:78:0: error: #error Missing read/write lock type [preprocessorErrorDirective] libvhdi-20210425/libcdata/libcdata_range_list.c:4001:22: style: Condition 'range_offset>=range_list_value->start' is always true [knownConditionTrueFalse] libvhdi-20210425/libcdata/libcdata_range_list.c:3997:20: note: Assuming that condition 'range_offsetstart' is not redundant libvhdi-20210425/libcdata/libcdata_range_list.c:4001:22: note: Condition 'range_offset>=range_list_value->start' is always true libvhdi-20210425/libcdata/libcdata_tree_node.c:230:28: style:inconclusive: Function 'libcdata_tree_node_empty' argument 1 names different: declaration 'node' definition 'tree_node'. [funcArgNamesDifferent] libvhdi-20210425/libcdata/libcdata_tree_node.h:91:28: note: Function 'libcdata_tree_node_empty' argument 1 names different: declaration 'node' definition 'tree_node'. libvhdi-20210425/libcdata/libcdata_tree_node.c:230:28: note: Function 'libcdata_tree_node_empty' argument 1 names different: declaration 'node' definition 'tree_node'. libvhdi-20210425/libcdata/libcdata_tree_node.c:3809:33: style: Variable 'internal_node' can be declared as pointer to const [constVariablePointer] libvhdi-20210425/libcthreads/libcthreads_thread_attributes.h:57:0: error: #error Missing thread attributes type [preprocessorErrorDirective] libvhdi-20210425/libcthreads/libcthreads_thread.h:61:0: error: #error Missing thread type [preprocessorErrorDirective] libvhdi-20210425/libcdata/libcdata_range_list.c:198:38: style: Parameter 'internal_range_list' can be declared as pointer to const [constParameterPointer] libvhdi-20210425/libcdata/libcdata_range_list.c:639:34: style: Variable 'internal_range_list' can be declared as pointer to const [constVariablePointer] libvhdi-20210425/libcdata/libcdata_range_list.c:1630:38: style: Parameter 'internal_range_list' can be declared as pointer to const [constParameterPointer] libvhdi-20210425/libcdata/libcdata_range_list.c:2220:38: style: Parameter 'internal_range_list' can be declared as pointer to const [constParameterPointer] libvhdi-20210425/libcdata/libcdata_range_list.c:3143:38: style: Parameter 'internal_range_list' can be declared as pointer to const [constParameterPointer] libvhdi-20210425/libcdata/libcdata_range_list.c:3144:31: style: Parameter 'range_list_element' can be declared as pointer to const [constParameterPointer] libvhdi-20210425/libcdata/libcdata_range_list.c:294:54: style: Variable 'element_index' is assigned a value that is never used. [unreadVariable] libvhdi-20210425/libcdata/libcdata_range_list.c:295:54: style: Variable 'number_of_elements' is assigned a value that is never used. [unreadVariable] libvhdi-20210425/libcdata/libcdata_range_list.c:1380:48: style: Variable 'last_element_index' is assigned a value that is never used. [unreadVariable] libvhdi-20210425/libcdata/libcdata_range_list.c:2335:53: style: Variable 'result' is assigned a value that is never used. [unreadVariable] libvhdi-20210425/libcdata/libcdata_range_list.c:3024:55: style: Variable 'result' is assigned a value that is never used. [unreadVariable] libvhdi-20210425/libfcache/libfcache_cache_value.c:225:36: style: Variable 'internal_cache_value' can be declared as pointer to const [constVariablePointer] libvhdi-20210425/libfcache/libfcache_cache_value.c:289:36: style: Variable 'internal_cache_value' can be declared as pointer to const [constVariablePointer] libvhdi-20210425/libfdata/libfdata_list_element.c:348:36: style: Variable 'internal_element' can be declared as pointer to const [constVariablePointer] libvhdi-20210425/libfdata/libfdata_list_element.c:428:36: style: Variable 'internal_element' can be declared as pointer to const [constVariablePointer] libvhdi-20210425/libfdata/libfdata_list_element.c:614:36: style: Variable 'internal_element' can be declared as pointer to const [constVariablePointer] libvhdi-20210425/libfdata/libfdata_mapped_range.c:217:31: style: Parameter 'mapped_range' can be declared as pointer to const [constParameterPointer] libvhdi-20210425/libfdata/libfdata_range.c:218:24: style: Parameter 'range' can be declared as pointer to const [constParameterPointer] libvhdi-20210425/libfdata/libfdata_range.c:294:24: style: Parameter 'range' can be declared as pointer to const [constParameterPointer] libvhdi-20210425/libfcache/libfcache_cache.c:434:11: style:inconclusive: Function 'libfcache_cache_get_number_of_cache_values' argument 2 names different: declaration 'number_of_values' definition 'number_of_cache_values'. [funcArgNamesDifferent] libvhdi-20210425/libfcache/libfcache_cache.h:92:11: note: Function 'libfcache_cache_get_number_of_cache_values' argument 2 names different: declaration 'number_of_values' definition 'number_of_cache_values'. libvhdi-20210425/libfcache/libfcache_cache.c:434:11: note: Function 'libfcache_cache_get_number_of_cache_values' argument 2 names different: declaration 'number_of_values' definition 'number_of_cache_values'. libvhdi-20210425/libfdata/libfdata_area.c:871:28: style: Variable 'internal_area' can be declared as pointer to const [constVariablePointer] libvhdi-20210425/libfdata/libfdata_area.c:926:42: style: Variable 'cache_entry_index' is assigned a value that is never used. [unreadVariable] libvhdi-20210425/libfdata/libfdata_tree.c:751:23: style: Parameter 'tree' can be declared as pointer to const [constParameterPointer] libvhdi-20210425/libfdata/libfdata_tree.c:448:42: style: Variable 'cache_entry_index' is assigned a value that is never used. [unreadVariable] libvhdi-20210425/libfdata/libfdata_stream.c:2483:30: style: Variable 'internal_stream' can be declared as pointer to const [constVariablePointer] libvhdi-20210425/libfdata/libfdata_stream.c:1022:46: style: Variable 'mapped_range_end_offset' is assigned a value that is never used. [unreadVariable] libvhdi-20210425/libfdata/libfdata_stream.c:1512:46: style: Variable 'result_offset' is assigned a value that is never used. [unreadVariable] libvhdi-20210425/libfdata/libfdata_stream.c:1518:46: style: Variable 'read_size' is assigned a value that is never used. [unreadVariable] libvhdi-20210425/libfdata/libfdata_stream.c:1519:46: style: Variable 'read_count' is assigned a value that is never used. [unreadVariable] libvhdi-20210425/libfdata/libfdata_stream.c:1886:46: style: Variable 'result_offset' is assigned a value that is never used. [unreadVariable] libvhdi-20210425/libfdata/libfdata_stream.c:1891:46: style: Variable 'write_size' is assigned a value that is never used. [unreadVariable] libvhdi-20210425/libfdata/libfdata_stream.c:1892:46: style: Variable 'write_count' is assigned a value that is never used. [unreadVariable] libvhdi-20210425/libfdata/libfdata_stream.c:1895:46: style: Variable 'result' is assigned a value that is never used. [unreadVariable] libvhdi-20210425/libfdata/libfdata_list.c:2075:28: style: Variable 'internal_list' can be declared as pointer to const [constVariablePointer] libvhdi-20210425/libfdata/libfdata_list.c:3700:23: style: Parameter 'list' can be declared as pointer to const [constParameterPointer] libvhdi-20210425/libfdata/libfdata_list.c:4130:23: style: Parameter 'list' can be declared as pointer to const [constParameterPointer] libvhdi-20210425/libfdata/libfdata_list.c:889:42: style: Variable 'result' is assigned a value that is never used. [unreadVariable] libvhdi-20210425/libfdata/libfdata_list.c:2400:42: style: Variable 'result' is assigned a value that is never used. [unreadVariable] libvhdi-20210425/libfdata/libfdata_list.c:2930:40: style: Variable 'result' is assigned a value that is never used. [unreadVariable] libvhdi-20210425/libfdata/libfdata_list.c:3102:42: style: Variable 'mapped_range_end_offset' is assigned a value that is never used. [unreadVariable] libvhdi-20210425/libfdata/libfdata_vector.c:875:30: style: Variable 'internal_vector' can be declared as pointer to const [constVariablePointer] libvhdi-20210425/libfdata/libfdata_vector.c:915:30: style: Variable 'internal_vector' can be declared as pointer to const [constVariablePointer] libvhdi-20210425/libfdata/libfdata_vector.c:992:46: style: Variable 'mapped_range_end_offset' is assigned a value that is never used. [unreadVariable] libvhdi-20210425/libfdata/libfdata_vector.c:994:46: style: Variable 'segment_data_offset' is assigned a value that is never used. [unreadVariable] libvhdi-20210425/libfdata/libfdata_vector.c:996:46: style: Variable 'calculated_element_index' is assigned a value that is never used. [unreadVariable] libvhdi-20210425/libfdata/libfdata_vector.c:1293:24: style: Variable 'segment_data_offset' is assigned a value that is never used. [unreadVariable] libvhdi-20210425/libfdata/libfdata_tree_node.c:774:10: style:inconclusive: Function 'libfdata_tree_node_set_first_leaf_node_index' argument 3 names different: declaration 'deleted_first_leaf_node_index' definition 'first_deleted_leaf_node_index'. [funcArgNamesDifferent] libvhdi-20210425/libfdata/libfdata_tree_node.h:174:10: note: Function 'libfdata_tree_node_set_first_leaf_node_index' argument 3 names different: declaration 'deleted_first_leaf_node_index' definition 'first_deleted_leaf_node_index'. libvhdi-20210425/libfdata/libfdata_tree_node.c:774:10: note: Function 'libfdata_tree_node_set_first_leaf_node_index' argument 3 names different: declaration 'deleted_first_leaf_node_index' definition 'first_deleted_leaf_node_index'. libvhdi-20210425/libfdata/libfdata_tree_node.c:362:33: style: Variable 'internal_tree_node' can be declared as pointer to const [constVariablePointer] libvhdi-20210425/libfdata/libfdata_tree_node.c:510:33: style: Variable 'internal_tree_node' can be declared as pointer to const [constVariablePointer] libvhdi-20210425/libfdata/libfdata_tree_node.c:683:33: style: Variable 'internal_tree_node' can be declared as pointer to const [constVariablePointer] libvhdi-20210425/libfdata/libfdata_tree_node.c:724:33: style: Variable 'internal_tree_node' can be declared as pointer to const [constVariablePointer] libvhdi-20210425/libfdata/libfdata_tree_node.c:2251:33: style: Variable 'internal_tree_node' can be declared as pointer to const [constVariablePointer] libvhdi-20210425/libfdata/libfdata_tree_node.c:2459:52: style: Variable 'result' is assigned a value that is never used. [unreadVariable] libvhdi-20210425/libfdata/libfdata_tree_node.c:2962:52: style: Variable 'result' is assigned a value that is never used. [unreadVariable] libvhdi-20210425/libfdata/libfdata_tree_node.c:3253:52: style: Variable 'result' is assigned a value that is never used. [unreadVariable] libvhdi-20210425/libfguid/libfguid_identifier.c:464:13: style:inconclusive: Function 'libfguid_identifier_copy_from_utf8_string' argument 3 names different: declaration 'utf8_string_length' definition 'utf8_string_size'. [funcArgNamesDifferent] libvhdi-20210425/libfguid/libfguid_identifier.h:101:13: note: Function 'libfguid_identifier_copy_from_utf8_string' argument 3 names different: declaration 'utf8_string_length' definition 'utf8_string_size'. libvhdi-20210425/libfguid/libfguid_identifier.c:464:13: note: Function 'libfguid_identifier_copy_from_utf8_string' argument 3 names different: declaration 'utf8_string_length' definition 'utf8_string_size'. libvhdi-20210425/libfguid/libfguid_identifier.c:1153:13: style:inconclusive: Function 'libfguid_identifier_copy_from_utf16_string' argument 3 names different: declaration 'utf16_string_length' definition 'utf16_string_size'. [funcArgNamesDifferent] libvhdi-20210425/libfguid/libfguid_identifier.h:135:13: note: Function 'libfguid_identifier_copy_from_utf16_string' argument 3 names different: declaration 'utf16_string_length' definition 'utf16_string_size'. libvhdi-20210425/libfguid/libfguid_identifier.c:1153:13: note: Function 'libfguid_identifier_copy_from_utf16_string' argument 3 names different: declaration 'utf16_string_length' definition 'utf16_string_size'. libvhdi-20210425/libfguid/libfguid_identifier.c:1842:13: style:inconclusive: Function 'libfguid_identifier_copy_from_utf32_string' argument 3 names different: declaration 'utf32_string_length' definition 'utf32_string_size'. [funcArgNamesDifferent] libvhdi-20210425/libfguid/libfguid_identifier.h:169:13: note: Function 'libfguid_identifier_copy_from_utf32_string' argument 3 names different: declaration 'utf32_string_length' definition 'utf32_string_size'. libvhdi-20210425/libfguid/libfguid_identifier.c:1842:13: note: Function 'libfguid_identifier_copy_from_utf32_string' argument 3 names different: declaration 'utf32_string_length' definition 'utf32_string_size'. libvhdi-20210425/libfguid/libfguid_identifier.c:389:29: style: Parameter 'identifier' can be declared as pointer to const [constParameterPointer] libvhdi-20210425/libfguid/libfguid_identifier.c:890:54: style: Variable 'byte_value' is assigned a value that is never used. [unreadVariable] libvhdi-20210425/libfguid/libfguid_identifier.c:1579:54: style: Variable 'byte_value' is assigned a value that is never used. [unreadVariable] libvhdi-20210425/libfguid/libfguid_identifier.c:2268:54: style: Variable 'byte_value' is assigned a value that is never used. [unreadVariable] libvhdi-20210425/libuna/libuna_base64_stream.c:2423:27: style: Condition 'remaining_size==2' is always true [knownConditionTrueFalse] libvhdi-20210425/libuna/libuna_base64_stream.c:2419:27: note: Assuming that condition 'remaining_size==1' is not redundant libvhdi-20210425/libuna/libuna_base64_stream.c:2411:36: note: Assignment 'remaining_size=byte_stream_size%3', assigned value is less than 3 libvhdi-20210425/libuna/libuna_base64_stream.c:2423:27: note: Condition 'remaining_size==2' is always true libvhdi-20210425/libuna/libuna_base64_stream.c:2672:27: style: Condition 'remaining_size==2' is always true [knownConditionTrueFalse] libvhdi-20210425/libuna/libuna_base64_stream.c:2668:27: note: Assuming that condition 'remaining_size==1' is not redundant libvhdi-20210425/libuna/libuna_base64_stream.c:2660:36: note: Assignment 'remaining_size=byte_stream_size%3', assigned value is less than 3 libvhdi-20210425/libuna/libuna_base64_stream.c:2672:27: note: Condition 'remaining_size==2' is always true libvhdi-20210425/libuna/libuna_base32_stream.c:998:11: style: Variable 'quintet_to_character_table' can be declared as pointer to const [constVariablePointer] libvhdi-20210425/libuna/libuna_base64_stream.c:691:11: style: Variable 'sixtet_to_character_table' can be declared as pointer to const [constVariablePointer] libvhdi-20210425/libuna/libuna_codepage_windows_932.c:4289:32: style: Variable 'additional_character' is assigned a value that is never used. [unreadVariable] libvhdi-20210425/libuna/libuna_codepage_windows_949.c:7312:32: style: Variable 'additional_character' is assigned a value that is never used. [unreadVariable] libvhdi-20210425/libuna/libuna_codepage_windows_950.c:5416:32: style: Variable 'additional_character' is assigned a value that is never used. [unreadVariable] libvhdi-20210425/libuna/libuna_url_stream.c:34:15: style: Parameter 'byte_stream' can be declared as pointer to const [constParameterPointer] libvhdi-20210425/libuna/libuna_url_stream.c:147:15: style: Parameter 'byte_stream' can be declared as pointer to const [constParameterPointer] libvhdi-20210425/libuna/libuna_url_stream.c:311:15: style: Parameter 'url_stream' can be declared as pointer to const [constParameterPointer] libvhdi-20210425/libuna/libuna_url_stream.c:434:15: style: Parameter 'url_stream' can be declared as pointer to const [constParameterPointer] libvhdi-20210425/libuna/libuna_url_stream.c:154:27: style: Variable 'byte_value' is assigned a value that is never used. [unreadVariable] libvhdi-20210425/libuna/libuna_unicode_character.c:3302:31: style: Condition 'safe_utf7_stream_index>=utf7_stream_size' is always false [knownConditionTrueFalse] libvhdi-20210425/libuna/libuna_unicode_character.c:3283:29: note: Assuming that condition 'safe_utf7_stream_index>=utf7_stream_size' is not redundant libvhdi-20210425/libuna/libuna_unicode_character.c:3302:31: note: Condition 'safe_utf7_stream_index>=utf7_stream_size' is always false libvhdi-20210425/libuna/libuna_unicode_character.c:3325:30: style: Condition 'safe_utf7_stream_index>=utf7_stream_size' is always false [knownConditionTrueFalse] libvhdi-20210425/libuna/libuna_unicode_character.c:3283:29: note: Assuming that condition 'safe_utf7_stream_index>=utf7_stream_size' is not redundant libvhdi-20210425/libuna/libuna_unicode_character.c:3325:30: note: Condition 'safe_utf7_stream_index>=utf7_stream_size' is always false libvhdi-20210425/libuna/libuna_unicode_character.c:2997:43: style: Variable 'utf16_surrogate' is assigned a value that is never used. [unreadVariable] libvhdi-20210425/libuna/libuna_unicode_character.c:3002:43: style: Variable 'byte_bit_shift' is assigned a value that is never used. [unreadVariable] libvhdi-20210425/libuna/libuna_unicode_character.c:3215:52: style: Variable 'utf16_surrogate' is assigned a value that is never used. [unreadVariable] libvhdi-20210425/libuna/libuna_unicode_character.c:3219:52: style: Variable 'byte_bit_shift' is assigned a value that is never used. [unreadVariable] libvhdi-20210425/libuna/libuna_unicode_character.c:3223:52: style: Variable 'utf7_character_value' is assigned a value that is never used. [unreadVariable] libvhdi-20210425/libuna/libuna_unicode_character.c:3615:43: style: Variable 'utf16_surrogate' is assigned a value that is never used. [unreadVariable] libvhdi-20210425/libuna/libuna_unicode_character.c:3620:43: style: Variable 'byte_bit_shift' is assigned a value that is never used. [unreadVariable] libvhdi-20210425/libuna/libuna_unicode_character.c:4073:52: style: Variable 'byte_value2' is assigned a value that is never used. [unreadVariable] libvhdi-20210425/libuna/libuna_unicode_character.c:4074:52: style: Variable 'byte_value3' is assigned a value that is never used. [unreadVariable] libvhdi-20210425/libuna/libuna_unicode_character.c:4075:52: style: Variable 'byte_value4' is assigned a value that is never used. [unreadVariable] libvhdi-20210425/libuna/libuna_unicode_character.c:4076:52: style: Variable 'byte_value5' is assigned a value that is never used. [unreadVariable] libvhdi-20210425/libuna/libuna_unicode_character.c:4579:52: style: Variable 'utf16_surrogate' is assigned a value that is never used. [unreadVariable] libvhdi-20210425/libuna/libuna_unicode_character.c:4964:43: style: Variable 'utf16_surrogate' is assigned a value that is never used. [unreadVariable] libvhdi-20210425/libuna/libuna_codepage_windows_936.c:6447:32: style: Variable 'additional_character' is assigned a value that is never used. [unreadVariable] libvhdi-20210425/libvhdi/libvhdi_block_allocation_table.c:496:40: style: Parameter 'block_allocation_table' can be declared as pointer to const [constParameterPointer] libvhdi-20210425/libvhdi/libvhdi_block_allocation_table.c:173:47: style: Variable 'entries_per_chunk' is assigned a value that is never used. [unreadVariable] libvhdi-20210425/libvhdi/libvhdi_block_allocation_table.c:174:47: style: Variable 'sector_bitmap_size' is assigned a value that is never used. [unreadVariable] libvhdi-20210425/libvhdi/libvhdi_block_descriptor.c:428:15: style:inconclusive: Function 'libvhdi_block_descriptor_read_sector_bitmap_data' argument 5 names different: declaration 'byte_per_sector' definition 'bytes_per_sector'. [funcArgNamesDifferent] libvhdi-20210425/libvhdi/libvhdi_block_descriptor.h:83:15: note: Function 'libvhdi_block_descriptor_read_sector_bitmap_data' argument 5 names different: declaration 'byte_per_sector' definition 'bytes_per_sector'. libvhdi-20210425/libvhdi/libvhdi_block_descriptor.c:428:15: note: Function 'libvhdi_block_descriptor_read_sector_bitmap_data' argument 5 names different: declaration 'byte_per_sector' definition 'bytes_per_sector'. libvhdi-20210425/libvhdi/libvhdi_block_descriptor.c:704:15: style:inconclusive: Function 'libvhdi_block_descriptor_read_sector_bitmap_file_io_handle' argument 7 names different: declaration 'byte_per_sector' definition 'bytes_per_sector'. [funcArgNamesDifferent] libvhdi-20210425/libvhdi/libvhdi_block_descriptor.h:93:15: note: Function 'libvhdi_block_descriptor_read_sector_bitmap_file_io_handle' argument 7 names different: declaration 'byte_per_sector' definition 'bytes_per_sector'. libvhdi-20210425/libvhdi/libvhdi_block_descriptor.c:704:15: note: Function 'libvhdi_block_descriptor_read_sector_bitmap_file_io_handle' argument 7 names different: declaration 'byte_per_sector' definition 'bytes_per_sector'. libvhdi-20210425/libuna/libuna_utf16_string.c:3180:25: warning: Opposite inner 'if' condition leads to a dead code block. [oppositeInnerCondition] libvhdi-20210425/libuna/libuna_utf16_string.c:3176:27: note: outer condition: scsu_stream_index=scsu_stream_size libvhdi-20210425/libuna/libuna_utf16_string.c:3610:25: warning: Opposite inner 'if' condition leads to a dead code block. [oppositeInnerCondition] libvhdi-20210425/libuna/libuna_utf16_string.c:3606:27: note: outer condition: scsu_stream_index=scsu_stream_size libvhdi-20210425/libuna/libuna_utf16_string.c:390:25: style: Condition 'byte_stream_size>=1' is always true [knownConditionTrueFalse] libvhdi-20210425/libuna/libuna_utf16_string.c:372:23: note: Assuming that condition 'byte_stream_size==0' is not redundant libvhdi-20210425/libuna/libuna_utf16_string.c:390:25: note: Condition 'byte_stream_size>=1' is always true libvhdi-20210425/libuna/libuna_utf16_string.c:813:25: style: Condition 'utf7_stream_size>=1' is always true [knownConditionTrueFalse] libvhdi-20210425/libuna/libuna_utf16_string.c:795:23: note: Assuming that condition 'utf7_stream_size==0' is not redundant libvhdi-20210425/libuna/libuna_utf16_string.c:813:25: note: Condition 'utf7_stream_size>=1' is always true libvhdi-20210425/libuna/libuna_utf16_string.c:1537:25: style: Condition 'utf8_stream_size>=1' is always true [knownConditionTrueFalse] libvhdi-20210425/libuna/libuna_utf16_string.c:1508:23: note: Assuming that condition 'utf8_stream_size==0' is not redundant libvhdi-20210425/libuna/libuna_utf16_string.c:1537:25: note: Condition 'utf8_stream_size>=1' is always true libvhdi-20210425/libuna/libuna_utf16_string.c:2493:26: style: Condition 'utf32_string_size>=1' is always true [knownConditionTrueFalse] libvhdi-20210425/libuna/libuna_utf16_string.c:2477:24: note: Assuming that condition 'utf32_string_size==0' is not redundant libvhdi-20210425/libuna/libuna_utf16_string.c:2493:26: note: Condition 'utf32_string_size>=1' is always true libvhdi-20210425/libuna/libuna_utf16_string.c:3219:27: style: Condition 'byte_value1>=0xe0' is always true [knownConditionTrueFalse] libvhdi-20210425/libuna/libuna_utf16_string.c:3195:22: note: Assuming that condition 'byte_value1<=0xdf' is not redundant libvhdi-20210425/libuna/libuna_utf16_string.c:3219:27: note: Condition 'byte_value1>=0xe0' is always true libvhdi-20210425/libuna/libuna_utf16_string.c:3323:27: style: Condition 'byte_value1>=0x01' is always true [knownConditionTrueFalse] libvhdi-20210425/libuna/libuna_utf16_string.c:3309:22: note: Assuming that condition 'byte_value1==0x00' is not redundant libvhdi-20210425/libuna/libuna_utf16_string.c:3323:27: note: Condition 'byte_value1>=0x01' is always true libvhdi-20210425/libuna/libuna_utf16_string.c:3649:27: style: Condition 'byte_value1>=0xe0' is always true [knownConditionTrueFalse] libvhdi-20210425/libuna/libuna_utf16_string.c:3625:22: note: Assuming that condition 'byte_value1<=0xdf' is not redundant libvhdi-20210425/libuna/libuna_utf16_string.c:3649:27: note: Condition 'byte_value1>=0xe0' is always true libvhdi-20210425/libuna/libuna_utf16_string.c:3753:27: style: Condition 'byte_value1>=0x01' is always true [knownConditionTrueFalse] libvhdi-20210425/libuna/libuna_utf16_string.c:3739:22: note: Assuming that condition 'byte_value1==0x00' is not redundant libvhdi-20210425/libuna/libuna_utf16_string.c:3753:27: note: Condition 'byte_value1>=0x01' is always true libvhdi-20210425/libvhdi/libvhdi_checksum.c:42:23: style: Variable 'checksum' is assigned a value that is never used. [unreadVariable] libvhdi-20210425/libvhdi/libvhdi_checksum.c:44:23: style: Variable 'bit_iterator' is assigned a value that is never used. [unreadVariable] libvhdi-20210425/libvhdi/libvhdi_checksum.c:83:25: style: Variable 'table_index' is assigned a value that is never used. [unreadVariable] libvhdi-20210425/libuna/libuna_utf16_string.c:1157:21: style:inconclusive: Function 'libuna_utf16_string_size_from_utf8_stream' argument 1 names different: declaration 'utf16_stream' definition 'utf8_stream'. [funcArgNamesDifferent] libvhdi-20210425/libuna/libuna_utf16_string.h:146:21: note: Function 'libuna_utf16_string_size_from_utf8_stream' argument 1 names different: declaration 'utf16_stream' definition 'utf8_stream'. libvhdi-20210425/libuna/libuna_utf16_string.c:1157:21: note: Function 'libuna_utf16_string_size_from_utf8_stream' argument 1 names different: declaration 'utf16_stream' definition 'utf8_stream'. libvhdi-20210425/libuna/libuna_utf16_string.c:1158:13: style:inconclusive: Function 'libuna_utf16_string_size_from_utf8_stream' argument 2 names different: declaration 'utf16_stream_size' definition 'utf8_stream_size'. [funcArgNamesDifferent] libvhdi-20210425/libuna/libuna_utf16_string.h:147:13: note: Function 'libuna_utf16_string_size_from_utf8_stream' argument 2 names different: declaration 'utf16_stream_size' definition 'utf8_stream_size'. libvhdi-20210425/libuna/libuna_utf16_string.c:1158:13: note: Function 'libuna_utf16_string_size_from_utf8_stream' argument 2 names different: declaration 'utf16_stream_size' definition 'utf8_stream_size'. libvhdi-20210425/libuna/libuna_utf16_string.c:3129:47: style: Variable 'scsu_window_position' is assigned a value that is never used. [unreadVariable] libvhdi-20210425/libuna/libuna_utf16_string.c:3130:47: style: Variable 'byte_value1' is assigned a value that is never used. [unreadVariable] libvhdi-20210425/libuna/libuna_utf16_string.c:3131:47: style: Variable 'byte_value2' is assigned a value that is never used. [unreadVariable] libvhdi-20210425/libuna/libuna_utf16_string.c:3132:47: style: Variable 'byte_value3' is assigned a value that is never used. [unreadVariable] libvhdi-20210425/libuna/libuna_utf16_string.c:3135:47: style: Variable 'unicode_character_set' is assigned a value that is never used. [unreadVariable] libvhdi-20210425/libuna/libuna_utf16_string.c:3532:47: style: Variable 'scsu_window_position' is assigned a value that is never used. [unreadVariable] libvhdi-20210425/libuna/libuna_utf16_string.c:3533:47: style: Variable 'byte_value1' is assigned a value that is never used. [unreadVariable] libvhdi-20210425/libuna/libuna_utf16_string.c:3534:47: style: Variable 'byte_value2' is assigned a value that is never used. [unreadVariable] libvhdi-20210425/libuna/libuna_utf16_string.c:3535:47: style: Variable 'byte_value3' is assigned a value that is never used. [unreadVariable] libvhdi-20210425/libuna/libuna_utf16_string.c:3538:47: style: Variable 'unicode_character_set' is assigned a value that is never used. [unreadVariable] libvhdi-20210425/libvhdi/libvhdi_file_footer.c:524:29: style: Parameter 'file_footer' can be declared as pointer to const [constParameterPointer] libvhdi-20210425/libvhdi/libvhdi_i18n.c:39:15: style: Variable 'function' can be declared as pointer to const [constVariablePointer] libvhdi-20210425/libvhdi/libvhdi_i18n.c:39:15: style: Variable 'function' is assigned a value that is never used. [unreadVariable] libvhdi-20210425/libvhdi/libvhdi_file.c:2795:27: style: Variable 'internal_file' can be declared as pointer to const [constVariablePointer] libvhdi-20210425/libvhdi/libvhdi_file.c:2121:61: style: Variable 'read_size' is assigned a value that is never used. [unreadVariable] libvhdi-20210425/libvhdi/libvhdi_file.c:2122:61: style: Variable 'read_count' is assigned a value that is never used. [unreadVariable] libvhdi-20210425/libvhdi/libvhdi_file.c:2123:61: style: Variable 'sector_file_offset' is assigned a value that is never used. [unreadVariable] libvhdi-20210425/libvhdi/libvhdi_file.c:2124:61: style: Variable 'block_number' is assigned a value that is never used. [unreadVariable] libvhdi-20210425/libvhdi/libvhdi_file.c:2125:61: style: Variable 'block_data_offset' is assigned a value that is never used. [unreadVariable] libvhdi-20210425/libvhdi/libvhdi_file.c:2126:61: style: Variable 'sector_range_flags' is assigned a value that is never used. [unreadVariable] libvhdi-20210425/libvhdi/libvhdi_image_header.c:475:30: style: Parameter 'image_header' can be declared as pointer to const [constParameterPointer] libvhdi-20210425/libvhdi/libvhdi_io_handle.c:180:27: style: Parameter 'io_handle' can be declared as pointer to const [constParameterPointer] libvhdi-20210425/libvhdi/libvhdi_parent_locator.c:385:45: style: Variable 'result' is assigned a value that is never used. [unreadVariable] libvhdi-20210425/ossfuzz/file_fuzzer.cc:61:7: style: C-style pointer casting [cstyleCast] libvhdi-20210425/pyvhdi/pyvhdi_disk_types.c:249:27: style: Parameter 'definitions_object' can be declared as pointer to const. However it seems that 'pyvhdi_disk_types_init' is a callback function, if 'definitions_object' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libvhdi-20210425/pyvhdi/pyvhdi_disk_types.c:106:13: note: You might need to cast the function pointer here libvhdi-20210425/pyvhdi/pyvhdi_disk_types.c:249:27: note: Parameter 'definitions_object' can be declared as pointer to const libvhdi-20210425/pyvhdi/pyvhdi_error.c:32:0: error: #error Missing headers stdarg.h and varargs.h [preprocessorErrorDirective] libvhdi-20210425/pyvhdi/pyvhdi.c:213:3: style: Local variable 'result' shadows outer variable [shadowVariable] libvhdi-20210425/pyvhdi/pyvhdi.c:138:6: note: Shadowed declaration libvhdi-20210425/pyvhdi/pyvhdi.c:213:3: note: Shadow variable libvhdi-20210425/pyvhdi/pyvhdi.c:282:3: style: Local variable 'result' shadows outer variable [shadowVariable] libvhdi-20210425/pyvhdi/pyvhdi.c:138:6: note: Shadowed declaration libvhdi-20210425/pyvhdi/pyvhdi.c:282:3: note: Shadow variable libvhdi-20210425/pyvhdi/pyvhdi.c:101:31: style: Variable 'version_string_length' is assigned a value that is never used. [unreadVariable] libvhdi-20210425/pyvhdi/pyvhdi.c:100:14: style: Variable 'version_string' is assigned a value that is never used. [unreadVariable] libvhdi-20210425/pyvhdi/pyvhdi.c:219:12: style: Variable 'Py_DecRef' is assigned a value that is never used. [unreadVariable] libvhdi-20210425/pyvhdi/pyvhdi.c:334:6: style: Variable 'result' is assigned a value that is never used. [unreadVariable] libvhdi-20210425/libuna/libuna_utf32_string.c:3038:25: warning: Opposite inner 'if' condition leads to a dead code block. [oppositeInnerCondition] libvhdi-20210425/libuna/libuna_utf32_string.c:3034:27: note: outer condition: scsu_stream_index=scsu_stream_size libvhdi-20210425/libuna/libuna_utf32_string.c:3468:25: warning: Opposite inner 'if' condition leads to a dead code block. [oppositeInnerCondition] libvhdi-20210425/libuna/libuna_utf32_string.c:3464:27: note: outer condition: scsu_stream_index=scsu_stream_size libvhdi-20210425/libuna/libuna_utf32_string.c:390:25: style: Condition 'byte_stream_size>=1' is always true [knownConditionTrueFalse] libvhdi-20210425/libuna/libuna_utf32_string.c:372:23: note: Assuming that condition 'byte_stream_size==0' is not redundant libvhdi-20210425/libuna/libuna_utf32_string.c:390:25: note: Condition 'byte_stream_size>=1' is always true libvhdi-20210425/libuna/libuna_utf32_string.c:813:25: style: Condition 'utf7_stream_size>=1' is always true [knownConditionTrueFalse] libvhdi-20210425/libuna/libuna_utf32_string.c:795:23: note: Assuming that condition 'utf7_stream_size==0' is not redundant libvhdi-20210425/libuna/libuna_utf32_string.c:813:25: note: Condition 'utf7_stream_size>=1' is always true libvhdi-20210425/libuna/libuna_utf32_string.c:1537:25: style: Condition 'utf8_stream_size>=1' is always true [knownConditionTrueFalse] libvhdi-20210425/libuna/libuna_utf32_string.c:1508:23: note: Assuming that condition 'utf8_stream_size==0' is not redundant libvhdi-20210425/libuna/libuna_utf32_string.c:1537:25: note: Condition 'utf8_stream_size>=1' is always true libvhdi-20210425/libuna/libuna_utf32_string.c:3077:27: style: Condition 'byte_value1>=0xe0' is always true [knownConditionTrueFalse] libvhdi-20210425/libuna/libuna_utf32_string.c:3053:22: note: Assuming that condition 'byte_value1<=0xdf' is not redundant libvhdi-20210425/libuna/libuna_utf32_string.c:3077:27: note: Condition 'byte_value1>=0xe0' is always true libvhdi-20210425/libuna/libuna_utf32_string.c:3181:27: style: Condition 'byte_value1>=0x01' is always true [knownConditionTrueFalse] libvhdi-20210425/libuna/libuna_utf32_string.c:3167:22: note: Assuming that condition 'byte_value1==0x00' is not redundant libvhdi-20210425/libuna/libuna_utf32_string.c:3181:27: note: Condition 'byte_value1>=0x01' is always true libvhdi-20210425/libuna/libuna_utf32_string.c:3507:27: style: Condition 'byte_value1>=0xe0' is always true [knownConditionTrueFalse] libvhdi-20210425/libuna/libuna_utf32_string.c:3483:22: note: Assuming that condition 'byte_value1<=0xdf' is not redundant libvhdi-20210425/libuna/libuna_utf32_string.c:3507:27: note: Condition 'byte_value1>=0xe0' is always true libvhdi-20210425/libuna/libuna_utf32_string.c:3611:27: style: Condition 'byte_value1>=0x01' is always true [knownConditionTrueFalse] libvhdi-20210425/libuna/libuna_utf32_string.c:3597:22: note: Assuming that condition 'byte_value1==0x00' is not redundant libvhdi-20210425/libuna/libuna_utf32_string.c:3611:27: note: Condition 'byte_value1>=0x01' is always true libvhdi-20210425/libuna/libuna_utf32_string.c:1157:21: style:inconclusive: Function 'libuna_utf32_string_size_from_utf8_stream' argument 1 names different: declaration 'utf32_stream' definition 'utf8_stream'. [funcArgNamesDifferent] libvhdi-20210425/libuna/libuna_utf32_string.h:146:21: note: Function 'libuna_utf32_string_size_from_utf8_stream' argument 1 names different: declaration 'utf32_stream' definition 'utf8_stream'. libvhdi-20210425/libuna/libuna_utf32_string.c:1157:21: note: Function 'libuna_utf32_string_size_from_utf8_stream' argument 1 names different: declaration 'utf32_stream' definition 'utf8_stream'. libvhdi-20210425/libuna/libuna_utf32_string.c:1158:13: style:inconclusive: Function 'libuna_utf32_string_size_from_utf8_stream' argument 2 names different: declaration 'utf32_stream_size' definition 'utf8_stream_size'. [funcArgNamesDifferent] libvhdi-20210425/libuna/libuna_utf32_string.h:147:13: note: Function 'libuna_utf32_string_size_from_utf8_stream' argument 2 names different: declaration 'utf32_stream_size' definition 'utf8_stream_size'. libvhdi-20210425/libuna/libuna_utf32_string.c:1158:13: note: Function 'libuna_utf32_string_size_from_utf8_stream' argument 2 names different: declaration 'utf32_stream_size' definition 'utf8_stream_size'. libvhdi-20210425/libuna/libuna_utf32_string.c:2987:47: style: Variable 'scsu_window_position' is assigned a value that is never used. [unreadVariable] libvhdi-20210425/libuna/libuna_utf32_string.c:2988:47: style: Variable 'byte_value1' is assigned a value that is never used. [unreadVariable] libvhdi-20210425/libuna/libuna_utf32_string.c:2989:47: style: Variable 'byte_value2' is assigned a value that is never used. [unreadVariable] libvhdi-20210425/libuna/libuna_utf32_string.c:2990:47: style: Variable 'byte_value3' is assigned a value that is never used. [unreadVariable] libvhdi-20210425/libuna/libuna_utf32_string.c:2993:47: style: Variable 'unicode_character_set' is assigned a value that is never used. [unreadVariable] libvhdi-20210425/libuna/libuna_utf32_string.c:3390:47: style: Variable 'scsu_window_position' is assigned a value that is never used. [unreadVariable] libvhdi-20210425/libuna/libuna_utf32_string.c:3391:47: style: Variable 'byte_value1' is assigned a value that is never used. [unreadVariable] libvhdi-20210425/libuna/libuna_utf32_string.c:3392:47: style: Variable 'byte_value2' is assigned a value that is never used. [unreadVariable] libvhdi-20210425/libuna/libuna_utf32_string.c:3393:47: style: Variable 'byte_value3' is assigned a value that is never used. [unreadVariable] libvhdi-20210425/libuna/libuna_utf32_string.c:3396:47: style: Variable 'unicode_character_set' is assigned a value that is never used. [unreadVariable] libvhdi-20210425/pyvhdi/pyvhdi_file_object_io_handle.c:1202:38: style: Parameter 'file_object_io_handle' can be declared as pointer to const. However it seems that 'pyvhdi_file_object_io_handle_exists' is a callback function, if 'file_object_io_handle' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libvhdi-20210425/pyvhdi/pyvhdi_file_object_io_handle.c:180:51: note: You might need to cast the function pointer here libvhdi-20210425/pyvhdi/pyvhdi_file_object_io_handle.c:1202:38: note: Parameter 'file_object_io_handle' can be declared as pointer to const libvhdi-20210425/pyvhdi/pyvhdi_file_object_io_handle.c:1229:38: style: Parameter 'file_object_io_handle' can be declared as pointer to const. However it seems that 'pyvhdi_file_object_io_handle_is_open' is a callback function, if 'file_object_io_handle' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libvhdi-20210425/pyvhdi/pyvhdi_file_object_io_handle.c:181:51: note: You might need to cast the function pointer here libvhdi-20210425/pyvhdi/pyvhdi_file_object_io_handle.c:1229:38: note: Parameter 'file_object_io_handle' can be declared as pointer to const libvhdi-20210425/pyvhdi/pyvhdi_file_object_io_handle.c:215:29: style: Variable 'gil_state' is assigned a value that is never used. [unreadVariable] libvhdi-20210425/tests/vhdi_test_checksum.c:59:10: style: Variable 'data' can be declared as const array [constVariable] libvhdi-20210425/pyvhdi/pyvhdi_file.c:416:3: style: Local variable 'result' shadows outer variable [shadowVariable] libvhdi-20210425/pyvhdi/pyvhdi_file.c:380:6: note: Shadowed declaration libvhdi-20210425/pyvhdi/pyvhdi_file.c:416:3: note: Shadow variable libvhdi-20210425/pyvhdi/pyvhdi_file.c:597:3: style: Local variable 'result' shadows outer variable [shadowVariable] libvhdi-20210425/pyvhdi/pyvhdi_file.c:501:6: note: Shadowed declaration libvhdi-20210425/pyvhdi/pyvhdi_file.c:597:3: note: Shadow variable libvhdi-20210425/pyvhdi/pyvhdi_file.c:659:3: style: Local variable 'result' shadows outer variable [shadowVariable] libvhdi-20210425/pyvhdi/pyvhdi_file.c:501:6: note: Shadowed declaration libvhdi-20210425/pyvhdi/pyvhdi_file.c:659:3: note: Shadow variable libvhdi-20210425/pyvhdi/pyvhdi_file.c:879:3: style: Local variable 'result' shadows outer variable [shadowVariable] libvhdi-20210425/pyvhdi/pyvhdi_file.c:841:6: note: Shadowed declaration libvhdi-20210425/pyvhdi/pyvhdi_file.c:879:3: note: Shadow variable libvhdi-20210425/pyvhdi/pyvhdi_file.c:1005:3: style: Local variable 'result' shadows outer variable [shadowVariable] libvhdi-20210425/pyvhdi/pyvhdi_file.c:921:6: note: Shadowed declaration libvhdi-20210425/pyvhdi/pyvhdi_file.c:1005:3: note: Shadow variable libvhdi-20210425/pyvhdi/pyvhdi_file.c:380:30: style: Variable 'result' is assigned a value that is never used. [unreadVariable] libvhdi-20210425/pyvhdi/pyvhdi_file.c:447:27: style: Variable 'result' is assigned a value that is never used. [unreadVariable] libvhdi-20210425/pyvhdi/pyvhdi_file.c:605:12: style: Variable 'Py_DecRef' is assigned a value that is never used. [unreadVariable] libvhdi-20210425/pyvhdi/pyvhdi_file.c:841:27: style: Variable 'result' is assigned a value that is never used. [unreadVariable] libvhdi-20210425/pyvhdi/pyvhdi_file.c:919:30: style: Variable 'read_count' is assigned a value that is never used. [unreadVariable] libvhdi-20210425/pyvhdi/pyvhdi_file.c:1144:30: style: Variable 'read_count' is assigned a value that is never used. [unreadVariable] libvhdi-20210425/pyvhdi/pyvhdi_file.c:1407:27: style: Variable 'result' is assigned a value that is never used. [unreadVariable] libvhdi-20210425/pyvhdi/pyvhdi_file.c:1467:30: style: Variable 'result' is assigned a value that is never used. [unreadVariable] libvhdi-20210425/pyvhdi/pyvhdi_file.c:1531:27: style: Variable 'result' is assigned a value that is never used. [unreadVariable] libvhdi-20210425/pyvhdi/pyvhdi_file.c:1621:27: style: Variable 'result' is assigned a value that is never used. [unreadVariable] libvhdi-20210425/pyvhdi/pyvhdi_file.c:1680:27: style: Variable 'result' is assigned a value that is never used. [unreadVariable] libvhdi-20210425/pyvhdi/pyvhdi_file.c:1732:28: style: Variable 'result' is assigned a value that is never used. [unreadVariable] libvhdi-20210425/pyvhdi/pyvhdi_file.c:1785:27: style: Variable 'result' is assigned a value that is never used. [unreadVariable] libvhdi-20210425/pyvhdi/pyvhdi_file.c:1847:27: style: Variable 'result' is assigned a value that is never used. [unreadVariable] libvhdi-20210425/pyvhdi/pyvhdi_file.c:1910:6: style: Variable 'result' is assigned a value that is never used. [unreadVariable] libvhdi-20210425/tests/vhdi_test_file.c:543:22: style: Variable 'basename_end' can be declared as pointer to const [constVariablePointer] libvhdi-20210425/tests/vhdi_test_file.c:544:22: style: Variable 'parent_basename_end' can be declared as pointer to const [constVariablePointer] libvhdi-20210425/tests/vhdi_test_file.c:2757:22: style: Variable 'source' can be declared as pointer to const [constVariablePointer] libvhdi-20210425/vhditools/vhditools_signal.h:35:0: error: #error missing signal functions [preprocessorErrorDirective] libvhdi-20210425/vhditools/byte_size_string.c:166:18: error: There is an unknown macro here somewhere. Configuration is required. If _SYSTEM_STRING is a macro then please configure it. [unknownMacro] libvhdi-20210425/libuna/libuna_utf8_string.c:3362:25: warning: Opposite inner 'if' condition leads to a dead code block. [oppositeInnerCondition] libvhdi-20210425/libuna/libuna_utf8_string.c:3358:27: note: outer condition: scsu_stream_index=scsu_stream_size libvhdi-20210425/libuna/libuna_utf8_string.c:3792:25: warning: Opposite inner 'if' condition leads to a dead code block. [oppositeInnerCondition] libvhdi-20210425/libuna/libuna_utf8_string.c:3788:27: note: outer condition: scsu_stream_index=scsu_stream_size libvhdi-20210425/tests/vhdi_test_support.c:460:8: style: Variable 'memset_result' can be declared as pointer to const [constVariablePointer] libvhdi-20210425/tests/vhdi_test_support.c:725:22: style: Variable 'source' can be declared as pointer to const [constVariablePointer] libvhdi-20210425/libuna/libuna_utf8_string.c:398:25: style: Condition 'byte_stream_size>=1' is always true [knownConditionTrueFalse] libvhdi-20210425/libuna/libuna_utf8_string.c:380:23: note: Assuming that condition 'byte_stream_size==0' is not redundant libvhdi-20210425/libuna/libuna_utf8_string.c:398:25: note: Condition 'byte_stream_size>=1' is always true libvhdi-20210425/libuna/libuna_utf8_string.c:829:25: style: Condition 'utf7_stream_size>=1' is always true [knownConditionTrueFalse] libvhdi-20210425/libuna/libuna_utf8_string.c:811:23: note: Assuming that condition 'utf7_stream_size==0' is not redundant libvhdi-20210425/libuna/libuna_utf8_string.c:829:25: note: Condition 'utf7_stream_size>=1' is always true libvhdi-20210425/libuna/libuna_utf8_string.c:1288:25: style: Condition 'utf8_stream_size>=1' is always true [knownConditionTrueFalse] libvhdi-20210425/libuna/libuna_utf8_string.c:1259:23: note: Assuming that condition 'utf8_stream_size==0' is not redundant libvhdi-20210425/libuna/libuna_utf8_string.c:1288:25: note: Condition 'utf8_stream_size>=1' is always true libvhdi-20210425/libuna/libuna_utf8_string.c:1703:26: style: Condition 'utf16_string_size>=1' is always true [knownConditionTrueFalse] libvhdi-20210425/libuna/libuna_utf8_string.c:1687:24: note: Assuming that condition 'utf16_string_size==0' is not redundant libvhdi-20210425/libuna/libuna_utf8_string.c:1703:26: note: Condition 'utf16_string_size>=1' is always true libvhdi-20210425/libuna/libuna_utf8_string.c:2667:26: style: Condition 'utf32_string_size>=1' is always true [knownConditionTrueFalse] libvhdi-20210425/libuna/libuna_utf8_string.c:2651:24: note: Assuming that condition 'utf32_string_size==0' is not redundant libvhdi-20210425/libuna/libuna_utf8_string.c:2667:26: note: Condition 'utf32_string_size>=1' is always true libvhdi-20210425/libuna/libuna_utf8_string.c:3401:27: style: Condition 'byte_value1>=0xe0' is always true [knownConditionTrueFalse] libvhdi-20210425/libuna/libuna_utf8_string.c:3377:22: note: Assuming that condition 'byte_value1<=0xdf' is not redundant libvhdi-20210425/libuna/libuna_utf8_string.c:3401:27: note: Condition 'byte_value1>=0xe0' is always true libvhdi-20210425/libuna/libuna_utf8_string.c:3505:27: style: Condition 'byte_value1>=0x01' is always true [knownConditionTrueFalse] libvhdi-20210425/libuna/libuna_utf8_string.c:3491:22: note: Assuming that condition 'byte_value1==0x00' is not redundant libvhdi-20210425/libuna/libuna_utf8_string.c:3505:27: note: Condition 'byte_value1>=0x01' is always true libvhdi-20210425/libuna/libuna_utf8_string.c:3831:27: style: Condition 'byte_value1>=0xe0' is always true [knownConditionTrueFalse] libvhdi-20210425/libuna/libuna_utf8_string.c:3807:22: note: Assuming that condition 'byte_value1<=0xdf' is not redundant libvhdi-20210425/libuna/libuna_utf8_string.c:3831:27: note: Condition 'byte_value1>=0xe0' is always true libvhdi-20210425/libuna/libuna_utf8_string.c:3935:27: style: Condition 'byte_value1>=0x01' is always true [knownConditionTrueFalse] libvhdi-20210425/libuna/libuna_utf8_string.c:3921:22: note: Assuming that condition 'byte_value1==0x00' is not redundant libvhdi-20210425/libuna/libuna_utf8_string.c:3935:27: note: Condition 'byte_value1>=0x01' is always true libvhdi-20210425/libuna/libuna_utf8_string.c:3311:47: style: Variable 'scsu_window_position' is assigned a value that is never used. [unreadVariable] libvhdi-20210425/libuna/libuna_utf8_string.c:3312:47: style: Variable 'byte_value1' is assigned a value that is never used. [unreadVariable] libvhdi-20210425/libuna/libuna_utf8_string.c:3313:47: style: Variable 'byte_value2' is assigned a value that is never used. [unreadVariable] libvhdi-20210425/libuna/libuna_utf8_string.c:3314:47: style: Variable 'byte_value3' is assigned a value that is never used. [unreadVariable] libvhdi-20210425/libuna/libuna_utf8_string.c:3317:47: style: Variable 'unicode_character_set' is assigned a value that is never used. [unreadVariable] libvhdi-20210425/libuna/libuna_utf8_string.c:3714:47: style: Variable 'scsu_window_position' is assigned a value that is never used. [unreadVariable] libvhdi-20210425/libuna/libuna_utf8_string.c:3715:47: style: Variable 'byte_value1' is assigned a value that is never used. [unreadVariable] libvhdi-20210425/libuna/libuna_utf8_string.c:3716:47: style: Variable 'byte_value2' is assigned a value that is never used. [unreadVariable] libvhdi-20210425/libuna/libuna_utf8_string.c:3717:47: style: Variable 'byte_value3' is assigned a value that is never used. [unreadVariable] libvhdi-20210425/libuna/libuna_utf8_string.c:3720:47: style: Variable 'unicode_character_set' is assigned a value that is never used. [unreadVariable] libvhdi-20210425/vhditools/info_handle.c:324:22: style: Variable 'disk_type_string' can be declared as pointer to const [constVariablePointer] libvhdi-20210425/vhditools/mount_file_system.c:471:27: style: Parameter 'file_system' can be declared as pointer to const [constParameterPointer] libvhdi-20210425/vhditools/mount_file_system.c:594:31: style: Variable 'character' is assigned a value that is never used. [unreadVariable] libvhdi-20210425/vhditools/mount_file_entry.c:630:11: style:inconclusive: Function 'mount_file_entry_get_number_of_sub_file_entries' argument 2 names different: declaration 'number_of_sub_entries' definition 'number_of_sub_file_entries'. [funcArgNamesDifferent] libvhdi-20210425/vhditools/mount_file_entry.h:112:11: note: Function 'mount_file_entry_get_number_of_sub_file_entries' argument 2 names different: declaration 'number_of_sub_entries' definition 'number_of_sub_file_entries'. libvhdi-20210425/vhditools/mount_file_entry.c:630:11: note: Function 'mount_file_entry_get_number_of_sub_file_entries' argument 2 names different: declaration 'number_of_sub_entries' definition 'number_of_sub_file_entries'. libvhdi-20210425/vhditools/mount_file_entry.c:462:26: style: Parameter 'file_entry' can be declared as pointer to const [constParameterPointer] libvhdi-20210425/vhditools/mount_file_entry.c:506:26: style: Parameter 'file_entry' can be declared as pointer to const [constParameterPointer] libvhdi-20210425/vhditools/mount_handle.c:369:22: style: Variable 'basename_end' can be declared as pointer to const [constVariablePointer] libvhdi-20210425/vhditools/mount_handle.c:515:22: style: Variable 'parent_basename_end' can be declared as pointer to const [constVariablePointer] diff: head libvhdi-20210425/libuna/libuna_base32_stream.c:998:11: style: Variable 'quintet_to_character_table' can be declared as pointer to const [constVariablePointer] 2.13.0 libvhdi-20210425/libuna/libuna_codepage_windows_932.c:4211:31: style: Condition 'unicode_character>=0x0080' is always true [knownConditionTrueFalse] libvhdi-20210425/libuna/libuna_codepage_windows_932.c:4207:24: note: Assuming condition 'unicode_character<0x0080' is false libvhdi-20210425/libuna/libuna_codepage_windows_932.c:4211:31: note: Condition 'unicode_character>=0x0080' is always true 2.13.0 libvhdi-20210425/libuna/libuna_codepage_windows_936.c:6381:31: style: Condition 'unicode_character>=0x0080' is always true [knownConditionTrueFalse] libvhdi-20210425/libuna/libuna_codepage_windows_936.c:6377:24: note: Assuming condition 'unicode_character<0x0080' is false libvhdi-20210425/libuna/libuna_codepage_windows_936.c:6381:31: note: Condition 'unicode_character>=0x0080' is always true 2.13.0 libvhdi-20210425/libuna/libuna_codepage_windows_949.c:7240:31: style: Condition 'unicode_character>=0x0080' is always true [knownConditionTrueFalse] libvhdi-20210425/libuna/libuna_codepage_windows_949.c:7236:24: note: Assuming condition 'unicode_character<0x80' is false libvhdi-20210425/libuna/libuna_codepage_windows_949.c:7240:31: note: Condition 'unicode_character>=0x0080' is always true 2.13.0 libvhdi-20210425/libuna/libuna_codepage_windows_950.c:5344:31: style: Condition 'unicode_character>=0x0080' is always true [knownConditionTrueFalse] libvhdi-20210425/libuna/libuna_codepage_windows_950.c:5340:24: note: Assuming condition 'unicode_character<0x80' is false libvhdi-20210425/libuna/libuna_codepage_windows_950.c:5344:31: note: Condition 'unicode_character>=0x0080' is always true DONE