2024-04-24 10:55 ftp://ftp.de.debian.org/debian/pool/main/d/dxvk/dxvk_2.3.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --library=sdl --inconclusive --enable=style,information --inline-suppr --template=daca2 --disable=missingInclude --suppress=unmatchedSuppression --check-library --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning -D__GNUC__ --platform=unix64 -j1 platform: Linux-5.15.0-105-generic-x86_64-with-glibc2.35 python: 3.10.12 client-version: 1.3.56 compiler: g++ (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0 cppcheck: head 2.14.0 head-info: 9fab9b9 (2024-04-24 10:46:48 +0200) count: 53 53 elapsed-time: 24.1 21.5 head-timing-info: old-timing-info: head results: dxvk-2.3/src/util/util_bit.h:11:0: error: #error "Unknown CPU Architecture" [preprocessorErrorDirective] dxvk-2.3/src/dxvk/dxvk_options.h:8:5: warning:inconclusive: Member variable 'DxvkOptions::enableDebugUtils' is not initialized in the constructor. [uninitMemberVar] dxvk-2.3/src/dxvk/dxvk_options.h:8:5: warning:inconclusive: Member variable 'DxvkOptions::enableStateCache' is not initialized in the constructor. [uninitMemberVar] dxvk-2.3/src/dxvk/dxvk_options.h:8:5: warning:inconclusive: Member variable 'DxvkOptions::numCompilerThreads' is not initialized in the constructor. [uninitMemberVar] dxvk-2.3/src/dxvk/dxvk_options.h:8:5: warning:inconclusive: Member variable 'DxvkOptions::enableGraphicsPipelineLibrary' is not initialized in the constructor. [uninitMemberVar] dxvk-2.3/src/dxvk/dxvk_options.h:8:5: warning:inconclusive: Member variable 'DxvkOptions::trackPipelineLifetime' is not initialized in the constructor. [uninitMemberVar] dxvk-2.3/src/dxvk/dxvk_options.h:8:5: warning:inconclusive: Member variable 'DxvkOptions::useRawSsbo' is not initialized in the constructor. [uninitMemberVar] dxvk-2.3/src/dxvk/dxvk_options.h:8:5: warning:inconclusive: Member variable 'DxvkOptions::maxChunkSize' is not initialized in the constructor. [uninitMemberVar] dxvk-2.3/src/dxvk/dxvk_options.h:8:5: warning:inconclusive: Member variable 'DxvkOptions::tearFree' is not initialized in the constructor. [uninitMemberVar] dxvk-2.3/src/dxvk/dxvk_options.cpp:13:5: performance: Variable 'hud' is assigned in constructor body. Consider performing initialization in initialization list. [useInitializationList] dxvk-2.3/src/util/config/config.h:32:5: style: Class 'Config' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] dxvk-2.3/src/dxvk/dxvk_options.h:9:5: style: Struct 'DxvkOptions' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] dxvk-2.3/src/util/com/com_private_data.cpp:44:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IUnknown [valueFlowBailoutIncompleteVar] dxvk-2.3/src/util/com/com_private_data.cpp:60:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IUnknown [valueFlowBailoutIncompleteVar] dxvk-2.3/src/util/com/com_private_data.cpp:77:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_OK [valueFlowBailoutIncompleteVar] dxvk-2.3/src/util/com/com_private_data.cpp:115:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_OK [valueFlowBailoutIncompleteVar] dxvk-2.3/src/util/com/com_private_data.cpp:129:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_OK [valueFlowBailoutIncompleteVar] dxvk-2.3/src/util/com/com_private_data.cpp:138:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable E_INVALIDARG [valueFlowBailoutIncompleteVar] dxvk-2.3/src/util/com/com_private_data.cpp:140:10: style: Variable 'entry' can be declared as pointer to const [constVariablePointer] dxvk-2.3/src/util/com/com_private_data.cpp:113:32: style: Consider using std::find_if algorithm instead of a raw loop. [useStlAlgorithm] dxvk-2.3/src/util/com/com_private_data.cpp:153:0: style: Consider using std::find_if algorithm instead of a raw loop. [useStlAlgorithm] dxvk-2.3/src/util/log/log.h:21:3: debug: Failed to parse 'using PFN_wineLogOutput = int ( STDMETHODCALLTYPE * ) ( const char * ) ;'. The checking continues anyway. [simplifyUsing] dxvk-2.3/src/util/thread.h:318:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SCHED_OTHER [valueFlowBailoutIncompleteVar] dxvk-2.3/src/util/util_error.h:18:5: style: Class 'DxvkError' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] dxvk-2.3/src/util/rc/util_rc_ptr.h:22:5: style: Class 'Rc' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] dxvk-2.3/src/util/rc/util_rc_ptr.h:24:5: style: Class 'Rc' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] dxvk-2.3/src/util/log/log.h:33:5: style: Class 'Logger' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] dxvk-2.3/src/util/log/log_debug.h:27:44: style: Parameter 'stream' can be declared as reference to const [constParameterReference] dxvk-2.3/src/util/sha1/sha1.c:43:10: style: union member 'CHAR64LONG16::c' is never used. [unusedStructMember] dxvk-2.3/src/util/sha1/sha1.c:96:4: style: Variable 'a' is assigned a value that is never used. [unreadVariable] dxvk-2.3/src/util/sha1/sha1.c:96:8: style: Variable 'b' is assigned a value that is never used. [unreadVariable] dxvk-2.3/src/util/sha1/sha1.c:96:12: style: Variable 'c' is assigned a value that is never used. [unreadVariable] dxvk-2.3/src/util/sha1/sha1.c:96:16: style: Variable 'd' is assigned a value that is never used. [unreadVariable] dxvk-2.3/src/util/sha1/sha1.c:96:20: style: Variable 'e' is assigned a value that is never used. [unreadVariable] dxvk-2.3/src/util/sha1/sha1_util.h:54:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable T [valueFlowBailoutIncompleteVar] dxvk-2.3/src/util/sha1/sha1_util.h:20:5: warning:inconclusive: Member variable 'Sha1Hash::m_digest' is not initialized in the constructor. [uninitMemberVar] dxvk-2.3/src/util/sha1/sha1_util.h:21:5: style: Class 'Sha1Hash' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] dxvk-2.3/src/util/util_gdi.cpp:34:64: style: Parameter 'Arg1' can be declared as pointer to const [constParameterPointer] dxvk-2.3/src/util/util_gdi.cpp:39:66: style: Parameter 'Arg1' can be declared as pointer to const [constParameterPointer] dxvk-2.3/src/util/util_shared_res.cpp:52:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INVALID_HANDLE_VALUE [valueFlowBailoutIncompleteVar] dxvk-2.3/src/util/util_shared_res.cpp:55:47: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] dxvk-2.3/src/util/util_shared_res.cpp:60:47: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] dxvk-2.3/src/util/util_shared_res.cpp:60:80: style: Parameter 'metadataSize' can be declared as pointer to const [constParameterPointer] dxvk-2.3/src/vulkan/vulkan_loader.h:26:5: style: Struct 'LibraryLoader' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] dxvk-2.3/src/vulkan/vulkan_loader.h:82:5: style: Struct 'LibraryFn' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] dxvk-2.3/src/util/rc/util_rc_ptr.h:22:5: style: Class 'Rc < LibraryLoader >' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] dxvk-2.3/src/util/rc/util_rc_ptr.h:24:5: style: Class 'Rc < LibraryLoader >' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] dxvk-2.3/src/util/rc/util_rc_ptr.h:35:5: style: Class 'Rc < LibraryLoader >' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] dxvk-2.3/src/util/rc/util_rc_ptr.h:46:5: style: Class 'Rc < LibraryLoader >' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] dxvk-2.3/src/util/rc/util_rc_ptr.h:22:5: style: Class 'Rc < InstanceLoader >' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] dxvk-2.3/src/util/rc/util_rc_ptr.h:24:5: style: Class 'Rc < InstanceLoader >' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] dxvk-2.3/src/util/rc/util_rc_ptr.h:35:5: style: Class 'Rc < InstanceLoader >' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] dxvk-2.3/src/util/rc/util_rc_ptr.h:46:5: style: Class 'Rc < InstanceLoader >' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] diff: DONE