2025-11-18 03:04 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 -j90 platform: Linux-6.8.0-87-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.69 compiler: g++ (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0 cppcheck: head 2.18.0 head-info: d8b6e08 (2025-11-17 23:40:03 +0100) count: 1 37 elapsed-time: 0.0 0.1 head-timing-info: old-timing-info: head results: lxappearance-0.6.4/src/lxappearance.h:96:0: error: failed to evaluate #if condition, undefined function-like macro invocation: GTK_CHECK_VERSION( ... ) [syntaxError] diff: 2.18.0 lxappearance-0.6.4/src/color-scheme.c:196:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_REGEX_MULTILINE [valueFlowBailoutIncompleteVar] 2.18.0 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] 2.18.0 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] 2.18.0 lxappearance-0.6.4/src/cursor-theme.c:29:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_TYPE_PIXBUF [valueFlowBailoutIncompleteVar] 2.18.0 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] 2.18.0 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 2.18.0 lxappearance-0.6.4/src/lxappearance.c:130:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable None [valueFlowBailoutIncompleteVar] 2.18.0 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 2.18.0 lxappearance-0.6.4/src/lxappearance.c:209:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_FILE_TEST_IS_SYMLINK [valueFlowBailoutIncompleteVar] 2.18.0 lxappearance-0.6.4/src/lxappearance.c:223:9: warning: Return value of function g_file_set_contents() is not used. [ignoredReturnValue] 2.18.0 lxappearance-0.6.4/src/lxappearance.c:247:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_CLIENT_EVENT [valueFlowBailoutIncompleteVar] 2.18.0 lxappearance-0.6.4/src/lxappearance.c:389:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_FILE_TEST_IS_DIR [valueFlowBailoutIncompleteVar] 2.18.0 lxappearance-0.6.4/src/lxappearance.c:465:9: warning: Return value of function g_file_set_contents() is not used. [ignoredReturnValue] 2.18.0 lxappearance-0.6.4/src/lxappearance.c:485:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_KEY_FILE_KEEP_COMMENTS [valueFlowBailoutIncompleteVar] 2.18.0 lxappearance-0.6.4/src/lxappearance.c:533:5: warning: Return value of function g_file_set_contents() is not used. [ignoredReturnValue] 2.18.0 lxappearance-0.6.4/src/lxappearance.c:551:64: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_RESPONSE_APPLY [valueFlowBailoutIncompleteVar] 2.18.0 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 2.18.0 lxappearance-0.6.4/src/lxappearance.c:572:18: style: Variable 'settings' can be declared as pointer to const [constVariablePointer] 2.18.0 lxappearance-0.6.4/src/lxappearance.c:671:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GETTEXT_PACKAGE [valueFlowBailoutIncompleteVar] 2.18.0 lxappearance-0.6.4/src/lxappearance.c:726:64: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_RESPONSE_APPLY [valueFlowBailoutIncompleteVar] head lxappearance-0.6.4/src/lxappearance.h:96:0: error: failed to evaluate #if condition, undefined function-like macro invocation: GTK_CHECK_VERSION( ... ) [syntaxError] 2.18.0 lxappearance-0.6.4/src/other.c:27:59: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_TOOLBAR_ICONS [valueFlowBailoutIncompleteVar] 2.18.0 lxappearance-0.6.4/src/other.c:33:63: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_ICON_SIZE_MENU [valueFlowBailoutIncompleteVar] 2.18.0 lxappearance-0.6.4/src/other.c:70:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_TOOLBAR_ICONS [valueFlowBailoutIncompleteVar] 2.18.0 lxappearance-0.6.4/src/plugin.c:45:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PACKAGE_LIB_DIR [valueFlowBailoutIncompleteVar] 2.18.0 lxappearance-0.6.4/src/utils.c:104:20: style: Variable 'theme2' can be declared as pointer to const [constVariablePointer] 2.18.0 lxappearance-0.6.4/src/utils.c:181:66: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_FILE_TEST_EXISTS [valueFlowBailoutIncompleteVar] 2.18.0 lxappearance-0.6.4/src/utils.c:230:59: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_RESPONSE_CANCEL [valueFlowBailoutIncompleteVar] 2.18.0 lxappearance-0.6.4/src/utils.c:252:58: style: Parameter 'theme' can be declared as pointer to const [constParameterPointer] 2.18.0 lxappearance-0.6.4/src/utils.c:283:5: error: Memory leak: tmp_dir [memleak] 2.18.0 lxappearance-0.6.4/src/utils.c:39:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_RESPONSE_OK [valueFlowBailoutIncompleteVar] 2.18.0 lxappearance-0.6.4/src/utils.c:45:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_RESPONSE_OK [valueFlowBailoutIncompleteVar] 2.18.0 lxappearance-0.6.4/src/utils.c:47:15: style: Variable 'ppid' can be declared as pointer to const [constVariablePointer] 2.18.0 lxappearance-0.6.4/src/utils.c:67:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_DIALOG_NO_SEPARATOR [valueFlowBailoutIncompleteVar] 2.18.0 lxappearance-0.6.4/src/widget-theme.c:141:16: style: Variable 'demo_vbox' can be declared as pointer to const [constVariablePointer] 2.18.0 lxappearance-0.6.4/src/widget-theme.c:145:15: style: Variable 'demo_vbox' is assigned a value that is never used. [unreadVariable] 2.18.0 lxappearance-0.6.4/src/widget-theme.c:148:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_STATE_NORMAL [valueFlowBailoutIncompleteVar] 2.18.0 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