2025-11-25 21:55 ftp://ftp.de.debian.org/debian/pool/main/d/dleyna-core/dleyna-core_0.6.0.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --library=gtk --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 -j4 platform: Linux-6.12.57+deb13-amd64-x86_64-with-glibc2.41 python: 3.13.5 client-version: 1.3.67 compiler: g++ (Debian 14.2.0-19) 14.2.0 cppcheck: head 2.18.0 head-info: 796b181 (2025-11-25 16:14:10 +0100) count: 30 27 elapsed-time: 0.1 0.1 head-timing-info: old-timing-info: head results: dleyna-core-0.6.0/libdleyna/core/core.c:54:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_MAXUINT32 [valueFlowBailoutIncompleteVar] dleyna-core-0.6.0/libdleyna/core/connector-mgr.c:42:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_MODULE_BIND_LAZY [valueFlowBailoutIncompleteVar] dleyna-core-0.6.0/libdleyna/core/log.c:47:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DLEYNA_LOG_LEVEL_ERROR [valueFlowBailoutIncompleteVar] dleyna-core-0.6.0/libdleyna/core/log.c:86:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DLEYNA_LOG_LEVEL [valueFlowBailoutIncompleteVar] dleyna-core-0.6.0/libdleyna/core/log.c:117:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DLEYNA_LOG_LEVEL [valueFlowBailoutIncompleteVar] dleyna-core-0.6.0/libdleyna/core/log.c:137:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_NDELAY [valueFlowBailoutIncompleteVar] dleyna-core-0.6.0/libdleyna/core/log.c:170:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_INFO [valueFlowBailoutIncompleteVar] dleyna-core-0.6.0/libdleyna/core/main-loop.c:131:0: error: failed to evaluate #if condition, undefined function-like macro invocation: GLIB_CHECK_VERSION( ... ) [syntaxError] dleyna-core-0.6.0/libdleyna/core/log.c:98:16: style: Variable 'log_context' can be declared as pointer to const [constVariablePointer] dleyna-core-0.6.0/libdleyna/core/service-task.c:43:2: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] dleyna-core-0.6.0/libdleyna/core/service-task.c:71:1: error: Memory leak: task [memleak] dleyna-core-0.6.0/libdleyna/core/service-task.c:128:67: style: Parameter 'task' can be declared as pointer to const [constParameterPointer] dleyna-core-0.6.0/libdleyna/core/settings.c:113:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SYS_CONFIG_DIR [valueFlowBailoutIncompleteVar] dleyna-core-0.6.0/libdleyna/core/settings.c:367:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DLEYNA_NEVER_QUIT [valueFlowBailoutIncompleteVar] dleyna-core-0.6.0/libdleyna/core/task-processor.c:360:2: warning: Return value of function g_hash_table_lookup_extended() is not used. [ignoredReturnValue] dleyna-core-0.6.0/libdleyna/core/task-processor.c:227:27: style: Variable 'queue_id' can be declared as pointer to const [constVariablePointer] dleyna-core-0.6.0/libdleyna/core/task-processor.c:279:17: style: Parameter 'user_data' can be declared as pointer to const. However it seems that 'prv_free_queue_for_source' is a callback function, if 'user_data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] dleyna-core-0.6.0/libdleyna/core/task-processor.c:307:9: note: You might need to cast the function pointer here dleyna-core-0.6.0/libdleyna/core/task-processor.c:279:17: note: Parameter 'user_data' can be declared as pointer to const dleyna-core-0.6.0/libdleyna/core/task-processor.c:281:27: style: Variable 'queue_key' can be declared as pointer to const [constVariablePointer] dleyna-core-0.6.0/libdleyna/core/task-processor.c:314:15: style: Parameter 'user_data' can be declared as pointer to const. However it seems that 'prv_free_queue_for_sink' is a callback function, if 'user_data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] dleyna-core-0.6.0/libdleyna/core/task-processor.c:342:9: note: You might need to cast the function pointer here dleyna-core-0.6.0/libdleyna/core/task-processor.c:314:15: note: Parameter 'user_data' can be declared as pointer to const dleyna-core-0.6.0/libdleyna/core/task-processor.c:316:27: style: Variable 'queue_key' can be declared as pointer to const [constVariablePointer] dleyna-core-0.6.0/libdleyna/core/task-processor.c:506:23: style: Variable 'queue' can be declared as pointer to const [constVariablePointer] dleyna-core-0.6.0/libdleyna/core/settings.c:363:1: error: Memory leak: s_val [memleak] dleyna-core-0.6.0/libdleyna/core/settings.c:201:35: style: Parameter 'int_list' can be declared as pointer to const [constParameterPointer] dleyna-core-0.6.0/libdleyna/core/settings.c:206:6: style: Variable 'log_level_array' can be declared as const array [constVariable] dleyna-core-0.6.0/libdleyna/core/settings.c:459:64: style: Parameter 'settings' can be declared as pointer to const [constParameterPointer] dleyna-core-0.6.0/libdleyna/core/settings.c:464:47: style: Parameter 'settings' can be declared as pointer to const [constParameterPointer] dleyna-core-0.6.0/libdleyna/core/settings.c:469:57: style: Parameter 'settings' can be declared as pointer to const [constParameterPointer] dleyna-core-0.6.0/libdleyna/core/settings.c:493:59: style: Parameter 'settings' can be declared as pointer to const [constParameterPointer] dleyna-core-0.6.0/libdleyna/core/settings.c:517:67: style: Parameter 'settings' can be declared as pointer to const [constParameterPointer] dleyna-core-0.6.0/libdleyna/core/settings.c:541:65: style: Parameter 'settings' can be declared as pointer to const [constParameterPointer] diff: head dleyna-core-0.6.0/libdleyna/core/main-loop.c:131:0: error: failed to evaluate #if condition, undefined function-like macro invocation: GLIB_CHECK_VERSION( ... ) [syntaxError] head dleyna-core-0.6.0/libdleyna/core/task-processor.c:279:17: style: Parameter 'user_data' can be declared as pointer to const. However it seems that 'prv_free_queue_for_source' is a callback function, if 'user_data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] dleyna-core-0.6.0/libdleyna/core/task-processor.c:307:9: note: You might need to cast the function pointer here dleyna-core-0.6.0/libdleyna/core/task-processor.c:279:17: note: Parameter 'user_data' can be declared as pointer to const head dleyna-core-0.6.0/libdleyna/core/task-processor.c:314:15: style: Parameter 'user_data' can be declared as pointer to const. However it seems that 'prv_free_queue_for_sink' is a callback function, if 'user_data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] dleyna-core-0.6.0/libdleyna/core/task-processor.c:342:9: note: You might need to cast the function pointer here dleyna-core-0.6.0/libdleyna/core/task-processor.c:314:15: note: Parameter 'user_data' can be declared as pointer to const DONE