2026-02-15 16:39 ftp://ftp.de.debian.org/debian/pool/main/l/lxappearance/lxappearance_0.6.4.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --library=gtk --library=motif --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-100-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.69 compiler: g++ (Ubuntu 14.2.0-4ubuntu2~24.04) 14.2.0 cppcheck: head 2.19.0 head-info: a150ff4 (2026-02-15 12:51:46 +0100) count: 33 1 elapsed-time: 0.4 0.1 head-timing-info: old-timing-info: head results: lxappearance-0.6.4/src/color-scheme.c:196:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_REGEX_MULTILINE [valueFlowBailoutIncompleteVar] lxappearance-0.6.4/src/color-scheme.c:59:22: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] lxappearance-0.6.4/src/color-scheme.c:63:25: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] lxappearance-0.6.4/src/cursor-theme.c:29:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_TYPE_PIXBUF [valueFlowBailoutIncompleteVar] lxappearance-0.6.4/src/icon-theme.c:103:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_FILE_TEST_IS_DIR [valueFlowBailoutIncompleteVar] lxappearance-0.6.4/src/icon-theme.c:30:37: style: Parameter 't' can be declared as pointer to const. However it seems that 'icon_theme_cmp_name' is a callback function, if 't' is declared with const you might also need to cast function pointer(s). [constParameterCallback] lxappearance-0.6.4/src/icon-theme.c:73:74: note: You might need to cast the function pointer here lxappearance-0.6.4/src/icon-theme.c:30:37: note: Parameter 't' can be declared as pointer to const lxappearance-0.6.4/src/lxappearance.c:130:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable None [valueFlowBailoutIncompleteVar] lxappearance-0.6.4/src/lxappearance.c:209:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_FILE_TEST_IS_SYMLINK [valueFlowBailoutIncompleteVar] lxappearance-0.6.4/src/lxappearance.c:389:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_FILE_TEST_IS_DIR [valueFlowBailoutIncompleteVar] lxappearance-0.6.4/src/lxappearance.c:485:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_KEY_FILE_KEEP_COMMENTS [valueFlowBailoutIncompleteVar] lxappearance-0.6.4/src/lxappearance.c:551:64: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_RESPONSE_APPLY [valueFlowBailoutIncompleteVar] lxappearance-0.6.4/src/lxappearance.c:671:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GETTEXT_PACKAGE [valueFlowBailoutIncompleteVar] lxappearance-0.6.4/src/lxappearance.c:726:64: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_RESPONSE_APPLY [valueFlowBailoutIncompleteVar] lxappearance-0.6.4/src/lxappearance.c:223:9: warning: Return value of function g_file_set_contents() is not used. [ignoredReturnValue] lxappearance-0.6.4/src/lxappearance.c:533:5: warning: Return value of function g_file_set_contents() is not used. [ignoredReturnValue] lxappearance-0.6.4/src/lxappearance.c:143:24: style: Condition 'check_lxde_dbus()' is always false [knownConditionTrueFalse] lxappearance-0.6.4/src/lxappearance.c:143:24: note: Calling function 'check_lxde_dbus' returns 0 lxappearance-0.6.4/src/lxappearance.c:143:24: note: Condition 'check_lxde_dbus()' is always false lxappearance-0.6.4/src/lxappearance.c:558:28: style: Local variable 'dlg' shadows outer argument [shadowArgument] lxappearance-0.6.4/src/lxappearance.c:538:40: note: Shadowed declaration lxappearance-0.6.4/src/lxappearance.c:558:28: note: Shadow variable lxappearance-0.6.4/src/lxappearance.c:572:18: style: Variable 'settings' can be declared as pointer to const [constVariablePointer] lxappearance-0.6.4/src/other.c:27:59: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_TOOLBAR_ICONS [valueFlowBailoutIncompleteVar] lxappearance-0.6.4/src/other.c:33:63: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_ICON_SIZE_MENU [valueFlowBailoutIncompleteVar] lxappearance-0.6.4/src/other.c:70:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_TOOLBAR_ICONS [valueFlowBailoutIncompleteVar] lxappearance-0.6.4/src/plugin.c:45:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PACKAGE_LIB_DIR [valueFlowBailoutIncompleteVar] lxappearance-0.6.4/src/utils.c:39:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_RESPONSE_OK [valueFlowBailoutIncompleteVar] lxappearance-0.6.4/src/utils.c:45:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_RESPONSE_OK [valueFlowBailoutIncompleteVar] lxappearance-0.6.4/src/utils.c:65:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_DIALOG_MODAL [valueFlowBailoutIncompleteVar] lxappearance-0.6.4/src/utils.c:181:66: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_FILE_TEST_EXISTS [valueFlowBailoutIncompleteVar] lxappearance-0.6.4/src/utils.c:230:59: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_RESPONSE_CANCEL [valueFlowBailoutIncompleteVar] lxappearance-0.6.4/src/utils.c:283:5: error: Memory leak: tmp_dir [memleak] lxappearance-0.6.4/src/utils.c:47:15: style: Variable 'ppid' can be declared as pointer to const [constVariablePointer] lxappearance-0.6.4/src/utils.c:104:20: style: Variable 'theme2' can be declared as pointer to const [constVariablePointer] lxappearance-0.6.4/src/utils.c:252:58: style: Parameter 'theme' can be declared as pointer to const [constParameterPointer] lxappearance-0.6.4/src/widget-theme.c:44:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_FILE_TEST_EXISTS [valueFlowBailoutIncompleteVar] lxappearance-0.6.4/src/widget-theme.c:148:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_STATE_NORMAL [valueFlowBailoutIncompleteVar] diff: head lxappearance-0.6.4/src/color-scheme.c:196:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_REGEX_MULTILINE [valueFlowBailoutIncompleteVar] head lxappearance-0.6.4/src/color-scheme.c:59:22: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] head lxappearance-0.6.4/src/color-scheme.c:63:25: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] head lxappearance-0.6.4/src/cursor-theme.c:29:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_TYPE_PIXBUF [valueFlowBailoutIncompleteVar] head lxappearance-0.6.4/src/icon-theme.c:103:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_FILE_TEST_IS_DIR [valueFlowBailoutIncompleteVar] head lxappearance-0.6.4/src/icon-theme.c:30:37: style: Parameter 't' can be declared as pointer to const. However it seems that 'icon_theme_cmp_name' is a callback function, if 't' is declared with const you might also need to cast function pointer(s). [constParameterCallback] lxappearance-0.6.4/src/icon-theme.c:73:74: note: You might need to cast the function pointer here lxappearance-0.6.4/src/icon-theme.c:30:37: note: Parameter 't' can be declared as pointer to const head lxappearance-0.6.4/src/lxappearance.c:130:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable None [valueFlowBailoutIncompleteVar] head lxappearance-0.6.4/src/lxappearance.c:143:24: style: Condition 'check_lxde_dbus()' is always false [knownConditionTrueFalse] lxappearance-0.6.4/src/lxappearance.c:143:24: note: Calling function 'check_lxde_dbus' returns 0 lxappearance-0.6.4/src/lxappearance.c:143:24: note: Condition 'check_lxde_dbus()' is always false head lxappearance-0.6.4/src/lxappearance.c:209:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_FILE_TEST_IS_SYMLINK [valueFlowBailoutIncompleteVar] head lxappearance-0.6.4/src/lxappearance.c:223:9: warning: Return value of function g_file_set_contents() is not used. [ignoredReturnValue] head lxappearance-0.6.4/src/lxappearance.c:389:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_FILE_TEST_IS_DIR [valueFlowBailoutIncompleteVar] head lxappearance-0.6.4/src/lxappearance.c:485:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_KEY_FILE_KEEP_COMMENTS [valueFlowBailoutIncompleteVar] head lxappearance-0.6.4/src/lxappearance.c:533:5: warning: Return value of function g_file_set_contents() is not used. [ignoredReturnValue] head lxappearance-0.6.4/src/lxappearance.c:551:64: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_RESPONSE_APPLY [valueFlowBailoutIncompleteVar] head lxappearance-0.6.4/src/lxappearance.c:558:28: style: Local variable 'dlg' shadows outer argument [shadowArgument] lxappearance-0.6.4/src/lxappearance.c:538:40: note: Shadowed declaration lxappearance-0.6.4/src/lxappearance.c:558:28: note: Shadow variable head lxappearance-0.6.4/src/lxappearance.c:572:18: style: Variable 'settings' can be declared as pointer to const [constVariablePointer] head lxappearance-0.6.4/src/lxappearance.c:671:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GETTEXT_PACKAGE [valueFlowBailoutIncompleteVar] head lxappearance-0.6.4/src/lxappearance.c:726:64: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_RESPONSE_APPLY [valueFlowBailoutIncompleteVar] 2.19.0 lxappearance-0.6.4/src/lxappearance.h:96:2: error: failed to evaluate #if condition, undefined function-like macro invocation: GTK_CHECK_VERSION( ... ) [syntaxError] head lxappearance-0.6.4/src/other.c:27:59: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_TOOLBAR_ICONS [valueFlowBailoutIncompleteVar] head lxappearance-0.6.4/src/other.c:33:63: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_ICON_SIZE_MENU [valueFlowBailoutIncompleteVar] head lxappearance-0.6.4/src/other.c:70:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_TOOLBAR_ICONS [valueFlowBailoutIncompleteVar] head lxappearance-0.6.4/src/plugin.c:45:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PACKAGE_LIB_DIR [valueFlowBailoutIncompleteVar] head lxappearance-0.6.4/src/utils.c:104:20: style: Variable 'theme2' can be declared as pointer to const [constVariablePointer] head lxappearance-0.6.4/src/utils.c:181:66: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_FILE_TEST_EXISTS [valueFlowBailoutIncompleteVar] head lxappearance-0.6.4/src/utils.c:230:59: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_RESPONSE_CANCEL [valueFlowBailoutIncompleteVar] head lxappearance-0.6.4/src/utils.c:252:58: style: Parameter 'theme' can be declared as pointer to const [constParameterPointer] head lxappearance-0.6.4/src/utils.c:283:5: error: Memory leak: tmp_dir [memleak] head lxappearance-0.6.4/src/utils.c:39:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_RESPONSE_OK [valueFlowBailoutIncompleteVar] head lxappearance-0.6.4/src/utils.c:45:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_RESPONSE_OK [valueFlowBailoutIncompleteVar] head lxappearance-0.6.4/src/utils.c:47:15: style: Variable 'ppid' can be declared as pointer to const [constVariablePointer] head lxappearance-0.6.4/src/utils.c:65:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_DIALOG_MODAL [valueFlowBailoutIncompleteVar] head lxappearance-0.6.4/src/widget-theme.c:148:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_STATE_NORMAL [valueFlowBailoutIncompleteVar] head lxappearance-0.6.4/src/widget-theme.c:44:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_FILE_TEST_EXISTS [valueFlowBailoutIncompleteVar] DONE