2025-08-29 17:06 ftp://ftp.de.debian.org/debian/pool/main/x/xss-lock/xss-lock_0.3.0+git20230128.0c562b.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.41+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: 478055e (2025-08-29 18:53:24 +0200) count: 4 19 elapsed-time: 0.0 0.1 head-timing-info: old-timing-info: head results: xss-lock-0.3.0+git20230128.0c562b/src/xcb_utils.c:11:0: error: failed to evaluate #if condition, undefined function-like macro invocation: GLIB_CHECK_VERSION( ... ) [preprocessorErrorDirective] xss-lock-0.3.0+git20230128.0c562b/src/xcb_utils.c:11:2: error: failed to evaluate #if condition, undefined function-like macro invocation: GLIB_CHECK_VERSION( ... ) [preprocessorErrorDirective] xss-lock-0.3.0+git20230128.0c562b/src/xss-lock.c:295:0: error: failed to evaluate #if condition, undefined function-like macro invocation: GLIB_CHECK_VERSION( ... ) [preprocessorErrorDirective] xss-lock-0.3.0+git20230128.0c562b/src/xss-lock.c:295:2: error: failed to evaluate #if condition, undefined function-like macro invocation: GLIB_CHECK_VERSION( ... ) [preprocessorErrorDirective] diff: 2.18.0 xss-lock-0.3.0+git20230128.0c562b/src/xcb_utils.c:114:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_IO_IN [valueFlowBailoutIncompleteVar] head xss-lock-0.3.0+git20230128.0c562b/src/xcb_utils.c:11:0: error: failed to evaluate #if condition, undefined function-like macro invocation: GLIB_CHECK_VERSION( ... ) [preprocessorErrorDirective] head xss-lock-0.3.0+git20230128.0c562b/src/xcb_utils.c:11:2: error: failed to evaluate #if condition, undefined function-like macro invocation: GLIB_CHECK_VERSION( ... ) [preprocessorErrorDirective] 2.18.0 xss-lock-0.3.0+git20230128.0c562b/src/xcb_utils.c:73:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable xcb_poll_for_event [valueFlowBailoutIncompleteVar] 2.18.0 xss-lock-0.3.0+git20230128.0c562b/src/xss-lock.c:103:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable xcb_screensaver_id [valueFlowBailoutIncompleteVar] 2.18.0 xss-lock-0.3.0+git20230128.0c562b/src/xss-lock.c:180:41: style: Variable 'xss_event' can be declared as pointer to const [constVariablePointer] 2.18.0 xss-lock-0.3.0+git20230128.0c562b/src/xss-lock.c:185:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XCB_SCREENSAVER_KIND_INTERNAL [valueFlowBailoutIncompleteVar] 2.18.0 xss-lock-0.3.0+git20230128.0c562b/src/xss-lock.c:242:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable F_SETFD [valueFlowBailoutIncompleteVar] 2.18.0 xss-lock-0.3.0+git20230128.0c562b/src/xss-lock.c:248:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_SPAWN_SEARCH_PATH [valueFlowBailoutIncompleteVar] 2.18.0 xss-lock-0.3.0+git20230128.0c562b/src/xss-lock.c:280:26: style: Parameter 'child' can be declared as pointer to const [constParameterPointer] 2.18.0 xss-lock-0.3.0+git20230128.0c562b/src/xss-lock.c:283:92: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head xss-lock-0.3.0+git20230128.0c562b/src/xss-lock.c:295:0: error: failed to evaluate #if condition, undefined function-like macro invocation: GLIB_CHECK_VERSION( ... ) [preprocessorErrorDirective] head xss-lock-0.3.0+git20230128.0c562b/src/xss-lock.c:295:2: error: failed to evaluate #if condition, undefined function-like macro invocation: GLIB_CHECK_VERSION( ... ) [preprocessorErrorDirective] 2.18.0 xss-lock-0.3.0+git20230128.0c562b/src/xss-lock.c:310:38: style: Parameter 'user_data' can be declared as pointer to const. However it seems that 'logind_manager_proxy_new_cb' is a callback function, if 'user_data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] xss-lock-0.3.0+git20230128.0c562b/src/xss-lock.c:579:36: note: You might need to cast the function pointer here xss-lock-0.3.0+git20230128.0c562b/src/xss-lock.c:310:38: note: Parameter 'user_data' can be declared as pointer to const 2.18.0 xss-lock-0.3.0+git20230128.0c562b/src/xss-lock.c:337:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_DBUS_CALL_FLAGS_NONE [valueFlowBailoutIncompleteVar] 2.18.0 xss-lock-0.3.0+git20230128.0c562b/src/xss-lock.c:348:74: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable APP_NAME [valueFlowBailoutIncompleteVar] 2.18.0 xss-lock-0.3.0+git20230128.0c562b/src/xss-lock.c:385:56: style: Parameter 'signal_name' can be declared as pointer to const. However it seems that 'logind_manager_on_signal_prepare_for_sleep' is a callback function, if 'signal_name' is declared with const you might also need to cast function pointer(s). [constParameterCallback] xss-lock-0.3.0+git20230128.0c562b/src/xss-lock.c:322:9: note: You might need to cast the function pointer here xss-lock-0.3.0+git20230128.0c562b/src/xss-lock.c:385:56: note: Parameter 'signal_name' can be declared as pointer to const 2.18.0 xss-lock-0.3.0+git20230128.0c562b/src/xss-lock.c:454:43: style: Parameter 'signal_name' can be declared as pointer to const. However it seems that 'logind_session_on_signal_lock' is a callback function, if 'signal_name' is declared with const you might also need to cast function pointer(s). [constParameterCallback] xss-lock-0.3.0+git20230128.0c562b/src/xss-lock.c:447:5: note: You might need to cast the function pointer here xss-lock-0.3.0+git20230128.0c562b/src/xss-lock.c:454:43: note: Parameter 'signal_name' can be declared as pointer to const 2.18.0 xss-lock-0.3.0+git20230128.0c562b/src/xss-lock.c:472:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_DBUS_CALL_FLAGS_NONE [valueFlowBailoutIncompleteVar] 2.18.0 xss-lock-0.3.0+git20230128.0c562b/src/xss-lock.c:480:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_DBUS_CALL_FLAGS_NONE [valueFlowBailoutIncompleteVar] 2.18.0 xss-lock-0.3.0+git20230128.0c562b/src/xss-lock.c:522:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XCB_SCREEN_SAVER_RESET [valueFlowBailoutIncompleteVar] 2.18.0 xss-lock-0.3.0+git20230128.0c562b/src/xss-lock.c:539:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_LOG_FLAG_FATAL [valueFlowBailoutIncompleteVar] 2.18.0 xss-lock-0.3.0+git20230128.0c562b/src/xss-lock.c:554:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_ALL [valueFlowBailoutIncompleteVar] DONE