2025-09-01 21:51 ftp://ftp.de.debian.org/debian/pool/main/m/mpv-mpris/mpv-mpris_0.7.1.orig.tar.xz 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 -j1 platform: Linux-6.8.0-79-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.67 compiler: g++ (Ubuntu 14.2.0-4ubuntu2~24.04) 14.2.0 cppcheck: head 2.18.0 head-info: 2b51b48 (2025-09-01 15:35:55 +0200) count: 2 22 elapsed-time: 0.1 0.3 head-timing-info: old-timing-info: head results: mpv-mpris-0.7.1/mpris.c:154:0: error: failed to evaluate #if condition, undefined function-like macro invocation: GLIB_CHECK_VERSION( ... ) [preprocessorErrorDirective] mpv-mpris-0.7.1/mpris.c:154:2: error: failed to evaluate #if condition, undefined function-like macro invocation: GLIB_CHECK_VERSION( ... ) [preprocessorErrorDirective] diff: 2.18.0 mpv-mpris-0.7.1/mpris.c:121:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MPV_FORMAT_INT64 [valueFlowBailoutIncompleteVar] head mpv-mpris-0.7.1/mpris.c:154:0: error: failed to evaluate #if condition, undefined function-like macro invocation: GLIB_CHECK_VERSION( ... ) [preprocessorErrorDirective] head mpv-mpris-0.7.1/mpris.c:154:2: error: failed to evaluate #if condition, undefined function-like macro invocation: GLIB_CHECK_VERSION( ... ) [preprocessorErrorDirective] 2.18.0 mpv-mpris-0.7.1/mpris.c:233:74: style: Parameter 'path' can be declared as pointer to const [constParameterPointer] 2.18.0 mpv-mpris-0.7.1/mpris.c:241:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_FILE_TEST_EXISTS [valueFlowBailoutIncompleteVar] 2.18.0 mpv-mpris-0.7.1/mpris.c:321:9: error: g_date_strftime format string requires 2 parameters but only 1 is given. [wrongPrintfScanfArgNum] 2.18.0 mpv-mpris-0.7.1/mpris.c:340:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MPV_FORMAT_INT64 [valueFlowBailoutIncompleteVar] 2.18.0 mpv-mpris-0.7.1/mpris.c:420:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MPV_FORMAT_FLAG [valueFlowBailoutIncompleteVar] 2.18.0 mpv-mpris-0.7.1/mpris.c:484:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MPV_FORMAT_FLAG [valueFlowBailoutIncompleteVar] 2.18.0 mpv-mpris-0.7.1/mpris.c:511:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MPV_FORMAT_FLAG [valueFlowBailoutIncompleteVar] 2.18.0 mpv-mpris-0.7.1/mpris.c:604:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MPV_FORMAT_DOUBLE [valueFlowBailoutIncompleteVar] 2.18.0 mpv-mpris-0.7.1/mpris.c:683:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MPV_FORMAT_FLAG [valueFlowBailoutIncompleteVar] 2.18.0 mpv-mpris-0.7.1/mpris.c:724:25: debug: Scope::checkVariable found variable 'prop_value' with varid 0. [varid0] 2.18.0 mpv-mpris-0.7.1/mpris.c:724:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable prop_value [valueFlowBailoutIncompleteVar] 2.18.0 mpv-mpris-0.7.1/mpris.c:764:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MPV_FORMAT_DOUBLE [valueFlowBailoutIncompleteVar] 2.18.0 mpv-mpris-0.7.1/mpris.c:820:43: style: Parameter 'connection' can be declared as pointer to const. However it seems that 'on_name_lost' is a callback function, if 'connection' is declared with const you might also need to cast function pointer(s). [constParameterCallback] mpv-mpris-0.7.1/mpris.c:996:32: note: You might need to cast the function pointer here mpv-mpris-0.7.1/mpris.c:820:43: note: Parameter 'connection' can be declared as pointer to const 2.18.0 mpv-mpris-0.7.1/mpris.c:828:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_BUS_TYPE_SESSION [valueFlowBailoutIncompleteVar] 2.18.0 mpv-mpris-0.7.1/mpris.c:842:14: style: Variable 'paused' can be declared as pointer to const [constVariablePointer] 2.18.0 mpv-mpris-0.7.1/mpris.c:862:17: style: Variable 'rate' can be declared as pointer to const [constVariablePointer] 2.18.0 mpv-mpris-0.7.1/mpris.c:873:15: style: Variable 'status' can be declared as pointer to const [constVariablePointer] 2.18.0 mpv-mpris-0.7.1/mpris.c:878:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MPV_FORMAT_STRING [valueFlowBailoutIncompleteVar] 2.18.0 mpv-mpris-0.7.1/mpris.c:888:15: style: Variable 'status' can be declared as pointer to const [constVariablePointer] 2.18.0 mpv-mpris-0.7.1/mpris.c:956:34: style: Parameter 'fd' can be declared as pointer to const. However it seems that 'wakeup_handler' is a callback function, if 'fd' is declared with const you might also need to cast function pointer(s). [constParameterCallback] mpv-mpris-0.7.1/mpris.c:1014:34: note: You might need to cast the function pointer here mpv-mpris-0.7.1/mpris.c:956:34: note: Parameter 'fd' can be declared as pointer to const 2.18.0 mpv-mpris-0.7.1/mpris.c:991:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_BUS_TYPE_SESSION [valueFlowBailoutIncompleteVar] DONE