2026-05-05 22:46 ftp://ftp.de.debian.org/debian/pool/main/x/xss-lock/xss-lock_0.4.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 -j1 platform: Linux-6.8.0-111-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.70 compiler: g++ (Ubuntu 14.2.0-4ubuntu2~24.04.1) 14.2.0 cppcheck: head 2.20.0 head-info: 6278f6b (2026-05-05 15:01:04 +0200) count: 20 19 elapsed-time: 0.2 0.1 head-timing-info: old-timing-info: head results: xss-lock-0.4.0/src/xcb_utils.c:73:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable xcb_poll_for_event [valueFlowBailoutIncompleteVar] xss-lock-0.4.0/src/xcb_utils.c:114:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_IO_IN [valueFlowBailoutIncompleteVar] xss-lock-0.4.0/src/xcb_utils.c:131:77: style:inconclusive: Function 'xcb_event_add' argument 3 names different: declaration '' definition 'data'. [funcArgNamesDifferentUnnamed] xss-lock-0.4.0/src/xss-lock.c:103:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable xcb_screensaver_id [valueFlowBailoutIncompleteVar] xss-lock-0.4.0/src/xss-lock.c:185:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XCB_SCREENSAVER_KIND_INTERNAL [valueFlowBailoutIncompleteVar] xss-lock-0.4.0/src/xss-lock.c:246:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable F_SETFD [valueFlowBailoutIncompleteVar] xss-lock-0.4.0/src/xss-lock.c:252:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_SPAWN_SEARCH_PATH [valueFlowBailoutIncompleteVar] xss-lock-0.4.0/src/xss-lock.c:287:92: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] xss-lock-0.4.0/src/xss-lock.c:349:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_DBUS_CALL_FLAGS_NONE [valueFlowBailoutIncompleteVar] xss-lock-0.4.0/src/xss-lock.c:360:74: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable APP_NAME [valueFlowBailoutIncompleteVar] xss-lock-0.4.0/src/xss-lock.c:484:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_DBUS_CALL_FLAGS_NONE [valueFlowBailoutIncompleteVar] xss-lock-0.4.0/src/xss-lock.c:492:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_DBUS_CALL_FLAGS_NONE [valueFlowBailoutIncompleteVar] xss-lock-0.4.0/src/xss-lock.c:534:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XCB_SCREEN_SAVER_RESET [valueFlowBailoutIncompleteVar] xss-lock-0.4.0/src/xss-lock.c:551:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_LOG_FLAG_FATAL [valueFlowBailoutIncompleteVar] xss-lock-0.4.0/src/xss-lock.c:566:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_ALL [valueFlowBailoutIncompleteVar] xss-lock-0.4.0/src/xss-lock.c:180:41: style: Variable 'xss_event' can be declared as pointer to const [constVariablePointer] xss-lock-0.4.0/src/xss-lock.c:284:26: style: Parameter 'child' can be declared as pointer to const [constParameterPointer] xss-lock-0.4.0/src/xss-lock.c:322: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.4.0/src/xss-lock.c:591:36: note: You might need to cast the function pointer here xss-lock-0.4.0/src/xss-lock.c:322:38: note: Parameter 'user_data' can be declared as pointer to const xss-lock-0.4.0/src/xss-lock.c:397: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.4.0/src/xss-lock.c:334:9: note: You might need to cast the function pointer here xss-lock-0.4.0/src/xss-lock.c:397:56: note: Parameter 'signal_name' can be declared as pointer to const xss-lock-0.4.0/src/xss-lock.c:466: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.4.0/src/xss-lock.c:459:5: note: You might need to cast the function pointer here xss-lock-0.4.0/src/xss-lock.c:466:43: note: Parameter 'signal_name' can be declared as pointer to const diff: head xss-lock-0.4.0/src/xcb_utils.c:131:77: style:inconclusive: Function 'xcb_event_add' argument 3 names different: declaration '' definition 'data'. [funcArgNamesDifferentUnnamed] DONE