2026-05-03 22:17 ftp://ftp.de.debian.org/debian/pool/main/o/obsession/obsession_20140608.orig.tar.bz2 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: e5c4a73 (2026-05-01 11:10:43 +0200) count: 42 27 elapsed-time: 0.3 0.2 head-timing-info: old-timing-info: head results: obsession-20140608/dbus-interface.c:223:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_DBUS_CALL_FLAGS_NONE [valueFlowBailoutIncompleteVar] obsession-20140608/obsession-common.c:155:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] obsession-20140608/obsession-common.c:323:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_KEY_FILE_KEEP_COMMENTS [valueFlowBailoutIncompleteVar] obsession-20140608/obsession-common.c:215:4: warning: Assignment of function parameter has no effect outside the function. Did you forget dereferencing it? [uselessAssignmentPtrArg] obsession-20140608/obsession-common.c:235:4: warning: Assignment of function parameter has no effect outside the function. Did you forget dereferencing it? [uselessAssignmentPtrArg] obsession-20140608/obsession-common.c:253:4: warning: Assignment of function parameter has no effect outside the function. Did you forget dereferencing it? [uselessAssignmentPtrArg] obsession-20140608/obsession-common.c:271:4: warning: Assignment of function parameter has no effect outside the function. Did you forget dereferencing it? [uselessAssignmentPtrArg] obsession-20140608/obsession-common.c:347:4: warning: Return value of function g_file_set_contents() is not used. [ignoredReturnValue] obsession-20140608/obsession-common.c:35:42: style:inconclusive: Function 'initialize_context' argument 1 names different: declaration '' definition 'handler_context'. [funcArgNamesDifferentUnnamed] obsession-20140608/obsession-common.c:122:36: style:inconclusive: Function 'free_context' argument 1 names different: declaration '' definition 'handler_context'. [funcArgNamesDifferentUnnamed] obsession-20140608/obsession-common.c:131:29: style:inconclusive: Function 'lock_screen' argument 1 names different: declaration '' definition 'cmd'. [funcArgNamesDifferentUnnamed] obsession-20140608/obsession-common.c:146:38: style:inconclusive: Function 'verify_running' argument 1 names different: declaration '' definition 'display_manager'. [funcArgNamesDifferentUnnamed] obsession-20140608/obsession-common.c:146:68: style:inconclusive: Function 'verify_running' argument 2 names different: declaration '' definition 'executable'. [funcArgNamesDifferentUnnamed] obsession-20140608/obsession-common.c:200:38: style:inconclusive: Function 'system_suspend' argument 1 names different: declaration '' definition 'handler_context'. [funcArgNamesDifferentUnnamed] obsession-20140608/obsession-common.c:200:63: style:inconclusive: Function 'system_suspend' argument 2 names different: declaration '' definition 'err'. [funcArgNamesDifferentUnnamed] obsession-20140608/obsession-common.c:220:40: style:inconclusive: Function 'system_hibernate' argument 1 names different: declaration '' definition 'handler_context'. [funcArgNamesDifferentUnnamed] obsession-20140608/obsession-common.c:220:65: style:inconclusive: Function 'system_hibernate' argument 2 names different: declaration '' definition 'err'. [funcArgNamesDifferentUnnamed] obsession-20140608/obsession-common.c:240:37: style:inconclusive: Function 'system_reboot' argument 1 names different: declaration '' definition 'handler_context'. [funcArgNamesDifferentUnnamed] obsession-20140608/obsession-common.c:240:62: style:inconclusive: Function 'system_reboot' argument 2 names different: declaration '' definition 'err'. [funcArgNamesDifferentUnnamed] obsession-20140608/obsession-common.c:258:39: style:inconclusive: Function 'system_poweroff' argument 1 names different: declaration '' definition 'handler_context'. [funcArgNamesDifferentUnnamed] obsession-20140608/obsession-common.c:258:64: style:inconclusive: Function 'system_poweroff' argument 2 names different: declaration '' definition 'err'. [funcArgNamesDifferentUnnamed] obsession-20140608/obsession-common.c:276:42: style:inconclusive: Function 'system_user_switch' argument 1 names different: declaration '' definition 'handler_context'. [funcArgNamesDifferentUnnamed] obsession-20140608/obsession-common.c:317:35: style:inconclusive: Function 'load_config' argument 1 names different: declaration '' definition 'handler_context'. [funcArgNamesDifferentUnnamed] obsession-20140608/obsession-common.c:178:10: style: Local variable 'fd' shadows outer variable [shadowVariable] obsession-20140608/obsession-common.c:159:7: note: Shadowed declaration obsession-20140608/obsession-common.c:178:10: note: Shadow variable obsession-20140608/obsession-common.c:182:15: style: Local variable 'length' shadows outer variable [shadowVariable] obsession-20140608/obsession-common.c:163:12: note: Shadowed declaration obsession-20140608/obsession-common.c:182:15: note: Shadow variable obsession-20140608/obsession-common.c:240:37: style: Parameter 'handler_context' can be declared as pointer to const [constParameterPointer] obsession-20140608/obsession-common.c:258:39: style: Parameter 'handler_context' can be declared as pointer to const [constParameterPointer] obsession-20140608/obsession-exit.c:74:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_OPTION_ARG_NONE [valueFlowBailoutIncompleteVar] obsession-20140608/obsession-exit.c:106:7: style: Condition 'err' is always false [knownConditionTrueFalse] obsession-20140608/obsession-exit.c:66:16: note: Assignment 'err=NULL', assigned value is 0 obsession-20140608/obsession-exit.c:91:61: note: Assuming condition is false obsession-20140608/obsession-exit.c:106:7: note: Condition 'err' is always false obsession-20140608/obsession-exit.c:95:3: error: Memory leak: context [memleak] obsession-20140608/obsession-exit.c:94:18: error: Allocation with g_option_context_get_help, g_print doesn't release it. [leakNoVarFunctionCall] obsession-20140608/obsession-exit.c:30:40: style: Parameter 'handler_context' can be declared as pointer to const [constParameterPointer] obsession-20140608/obsession-logout.c:235:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_ALL [valueFlowBailoutIncompleteVar] obsession-20140608/obsession-logout.c:281:27: style: gtk_vbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_VERTICAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_vbox_newCalled] obsession-20140608/obsession-logout.c:285:24: style: gtk_vbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_VERTICAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_vbox_newCalled] obsession-20140608/obsession-logout.c:299:23: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] obsession-20140608/obsession-logout.c:74:6: style: Condition 'err' is always false [knownConditionTrueFalse] obsession-20140608/obsession-logout.c:69:16: note: Assignment 'err=NULL', assigned value is 0 obsession-20140608/obsession-logout.c:74:6: note: Condition 'err' is always false obsession-20140608/obsession-logout.c:90:6: style: Condition 'err' is always false [knownConditionTrueFalse] obsession-20140608/obsession-logout.c:85:16: note: Assignment 'err=NULL', assigned value is 0 obsession-20140608/obsession-logout.c:90:6: note: Condition 'err' is always false obsession-20140608/obsession-logout.c:106:6: style: Condition 'err' is always false [knownConditionTrueFalse] obsession-20140608/obsession-logout.c:101:16: note: Assignment 'err=NULL', assigned value is 0 obsession-20140608/obsession-logout.c:106:6: note: Condition 'err' is always false obsession-20140608/obsession-logout.c:122:6: style: Condition 'err' is always false [knownConditionTrueFalse] obsession-20140608/obsession-logout.c:117:16: note: Assignment 'err=NULL', assigned value is 0 obsession-20140608/obsession-logout.c:122:6: note: Condition 'err' is always false obsession-20140608/obsession-logout.c:139:40: style: Parameter 'button' can be declared as pointer to const. However it seems that 'cancel_clicked' is a callback function, if 'button' is declared with const you might also need to cast function pointer(s). [constParameterCallback] obsession-20140608/obsession-logout.c:411:2: note: You might need to cast the function pointer here obsession-20140608/obsession-logout.c:139:40: note: Parameter 'button' can be declared as pointer to const obsession-20140608/obsession-logout.c:139:57: style: Parameter 'user_data' can be declared as pointer to const. However it seems that 'cancel_clicked' is a callback function, if 'user_data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] obsession-20140608/obsession-logout.c:411:2: note: You might need to cast the function pointer here obsession-20140608/obsession-logout.c:139:57: note: Parameter 'user_data' can be declared as pointer to const diff: head obsession-20140608/obsession-common.c:122:36: style:inconclusive: Function 'free_context' argument 1 names different: declaration '' definition 'handler_context'. [funcArgNamesDifferentUnnamed] head obsession-20140608/obsession-common.c:131:29: style:inconclusive: Function 'lock_screen' argument 1 names different: declaration '' definition 'cmd'. [funcArgNamesDifferentUnnamed] head obsession-20140608/obsession-common.c:146:38: style:inconclusive: Function 'verify_running' argument 1 names different: declaration '' definition 'display_manager'. [funcArgNamesDifferentUnnamed] head obsession-20140608/obsession-common.c:146:68: style:inconclusive: Function 'verify_running' argument 2 names different: declaration '' definition 'executable'. [funcArgNamesDifferentUnnamed] head obsession-20140608/obsession-common.c:200:38: style:inconclusive: Function 'system_suspend' argument 1 names different: declaration '' definition 'handler_context'. [funcArgNamesDifferentUnnamed] head obsession-20140608/obsession-common.c:200:63: style:inconclusive: Function 'system_suspend' argument 2 names different: declaration '' definition 'err'. [funcArgNamesDifferentUnnamed] head obsession-20140608/obsession-common.c:220:40: style:inconclusive: Function 'system_hibernate' argument 1 names different: declaration '' definition 'handler_context'. [funcArgNamesDifferentUnnamed] head obsession-20140608/obsession-common.c:220:65: style:inconclusive: Function 'system_hibernate' argument 2 names different: declaration '' definition 'err'. [funcArgNamesDifferentUnnamed] head obsession-20140608/obsession-common.c:240:37: style:inconclusive: Function 'system_reboot' argument 1 names different: declaration '' definition 'handler_context'. [funcArgNamesDifferentUnnamed] head obsession-20140608/obsession-common.c:240:62: style:inconclusive: Function 'system_reboot' argument 2 names different: declaration '' definition 'err'. [funcArgNamesDifferentUnnamed] head obsession-20140608/obsession-common.c:258:39: style:inconclusive: Function 'system_poweroff' argument 1 names different: declaration '' definition 'handler_context'. [funcArgNamesDifferentUnnamed] head obsession-20140608/obsession-common.c:258:64: style:inconclusive: Function 'system_poweroff' argument 2 names different: declaration '' definition 'err'. [funcArgNamesDifferentUnnamed] head obsession-20140608/obsession-common.c:276:42: style:inconclusive: Function 'system_user_switch' argument 1 names different: declaration '' definition 'handler_context'. [funcArgNamesDifferentUnnamed] head obsession-20140608/obsession-common.c:317:35: style:inconclusive: Function 'load_config' argument 1 names different: declaration '' definition 'handler_context'. [funcArgNamesDifferentUnnamed] head obsession-20140608/obsession-common.c:35:42: style:inconclusive: Function 'initialize_context' argument 1 names different: declaration '' definition 'handler_context'. [funcArgNamesDifferentUnnamed] DONE