2025-12-24 14:10 ftp://ftp.de.debian.org/debian/pool/main/s/spacefm/spacefm_1.0.6.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-90-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: a5ec929 (2025-12-24 09:21:38 +0100) count: 373 373 elapsed-time: 8.7 8.6 head-timing-info: old-timing-info: head results: spacefm-1.0.6/src/compat/glib-utils.h:20:2: error: failed to evaluate #if condition, undefined function-like macro invocation: GLIB_CHECK_VERSION( ... ) [syntaxError] spacefm-1.0.6/src/gtk2-compat.h:4:2: error: failed to evaluate #if condition, undefined function-like macro invocation: GTK_CHECK_VERSION( ... ) [syntaxError] spacefm-1.0.6/src/desktop/desktop-window.h:134:2: error: failed to evaluate #if condition, undefined function-like macro invocation: GTK_CHECK_VERSION( ... ) [syntaxError] spacefm-1.0.6/src/desktop/working-area.c:64:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable None [valueFlowBailoutIncompleteVar] spacefm-1.0.6/src/desktop/working-area.c:37:10: style: Variable 'workareas' can be declared as pointer to const [constVariablePointer] spacefm-1.0.6/src/desktop/working-area.c:78:11: style: Variable 'desktops' is assigned a value that is never used. [unreadVariable] spacefm-1.0.6/src/exo/exo-binding.c:203:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ExoBinding [valueFlowBailoutIncompleteVar] spacefm-1.0.6/src/exo/exo-binding.c:235:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ExoMutualBinding [valueFlowBailoutIncompleteVar] spacefm-1.0.6/src/exo/exo-binding.c:361:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable g_value_transform [valueFlowBailoutIncompleteVar] spacefm-1.0.6/src/exo/exo-binding.c:461:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable g_value_transform [valueFlowBailoutIncompleteVar] spacefm-1.0.6/src/exo/exo-private.h:53:2: error: failed to evaluate #if condition, undefined function-like macro invocation: GLIB_CHECK_VERSION( ... ) [syntaxError] spacefm-1.0.6/src/exo/exo-icon-view.h:329:2: error: failed to evaluate #if condition, undefined function-like macro invocation: GTK_CHECK_VERSION( ... ) [syntaxError] spacefm-1.0.6/src/exo/exo-marshal.c:65:30: debug: Scope::checkVariable found variable 'data2' with varid 0. [varid0] spacefm-1.0.6/src/exo/exo-marshal.c:102:30: debug: Scope::checkVariable found variable 'data2' with varid 0. [varid0] spacefm-1.0.6/src/exo/exo-marshal.c:138:30: debug: Scope::checkVariable found variable 'data2' with varid 0. [varid0] spacefm-1.0.6/src/exo/exo-marshal.c:178:30: debug: Scope::checkVariable found variable 'data2' with varid 0. [varid0] spacefm-1.0.6/src/exo/exo-marshal.c:217:30: debug: Scope::checkVariable found variable 'data2' with varid 0. [varid0] spacefm-1.0.6/src/exo/exo-marshal.c:256:30: debug: Scope::checkVariable found variable 'data2' with varid 0. [varid0] spacefm-1.0.6/src/exo/exo-marshal.c:300:30: debug: Scope::checkVariable found variable 'data2' with varid 0. [varid0] spacefm-1.0.6/src/exo/exo-marshal.c:65:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable data2 [valueFlowBailoutIncompleteVar] spacefm-1.0.6/src/exo/exo-marshal.c:102:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable data2 [valueFlowBailoutIncompleteVar] spacefm-1.0.6/src/exo/exo-marshal.c:138:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable data2 [valueFlowBailoutIncompleteVar] spacefm-1.0.6/src/exo/exo-marshal.c:178:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable data2 [valueFlowBailoutIncompleteVar] spacefm-1.0.6/src/exo/exo-marshal.c:217:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable data2 [valueFlowBailoutIncompleteVar] spacefm-1.0.6/src/exo/exo-marshal.c:256:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable data2 [valueFlowBailoutIncompleteVar] spacefm-1.0.6/src/exo/exo-marshal.c:300:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable data2 [valueFlowBailoutIncompleteVar] spacefm-1.0.6/src/find-files.c:1022:2: error: failed to evaluate #if condition, undefined function-like macro invocation: GTK_CHECK_VERSION( ... ) [syntaxError] spacefm-1.0.6/src/go-dialog.c:21:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PACKAGE_UI_DIR [valueFlowBailoutIncompleteVar] spacefm-1.0.6/src/go-dialog.c:59:67: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PTK_FB_CHDIR_ADD_HISTORY [valueFlowBailoutIncompleteVar] spacefm-1.0.6/src/go-dialog.c:41:31: style:inconclusive: Function 'fm_go' argument 1 names different: declaration 'parent' definition 'main_window'. [funcArgNamesDifferent] spacefm-1.0.6/src/go-dialog.h:9:31: note: Function 'fm_go' argument 1 names different: declaration 'parent' definition 'main_window'. spacefm-1.0.6/src/go-dialog.c:41:31: note: Function 'fm_go' argument 1 names different: declaration 'parent' definition 'main_window'. spacefm-1.0.6/src/go-dialog.c:19:59: style: Parameter 'initial_path' can be declared as pointer to const [constParameterPointer] spacefm-1.0.6/src/libmd5-rfc/md5.c:56:2: error: failed to evaluate #if condition, undefined function-like macro invocation: GLIB_CHECK_VERSION( ... ) [syntaxError] spacefm-1.0.6/src/main.c:1426:2: error: failed to evaluate #if condition, undefined function-like macro invocation: GTK_CHECK_VERSION( ... ) [syntaxError] spacefm-1.0.6/src/mime-type/mime-action.c:499:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_FILE_TEST_EXISTS [valueFlowBailoutIncompleteVar] spacefm-1.0.6/src/mime-type/mime-action.c:556:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_FILE_TEST_IS_DIR [valueFlowBailoutIncompleteVar] spacefm-1.0.6/src/mime-type/mime-action.c:591:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_FILE_TEST_IS_REGULAR [valueFlowBailoutIncompleteVar] spacefm-1.0.6/src/mime-type/mime-action.c:446:13: error: Memory leak: kf [memleak] spacefm-1.0.6/src/mime-type/mime-action.c:441:15: style: Local variable 'name' shadows outer variable [shadowVariable] spacefm-1.0.6/src/mime-type/mime-action.c:433:11: note: Shadowed declaration spacefm-1.0.6/src/mime-type/mime-action.c:441:15: note: Shadow variable spacefm-1.0.6/src/mime-type/mime-action.c:645:15: style: Local variable 'path' shadows outer variable [shadowVariable] spacefm-1.0.6/src/mime-type/mime-action.c:626:11: note: Shadowed declaration spacefm-1.0.6/src/mime-type/mime-action.c:645:15: note: Shadow variable spacefm-1.0.6/src/mime-type/mime-action.c:434:11: style: Variable 'file_content' can be declared as pointer to const [constVariablePointer] spacefm-1.0.6/src/mime-type/mime-action.c:626:11: style: Unused variable: path [unusedVariable] spacefm-1.0.6/src/mime-type/mime-cache.c:114:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] spacefm-1.0.6/src/mime-type/mime-cache.c:143:75: style: Checking if unsigned expression 'minv' is less than zero. [unsignedLessThanZero] spacefm-1.0.6/src/mime-type/mime-cache.c:262:49: style: Parameter 'cache' can be declared as pointer to const [constParameterPointer] spacefm-1.0.6/src/mime-type/mime-cache.c:389:50: style: Parameter 'cache' can be declared as pointer to const [constParameterPointer] spacefm-1.0.6/src/mime-type/mime-cache.c:441:54: style: Parameter 'cache' can be declared as pointer to const [constParameterPointer] spacefm-1.0.6/src/mime-type/mime-cache.c:394:17: style: Unused variable: n_nodes [unusedVariable] spacefm-1.0.6/src/mime-type/mime-type.c:195:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] spacefm-1.0.6/src/mime-type/mime-type.c:362:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] spacefm-1.0.6/src/mime-type/mime-type.c:636:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] spacefm-1.0.6/src/mime-type/mime-type.c:680:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_FILE_TEST_IS_EXECUTABLE [valueFlowBailoutIncompleteVar] spacefm-1.0.6/src/mime-type/mime-type.c:441:14: style: Condition 'acc!=-1' is always true [knownConditionTrueFalse] spacefm-1.0.6/src/mime-type/mime-type.c:439:11: note: Assignment 'acc=0', assigned value is 0 spacefm-1.0.6/src/mime-type/mime-type.c:441:14: note: Condition 'acc!=-1' is always true spacefm-1.0.6/src/mime-type/mime-type.c:461:18: style: Condition 'acc!=-1' is always true [knownConditionTrueFalse] spacefm-1.0.6/src/mime-type/mime-type.c:459:15: note: Assignment 'acc=0', assigned value is 0 spacefm-1.0.6/src/mime-type/mime-type.c:461:18: note: Condition 'acc!=-1' is always true spacefm-1.0.6/src/mime-type/mime-type.c:758:23: style: Local variable 'type' shadows outer argument [shadowArgument] spacefm-1.0.6/src/mime-type/mime-type.c:744:41: note: Shadowed declaration spacefm-1.0.6/src/mime-type/mime-type.c:758:23: note: Shadow variable spacefm-1.0.6/src/mime-type/mime-type.c:93:77: style: Parameter 'statbuf' can be declared as pointer to const [constParameterPointer] spacefm-1.0.6/src/mime-type/mime-type.c:388:15: style: Variable 'dot' can be declared as pointer to const [constVariablePointer] spacefm-1.0.6/src/mime-type/mime-type.c:259:12: error: Uninitialized variable: type [legacyUninitvar] spacefm-1.0.6/src/ptk/ptk-app-chooser.c:147:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XDG_MIME_TYPE_PLAIN_TEXT [valueFlowBailoutIncompleteVar] spacefm-1.0.6/src/ptk/ptk-app-chooser.c:196:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PACKAGE_UI_DIR [valueFlowBailoutIncompleteVar] spacefm-1.0.6/src/ptk/ptk-app-chooser.c:328:92: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_WATCH [valueFlowBailoutIncompleteVar] spacefm-1.0.6/src/ptk/ptk-app-chooser.c:408:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_FILE_CHOOSER_ACTION_OPEN [valueFlowBailoutIncompleteVar] spacefm-1.0.6/src/ptk/ptk-app-chooser.c:550:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_RESPONSE_OK [valueFlowBailoutIncompleteVar] spacefm-1.0.6/src/ptk/ptk-app-chooser.c:599:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_FILE_TEST_IS_DIR [valueFlowBailoutIncompleteVar] spacefm-1.0.6/src/ptk/ptk-app-chooser.c:652:12: style: Variable 'cancel' is assigned a value that is never used. [unreadVariable] spacefm-1.0.6/src/ptk/ptk-clipboard.c:45:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_ACTION_MOVE [valueFlowBailoutIncompleteVar] spacefm-1.0.6/src/ptk/ptk-clipboard.c:89:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_ACTION_DEFAULT [valueFlowBailoutIncompleteVar] spacefm-1.0.6/src/ptk/ptk-clipboard.c:95:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_SELECTION_CLIPBOARD [valueFlowBailoutIncompleteVar] spacefm-1.0.6/src/ptk/ptk-clipboard.c:125:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_SELECTION_CLIPBOARD [valueFlowBailoutIncompleteVar] spacefm-1.0.6/src/ptk/ptk-clipboard.c:156:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_SELECTION_CLIPBOARD [valueFlowBailoutIncompleteVar] spacefm-1.0.6/src/ptk/ptk-clipboard.c:166:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_SELECTION_CLIPBOARD [valueFlowBailoutIncompleteVar] spacefm-1.0.6/src/ptk/ptk-clipboard.c:219:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_SELECTION_CLIPBOARD [valueFlowBailoutIncompleteVar] spacefm-1.0.6/src/ptk/ptk-clipboard.c:273:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_SELECTION_CLIPBOARD [valueFlowBailoutIncompleteVar] spacefm-1.0.6/src/ptk/ptk-clipboard.c:371:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_SELECTION_CLIPBOARD [valueFlowBailoutIncompleteVar] spacefm-1.0.6/src/ptk/ptk-clipboard.c:451:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_SELECTION_CLIPBOARD [valueFlowBailoutIncompleteVar] spacefm-1.0.6/src/ptk/ptk-clipboard.c:561:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_SELECTION_CLIPBOARD [valueFlowBailoutIncompleteVar] spacefm-1.0.6/src/ptk/ptk-clipboard.c:33:12: style: Variable 'action' can be declared as pointer to const [constVariablePointer] spacefm-1.0.6/src/ptk/ptk-clipboard.c:163:46: style: Parameter 'files' can be declared as pointer to const [constParameterPointer] spacefm-1.0.6/src/ptk/ptk-clipboard.c:168:12: style: Unused variable: target [unusedVariable] spacefm-1.0.6/src/ptk/ptk-clipboard.c:221:12: style: Unused variable: target [unusedVariable] spacefm-1.0.6/src/ptk/ptk-clipboard.c:225:12: style: Unused variable: l [unusedVariable] spacefm-1.0.6/src/ptk/ptk-clipboard.c:226:18: style: Unused variable: file [unusedVariable] spacefm-1.0.6/src/ptk/ptk-console-output.c:58:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_IO_IN [valueFlowBailoutIncompleteVar] spacefm-1.0.6/src/ptk/ptk-console-output.c:160:63: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_RESPONSE_CANCEL [valueFlowBailoutIncompleteVar] spacefm-1.0.6/src/ptk/ptk-console-output.c:176:12: 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] spacefm-1.0.6/src/ptk/ptk-dir-tree-view.c:851:2: error: failed to evaluate #if condition, undefined function-like macro invocation: GTK_CHECK_VERSION( ... ) [syntaxError] spacefm-1.0.6/src/ptk/ptk-dir-tree.c:158:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_TYPE_OBJECT [valueFlowBailoutIncompleteVar] spacefm-1.0.6/src/ptk/ptk-dir-tree.c:212:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_TYPE_PIXBUF [valueFlowBailoutIncompleteVar] spacefm-1.0.6/src/ptk/ptk-dir-tree.c:248:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_TREE_MODEL_ITERS_PERSIST [valueFlowBailoutIncompleteVar] spacefm-1.0.6/src/ptk/ptk-dir-tree.c:259:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_TYPE_INVALID [valueFlowBailoutIncompleteVar] spacefm-1.0.6/src/ptk/ptk-dir-tree.c:387:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable small_icon_size [valueFlowBailoutIncompleteVar] spacefm-1.0.6/src/ptk/ptk-dir-tree.c:765:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_FILE_TEST_IS_DIR [valueFlowBailoutIncompleteVar] spacefm-1.0.6/src/ptk/ptk-dir-tree.c:861:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_FILE_TEST_IS_DIR [valueFlowBailoutIncompleteVar] spacefm-1.0.6/src/ptk/ptk-dir-tree.c:346:5: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] spacefm-1.0.6/src/ptk/ptk-dir-tree.c:741:45: style:inconclusive: Function 'ptk_dir_tree_expand_row' argument 3 names different: declaration 'path' definition 'tree_path'. [funcArgNamesDifferent] spacefm-1.0.6/src/ptk/ptk-dir-tree.h:67:45: note: Function 'ptk_dir_tree_expand_row' argument 3 names different: declaration 'path' definition 'tree_path'. spacefm-1.0.6/src/ptk/ptk-dir-tree.c:741:45: note: Function 'ptk_dir_tree_expand_row' argument 3 names different: declaration 'path' definition 'tree_path'. spacefm-1.0.6/src/ptk/ptk-dir-tree.c:217:62: style: Parameter 'iface' can be declared as pointer to const. However it seems that 'ptk_dir_tree_drag_source_init' is a callback function, if 'iface' is declared with const you might also need to cast function pointer(s). [constParameterCallback] spacefm-1.0.6/src/ptk/ptk-dir-tree.c:146:40: note: You might need to cast the function pointer here spacefm-1.0.6/src/ptk/ptk-dir-tree.c:217:62: note: Parameter 'iface' can be declared as pointer to const spacefm-1.0.6/src/ptk/ptk-dir-tree.c:222:58: style: Parameter 'iface' can be declared as pointer to const. However it seems that 'ptk_dir_tree_drag_dest_init' is a callback function, if 'iface' is declared with const you might also need to cast function pointer(s). [constParameterCallback] spacefm-1.0.6/src/ptk/ptk-dir-tree.c:153:40: note: You might need to cast the function pointer here spacefm-1.0.6/src/ptk/ptk-dir-tree.c:222:58: note: Parameter 'iface' can be declared as pointer to const spacefm-1.0.6/src/ptk/ptk-dir-tree.c:245:58: style: Parameter 'tree_model' can be declared as pointer to const. However it seems that 'ptk_dir_tree_get_flags' is a callback function, if 'tree_model' is declared with const you might also need to cast function pointer(s). [constParameterCallback] spacefm-1.0.6/src/ptk/ptk-dir-tree.c:199:24: note: You might need to cast the function pointer here spacefm-1.0.6/src/ptk/ptk-dir-tree.c:245:58: note: Parameter 'tree_model' can be declared as pointer to const spacefm-1.0.6/src/ptk/ptk-dir-tree.c:251:49: style: Parameter 'tree_model' can be declared as pointer to const. However it seems that 'ptk_dir_tree_get_n_columns' is a callback function, if 'tree_model' is declared with const you might also need to cast function pointer(s). [constParameterCallback] spacefm-1.0.6/src/ptk/ptk-dir-tree.c:200:28: note: You might need to cast the function pointer here spacefm-1.0.6/src/ptk/ptk-dir-tree.c:251:49: note: Parameter 'tree_model' can be declared as pointer to const spacefm-1.0.6/src/ptk/ptk-dir-tree.c:256:52: style: Parameter 'tree_model' can be declared as pointer to const. However it seems that 'ptk_dir_tree_get_column_type' is a callback function, if 'tree_model' is declared with const you might also need to cast function pointer(s). [constParameterCallback] spacefm-1.0.6/src/ptk/ptk-dir-tree.c:201:30: note: You might need to cast the function pointer here spacefm-1.0.6/src/ptk/ptk-dir-tree.c:256:52: note: Parameter 'tree_model' can be declared as pointer to const spacefm-1.0.6/src/ptk/ptk-dir-tree.c:284:11: style: Variable 'indices' can be declared as pointer to const [constVariablePointer] spacefm-1.0.6/src/ptk/ptk-dir-tree.c:313:68: style: Parameter 'child' can be declared as pointer to const [constParameterPointer] spacefm-1.0.6/src/ptk/ptk-dir-tree.c:315:21: style: Variable 'node' can be declared as pointer to const [constVariablePointer] spacefm-1.0.6/src/ptk/ptk-dir-tree.c:337:17: style: Variable 'tree' can be declared as pointer to const [constVariablePointer] spacefm-1.0.6/src/ptk/ptk-dir-tree.c:362:45: style: Parameter 'tree_model' can be declared as pointer to const. However it seems that 'ptk_dir_tree_get_value' is a callback function, if 'tree_model' is declared with const you might also need to cast function pointer(s). [constParameterCallback] spacefm-1.0.6/src/ptk/ptk-dir-tree.c:204:24: note: You might need to cast the function pointer here spacefm-1.0.6/src/ptk/ptk-dir-tree.c:362:45: note: Parameter 'tree_model' can be declared as pointer to const spacefm-1.0.6/src/ptk/ptk-dir-tree.c:418:21: style: Variable 'node' can be declared as pointer to const [constVariablePointer] spacefm-1.0.6/src/ptk/ptk-dir-tree.c:419:17: style: Variable 'tree' can be declared as pointer to const [constVariablePointer] spacefm-1.0.6/src/ptk/ptk-dir-tree.c:446:21: style: Variable 'parent_node' can be declared as pointer to const [constVariablePointer] spacefm-1.0.6/src/ptk/ptk-dir-tree.c:471:54: style: Parameter 'tree_model' can be declared as pointer to const. However it seems that 'ptk_dir_tree_iter_has_child' is a callback function, if 'tree_model' is declared with const you might also need to cast function pointer(s). [constParameterCallback] spacefm-1.0.6/src/ptk/ptk-dir-tree.c:207:29: note: You might need to cast the function pointer here spacefm-1.0.6/src/ptk/ptk-dir-tree.c:471:54: note: Parameter 'tree_model' can be declared as pointer to const spacefm-1.0.6/src/ptk/ptk-dir-tree.c:474:21: style: Variable 'node' can be declared as pointer to const [constVariablePointer] spacefm-1.0.6/src/ptk/ptk-dir-tree.c:483:21: style: Variable 'node' can be declared as pointer to const [constVariablePointer] spacefm-1.0.6/src/ptk/ptk-dir-tree.c:537:21: style: Variable 'node' can be declared as pointer to const [constVariablePointer] spacefm-1.0.6/src/ptk/ptk-dir-tree.c:538:17: style: Variable 'tree' can be declared as pointer to const [constVariablePointer] spacefm-1.0.6/src/ptk/ptk-dir-tree.c:604:51: style: Parameter 'tree' can be declared as pointer to const [constParameterPointer] spacefm-1.0.6/src/ptk/ptk-dir-tree.c:836:46: style: Parameter 'fm' can be declared as pointer to const. However it seems that 'on_file_monitor_event' is a callback function, if 'fm' is declared with const you might also need to cast function pointer(s). [constParameterCallback] spacefm-1.0.6/src/ptk/ptk-dir-tree.c:804:39: note: You might need to cast the function pointer here spacefm-1.0.6/src/ptk/ptk-dir-tree.c:836:46: note: Parameter 'fm' can be declared as pointer to const spacefm-1.0.6/src/ptk/ptk-dir-tree.c:843:17: style: Unused variable: it [unusedVariable] spacefm-1.0.6/src/ptk/ptk-dir-tree.c:844:18: style: Unused variable: tree_path [unusedVariable] spacefm-1.0.6/src/ptk/ptk-file-archiver.c:100:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XSET_B_TRUE [valueFlowBailoutIncompleteVar] spacefm-1.0.6/src/ptk/ptk-file-archiver.c:349:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_RESPONSE_NONE [valueFlowBailoutIncompleteVar] spacefm-1.0.6/src/ptk/ptk-file-archiver.c:1125:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_RESPONSE_NONE [valueFlowBailoutIncompleteVar] spacefm-1.0.6/src/ptk/ptk-file-archiver.c:384:27: 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] spacefm-1.0.6/src/ptk/ptk-file-archiver.c:559:30: 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] spacefm-1.0.6/src/ptk/ptk-file-archiver.c:565:23: 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] spacefm-1.0.6/src/ptk/ptk-file-archiver.c:1156:27: 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] spacefm-1.0.6/src/ptk/ptk-file-archiver.c:132:9: error: Memory leak: name [memleak] spacefm-1.0.6/src/ptk/ptk-file-archiver.c:1573:30: style: Variable 'task->task->exec_browser' is reassigned a value before the old one has been used. [redundantAssignment] spacefm-1.0.6/src/ptk/ptk-file-archiver.c:1567:34: note: task->task->exec_browser is assigned spacefm-1.0.6/src/ptk/ptk-file-archiver.c:1573:30: note: task->task->exec_browser is overwritten spacefm-1.0.6/src/ptk/ptk-file-archiver.c:653:25: style: Local variable 'iter' shadows outer variable [shadowVariable] spacefm-1.0.6/src/ptk/ptk-file-archiver.c:434:17: note: Shadowed declaration spacefm-1.0.6/src/ptk/ptk-file-archiver.c:653:25: note: Shadow variable spacefm-1.0.6/src/ptk/ptk-file-archiver.c:917:15: style: Local variable 'udest_quote' shadows outer variable [shadowVariable] spacefm-1.0.6/src/ptk/ptk-file-archiver.c:331:10: note: Shadowed declaration spacefm-1.0.6/src/ptk/ptk-file-archiver.c:917:15: note: Shadow variable spacefm-1.0.6/src/ptk/ptk-file-archiver.c:39:58: style: Parameter 'handler_xset' can be declared as pointer to const [constParameterPointer] spacefm-1.0.6/src/ptk/ptk-file-archiver.c:76:52: style: Parameter 'handler_xset' can be declared as pointer to const [constParameterPointer] spacefm-1.0.6/src/ptk/ptk-file-archiver.c:217:50: style: Parameter 'parent_quote' can be declared as pointer to const [constParameterPointer] spacefm-1.0.6/src/ptk/ptk-file-archiver.c:223:11: style: Variable 'error_pause' can be declared as pointer to const [constVariablePointer] spacefm-1.0.6/src/ptk/ptk-file-archiver.c:223:32: style: Variable 'finished_with_errors' can be declared as pointer to const [constVariablePointer] spacefm-1.0.6/src/ptk/ptk-file-archiver.c:257:11: style: Variable 'sub' can be declared as pointer to const [constVariablePointer] spacefm-1.0.6/src/ptk/ptk-file-archiver.c:985:41: warning: Uninitialized variable: run_in_terminal [uninitvar] spacefm-1.0.6/src/ptk/ptk-file-archiver.c:618:16: note: Assuming condition is false spacefm-1.0.6/src/ptk/ptk-file-archiver.c:985:41: note: Uninitialized variable: run_in_terminal spacefm-1.0.6/src/ptk/ptk-file-archiver.c:326:30: style: Unused variable: hbox [unusedVariable] spacefm-1.0.6/src/ptk/ptk-file-archiver.c:1056:15: style: Unused variable: j [unusedVariable] spacefm-1.0.6/src/ptk/ptk-file-browser.c:1348:2: error: failed to evaluate #if condition, undefined function-like macro invocation: GTK_CHECK_VERSION( ... ) [syntaxError] spacefm-1.0.6/src/ptk/ptk-file-icon-renderer.c:43:2: error: failed to evaluate #if condition, undefined function-like macro invocation: GTK_CHECK_VERSION( ... ) [syntaxError] spacefm-1.0.6/src/ptk/ptk-file-list.c:164:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_TYPE_OBJECT [valueFlowBailoutIncompleteVar] spacefm-1.0.6/src/ptk/ptk-file-list.c:209:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_TYPE_PIXBUF [valueFlowBailoutIncompleteVar] spacefm-1.0.6/src/ptk/ptk-file-list.c:363:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_TREE_MODEL_LIST_ONLY [valueFlowBailoutIncompleteVar] spacefm-1.0.6/src/ptk/ptk-file-list.c:374:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_TYPE_INVALID [valueFlowBailoutIncompleteVar] spacefm-1.0.6/src/ptk/ptk-file-list.c:461:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VFS_FILE_INFO_NONE [valueFlowBailoutIncompleteVar] spacefm-1.0.6/src/ptk/ptk-file-list.c:346:9: style: Condition 'dir' is always true [knownConditionTrueFalse] spacefm-1.0.6/src/ptk/ptk-file-list.c:231:63: style: Parameter 'iface' can be declared as pointer to const. However it seems that 'ptk_file_list_drag_source_init' is a callback function, if 'iface' is declared with const you might also need to cast function pointer(s). [constParameterCallback] spacefm-1.0.6/src/ptk/ptk-file-list.c:152:40: note: You might need to cast the function pointer here spacefm-1.0.6/src/ptk/ptk-file-list.c:231:63: note: Parameter 'iface' can be declared as pointer to const spacefm-1.0.6/src/ptk/ptk-file-list.c:236:59: style: Parameter 'iface' can be declared as pointer to const. However it seems that 'ptk_file_list_drag_dest_init' is a callback function, if 'iface' is declared with const you might also need to cast function pointer(s). [constParameterCallback] spacefm-1.0.6/src/ptk/ptk-file-list.c:159:40: note: You might need to cast the function pointer here spacefm-1.0.6/src/ptk/ptk-file-list.c:236:59: note: Parameter 'iface' can be declared as pointer to const spacefm-1.0.6/src/ptk/ptk-file-list.c:360:59: style: Parameter 'tree_model' can be declared as pointer to const. However it seems that 'ptk_file_list_get_flags' is a callback function, if 'tree_model' is declared with const you might also need to cast function pointer(s). [constParameterCallback] spacefm-1.0.6/src/ptk/ptk-file-list.c:196:24: note: You might need to cast the function pointer here spacefm-1.0.6/src/ptk/ptk-file-list.c:360:59: note: Parameter 'tree_model' can be declared as pointer to const spacefm-1.0.6/src/ptk/ptk-file-list.c:366:50: style: Parameter 'tree_model' can be declared as pointer to const. However it seems that 'ptk_file_list_get_n_columns' is a callback function, if 'tree_model' is declared with const you might also need to cast function pointer(s). [constParameterCallback] spacefm-1.0.6/src/ptk/ptk-file-list.c:197:28: note: You might need to cast the function pointer here spacefm-1.0.6/src/ptk/ptk-file-list.c:366:50: note: Parameter 'tree_model' can be declared as pointer to const spacefm-1.0.6/src/ptk/ptk-file-list.c:371:53: style: Parameter 'tree_model' can be declared as pointer to const. However it seems that 'ptk_file_list_get_column_type' is a callback function, if 'tree_model' is declared with const you might also need to cast function pointer(s). [constParameterCallback] spacefm-1.0.6/src/ptk/ptk-file-list.c:198:30: note: You might need to cast the function pointer here spacefm-1.0.6/src/ptk/ptk-file-list.c:371:53: note: Parameter 'tree_model' can be declared as pointer to const spacefm-1.0.6/src/ptk/ptk-file-list.c:384:11: style: Variable 'indices' can be declared as pointer to const [constVariablePointer] spacefm-1.0.6/src/ptk/ptk-file-list.c:440:12: style: Variable 'l' can be declared as pointer to const [constVariablePointer] spacefm-1.0.6/src/ptk/ptk-file-list.c:441:18: style: Variable 'list' can be declared as pointer to const [constVariablePointer] spacefm-1.0.6/src/ptk/ptk-file-list.c:527:18: style: Variable 'list' can be declared as pointer to const [constVariablePointer] spacefm-1.0.6/src/ptk/ptk-file-list.c:550:53: style: Parameter 'parent' can be declared as pointer to const. However it seems that 'ptk_file_list_iter_children' is a callback function, if 'parent' is declared with const you might also need to cast function pointer(s). [constParameterCallback] spacefm-1.0.6/src/ptk/ptk-file-list.c:203:28: note: You might need to cast the function pointer here spacefm-1.0.6/src/ptk/ptk-file-list.c:550:53: note: Parameter 'parent' can be declared as pointer to const spacefm-1.0.6/src/ptk/ptk-file-list.c:574:55: style: Parameter 'tree_model' can be declared as pointer to const. However it seems that 'ptk_file_list_iter_has_child' is a callback function, if 'tree_model' is declared with const you might also need to cast function pointer(s). [constParameterCallback] spacefm-1.0.6/src/ptk/ptk-file-list.c:204:29: note: You might need to cast the function pointer here spacefm-1.0.6/src/ptk/ptk-file-list.c:574:55: note: Parameter 'tree_model' can be declared as pointer to const spacefm-1.0.6/src/ptk/ptk-file-list.c:575:54: style: Parameter 'iter' can be declared as pointer to const. However it seems that 'ptk_file_list_iter_has_child' is a callback function, if 'iter' is declared with const you might also need to cast function pointer(s). [constParameterCallback] spacefm-1.0.6/src/ptk/ptk-file-list.c:204:29: note: You might need to cast the function pointer here spacefm-1.0.6/src/ptk/ptk-file-list.c:575:54: note: Parameter 'iter' can be declared as pointer to const spacefm-1.0.6/src/ptk/ptk-file-list.c:581:51: style: Parameter 'iter' can be declared as pointer to const. However it seems that 'ptk_file_list_iter_n_children' is a callback function, if 'iter' is declared with const you might also need to cast function pointer(s). [constParameterCallback] spacefm-1.0.6/src/ptk/ptk-file-list.c:205:30: note: You might need to cast the function pointer here spacefm-1.0.6/src/ptk/ptk-file-list.c:581:51: note: Parameter 'iter' can be declared as pointer to const spacefm-1.0.6/src/ptk/ptk-file-list.c:595:54: style: Parameter 'parent' can be declared as pointer to const. However it seems that 'ptk_file_list_iter_nth_child' is a callback function, if 'parent' is declared with const you might also need to cast function pointer(s). [constParameterCallback] spacefm-1.0.6/src/ptk/ptk-file-list.c:206:29: note: You might need to cast the function pointer here spacefm-1.0.6/src/ptk/ptk-file-list.c:595:54: note: Parameter 'parent' can be declared as pointer to const spacefm-1.0.6/src/ptk/ptk-file-list.c:622:52: style: Parameter 'tree_model' can be declared as pointer to const. However it seems that 'ptk_file_list_iter_parent' is a callback function, if 'tree_model' is declared with const you might also need to cast function pointer(s). [constParameterCallback] spacefm-1.0.6/src/ptk/ptk-file-list.c:207:26: note: You might need to cast the function pointer here spacefm-1.0.6/src/ptk/ptk-file-list.c:622:52: note: Parameter 'tree_model' can be declared as pointer to const spacefm-1.0.6/src/ptk/ptk-file-list.c:623:51: style: Parameter 'iter' can be declared as pointer to const. However it seems that 'ptk_file_list_iter_parent' is a callback function, if 'iter' is declared with const you might also need to cast function pointer(s). [constParameterCallback] spacefm-1.0.6/src/ptk/ptk-file-list.c:207:26: note: You might need to cast the function pointer here spacefm-1.0.6/src/ptk/ptk-file-list.c:623:51: note: Parameter 'iter' can be declared as pointer to const spacefm-1.0.6/src/ptk/ptk-file-list.c:624:51: style: Parameter 'child' can be declared as pointer to const. However it seems that 'ptk_file_list_iter_parent' is a callback function, if 'child' is declared with const you might also need to cast function pointer(s). [constParameterCallback] spacefm-1.0.6/src/ptk/ptk-file-list.c:207:26: note: You might need to cast the function pointer here spacefm-1.0.6/src/ptk/ptk-file-list.c:624:51: note: Parameter 'child' can be declared as pointer to const spacefm-1.0.6/src/ptk/ptk-file-list.c:633:18: style: Variable 'list' can be declared as pointer to const [constVariablePointer] spacefm-1.0.6/src/ptk/ptk-file-list.c:654:52: style: Parameter 'sortable' can be declared as pointer to const. However it seems that 'ptk_file_list_set_sort_func' is a callback function, if 'sortable' is declared with const you might also need to cast function pointer(s). [constParameterCallback] spacefm-1.0.6/src/ptk/ptk-file-list.c:226:28: note: You might need to cast the function pointer here spacefm-1.0.6/src/ptk/ptk-file-list.c:654:52: note: Parameter 'sortable' can be declared as pointer to const spacefm-1.0.6/src/ptk/ptk-file-list.c:657:44: style: Parameter 'user_data' can be declared as pointer to const. However it seems that 'ptk_file_list_set_sort_func' is a callback function, if 'user_data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] spacefm-1.0.6/src/ptk/ptk-file-list.c:226:28: note: You might need to cast the function pointer here spacefm-1.0.6/src/ptk/ptk-file-list.c:657:44: note: Parameter 'user_data' can be declared as pointer to const spacefm-1.0.6/src/ptk/ptk-file-list.c:663:60: style: Parameter 'sortable' can be declared as pointer to const. However it seems that 'ptk_file_list_set_default_sort_func' is a callback function, if 'sortable' is declared with const you might also need to cast function pointer(s). [constParameterCallback] spacefm-1.0.6/src/ptk/ptk-file-list.c:227:36: note: You might need to cast the function pointer here spacefm-1.0.6/src/ptk/ptk-file-list.c:663:60: note: Parameter 'sortable' can be declared as pointer to const spacefm-1.0.6/src/ptk/ptk-file-list.c:665:52: style: Parameter 'user_data' can be declared as pointer to const. However it seems that 'ptk_file_list_set_default_sort_func' is a callback function, if 'user_data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] spacefm-1.0.6/src/ptk/ptk-file-list.c:227:36: note: You might need to cast the function pointer here spacefm-1.0.6/src/ptk/ptk-file-list.c:665:52: note: Parameter 'user_data' can be declared as pointer to const spacefm-1.0.6/src/ptk/ptk-file-menu.c:347:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable b [valueFlowBailoutIncompleteVar] spacefm-1.0.6/src/ptk/ptk-file-menu.c:369:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable b [valueFlowBailoutIncompleteVar] spacefm-1.0.6/src/ptk/ptk-file-menu.c:395:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XSET_B_TRUE [valueFlowBailoutIncompleteVar] spacefm-1.0.6/src/ptk/ptk-file-menu.c:461:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PREF_DESKTOP [valueFlowBailoutIncompleteVar] spacefm-1.0.6/src/ptk/ptk-file-menu.c:522:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XSET_B_TRUE [valueFlowBailoutIncompleteVar] spacefm-1.0.6/src/ptk/ptk-file-menu.c:779:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_SELECTION_CLIPBOARD [valueFlowBailoutIncompleteVar] spacefm-1.0.6/src/ptk/ptk-file-menu.c:1713:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XDG_MIME_TYPE_UNKNOWN [valueFlowBailoutIncompleteVar] spacefm-1.0.6/src/ptk/ptk-file-menu.c:1852:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XDG_MIME_TYPE_UNKNOWN [valueFlowBailoutIncompleteVar] spacefm-1.0.6/src/ptk/ptk-file-menu.c:2127:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_SHIFT_MASK [valueFlowBailoutIncompleteVar] spacefm-1.0.6/src/ptk/ptk-file-menu.c:2225:61: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_ICON_SIZE_MENU [valueFlowBailoutIncompleteVar] spacefm-1.0.6/src/ptk/ptk-file-menu.c:2305:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_FILE_TEST_EXISTS [valueFlowBailoutIncompleteVar] spacefm-1.0.6/src/ptk/ptk-file-menu.c:2468:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_SHIFT_MASK [valueFlowBailoutIncompleteVar] spacefm-1.0.6/src/ptk/ptk-file-menu.c:2598:59: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_FILE_TEST_IS_DIR [valueFlowBailoutIncompleteVar] spacefm-1.0.6/src/ptk/ptk-file-menu.c:2614:64: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_FILE_TEST_IS_DIR [valueFlowBailoutIncompleteVar] spacefm-1.0.6/src/ptk/ptk-file-menu.c:2848:59: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_FILE_TEST_EXISTS [valueFlowBailoutIncompleteVar] spacefm-1.0.6/src/ptk/ptk-file-menu.c:3060:19: style: Expression is always false because 'else if' condition matches previous condition at line 3056. [multiCondition] spacefm-1.0.6/src/ptk/ptk-file-menu.c:2346:9: error: Memory leak: str [memleak] spacefm-1.0.6/src/ptk/ptk-file-menu.c:2355:9: error: Memory leak: str [memleak] spacefm-1.0.6/src/ptk/ptk-file-menu.c:1162:21: style: Variable 'set' is reassigned a value before the old one has been used. [redundantAssignment] spacefm-1.0.6/src/ptk/ptk-file-menu.c:1151:21: note: set is assigned spacefm-1.0.6/src/ptk/ptk-file-menu.c:1162:21: note: set is overwritten spacefm-1.0.6/src/ptk/ptk-file-menu.c:1273:13: style: Variable 'set' is reassigned a value before the old one has been used. [redundantAssignment] spacefm-1.0.6/src/ptk/ptk-file-menu.c:1271:13: note: set is assigned spacefm-1.0.6/src/ptk/ptk-file-menu.c:1273:13: note: set is overwritten spacefm-1.0.6/src/ptk/ptk-file-menu.c:1275:13: style: Variable 'set' is reassigned a value before the old one has been used. [redundantAssignment] spacefm-1.0.6/src/ptk/ptk-file-menu.c:1273:13: note: set is assigned spacefm-1.0.6/src/ptk/ptk-file-menu.c:1275:13: note: set is overwritten spacefm-1.0.6/src/ptk/ptk-file-menu.c:1276:13: style: Variable 'set' is reassigned a value before the old one has been used. [redundantAssignment] spacefm-1.0.6/src/ptk/ptk-file-menu.c:1275:13: note: set is assigned spacefm-1.0.6/src/ptk/ptk-file-menu.c:1276:13: note: set is overwritten spacefm-1.0.6/src/ptk/ptk-file-menu.c:1407:17: style: Variable 'set' is reassigned a value before the old one has been used. [redundantAssignment] spacefm-1.0.6/src/ptk/ptk-file-menu.c:1402:13: note: set is assigned spacefm-1.0.6/src/ptk/ptk-file-menu.c:1407:17: note: set is overwritten spacefm-1.0.6/src/ptk/ptk-file-menu.c:1506:13: style: Variable 'set' is reassigned a value before the old one has been used. [redundantAssignment] spacefm-1.0.6/src/ptk/ptk-file-menu.c:1505:13: note: set is assigned spacefm-1.0.6/src/ptk/ptk-file-menu.c:1506:13: note: set is overwritten spacefm-1.0.6/src/ptk/ptk-file-menu.c:1580:13: style: Variable 'set' is reassigned a value before the old one has been used. [redundantAssignment] spacefm-1.0.6/src/ptk/ptk-file-menu.c:1506:13: note: set is assigned spacefm-1.0.6/src/ptk/ptk-file-menu.c:1580:13: note: set is overwritten spacefm-1.0.6/src/ptk/ptk-file-menu.c:2290:13: style: Variable 'newitem' is reassigned a value before the old one has been used. [redundantAssignment] spacefm-1.0.6/src/ptk/ptk-file-menu.c:2284:13: note: newitem is assigned spacefm-1.0.6/src/ptk/ptk-file-menu.c:2290:13: note: newitem is overwritten spacefm-1.0.6/src/ptk/ptk-file-menu.c:2294:13: style: Variable 'newitem' is reassigned a value before the old one has been used. [redundantAssignment] spacefm-1.0.6/src/ptk/ptk-file-menu.c:2290:13: note: newitem is assigned spacefm-1.0.6/src/ptk/ptk-file-menu.c:2294:13: note: newitem is overwritten spacefm-1.0.6/src/ptk/ptk-file-menu.c:2326:13: style: Variable 'newitem' is reassigned a value before the old one has been used. [redundantAssignment] spacefm-1.0.6/src/ptk/ptk-file-menu.c:2294:13: note: newitem is assigned spacefm-1.0.6/src/ptk/ptk-file-menu.c:2326:13: note: newitem is overwritten spacefm-1.0.6/src/ptk/ptk-file-menu.c:2326:13: style: Variable 'newitem' is reassigned a value before the old one has been used. [redundantAssignment] spacefm-1.0.6/src/ptk/ptk-file-menu.c:2319:17: note: newitem is assigned spacefm-1.0.6/src/ptk/ptk-file-menu.c:2326:13: note: newitem is overwritten spacefm-1.0.6/src/ptk/ptk-file-menu.c:2330:13: style: Variable 'newitem' is reassigned a value before the old one has been used. [redundantAssignment] spacefm-1.0.6/src/ptk/ptk-file-menu.c:2326:13: note: newitem is assigned spacefm-1.0.6/src/ptk/ptk-file-menu.c:2330:13: note: newitem is overwritten spacefm-1.0.6/src/ptk/ptk-file-menu.c:2365:13: style: Variable 'newitem' is reassigned a value before the old one has been used. [redundantAssignment] spacefm-1.0.6/src/ptk/ptk-file-menu.c:2361:13: note: newitem is assigned spacefm-1.0.6/src/ptk/ptk-file-menu.c:2365:13: note: newitem is overwritten spacefm-1.0.6/src/ptk/ptk-file-menu.c:2104:40: style:inconclusive: Function 'app_menu_keypress' argument 1 names different: declaration 'widget' definition 'menu'. [funcArgNamesDifferent] spacefm-1.0.6/src/ptk/ptk-file-menu.c:50:40: note: Function 'app_menu_keypress' argument 1 names different: declaration 'widget' definition 'menu'. spacefm-1.0.6/src/ptk/ptk-file-menu.c:2104:40: note: Function 'app_menu_keypress' argument 1 names different: declaration 'widget' definition 'menu'. spacefm-1.0.6/src/ptk/ptk-file-menu.c:297:11: style: Variable 'set' can be declared as pointer to const [constVariablePointer] spacefm-1.0.6/src/ptk/ptk-file-menu.c:421:60: style: Parameter 'desktop' can be declared as pointer to const. However it seems that 'on_popup_desktop_sort_activate' is a callback function, if 'desktop' is declared with const you might also need to cast function pointer(s). [constParameterCallback] spacefm-1.0.6/src/ptk/ptk-file-menu.c:1656:49: note: You might need to cast the function pointer here spacefm-1.0.6/src/ptk/ptk-file-menu.c:421:60: note: Parameter 'desktop' can be declared as pointer to const spacefm-1.0.6/src/ptk/ptk-file-menu.c:423:11: style: Variable 'set' can be declared as pointer to const [constVariablePointer] spacefm-1.0.6/src/ptk/ptk-file-menu.c:464:54: style: Parameter 'menuitem' can be declared as pointer to const. However it seems that 'on_popup_desktop_new_app_activate' is a callback function, if 'menuitem' is declared with const you might also need to cast function pointer(s). [constParameterCallback] spacefm-1.0.6/src/ptk/ptk-file-menu.c:1282:37: note: You might need to cast the function pointer here spacefm-1.0.6/src/ptk/ptk-file-menu.c:464:54: note: Parameter 'menuitem' can be declared as pointer to const spacefm-1.0.6/src/ptk/ptk-file-menu.c:464:79: style: Parameter 'desktop' can be declared as pointer to const. However it seems that 'on_popup_desktop_new_app_activate' is a callback function, if 'desktop' is declared with const you might also need to cast function pointer(s). [constParameterCallback] spacefm-1.0.6/src/ptk/ptk-file-menu.c:1282:37: note: You might need to cast the function pointer here spacefm-1.0.6/src/ptk/ptk-file-menu.c:464:79: note: Parameter 'desktop' can be declared as pointer to const spacefm-1.0.6/src/ptk/ptk-file-menu.c:473:60: style: Parameter 'desktop' can be declared as pointer to const. However it seems that 'on_popup_desktop_select' is a callback function, if 'desktop' is declared with const you might also need to cast function pointer(s). [constParameterCallback] spacefm-1.0.6/src/ptk/ptk-file-menu.c:1349:41: note: You might need to cast the function pointer here spacefm-1.0.6/src/ptk/ptk-file-menu.c:473:60: note: Parameter 'desktop' can be declared as pointer to const spacefm-1.0.6/src/ptk/ptk-file-menu.c:475:11: style: Variable 'set' can be declared as pointer to const [constVariablePointer] spacefm-1.0.6/src/ptk/ptk-file-menu.c:1615:22: style: Variable 'book_item' can be declared as pointer to const [constVariablePointer] spacefm-1.0.6/src/ptk/ptk-file-menu.c:1774:11: style: Variable 'handler_set' can be declared as pointer to const [constVariablePointer] spacefm-1.0.6/src/ptk/ptk-file-menu.c:2009:23: style: Variable 'start' can be declared as pointer to const [constVariablePointer] spacefm-1.0.6/src/ptk/ptk-file-menu.c:2281:20: style: Variable 'accel_group' can be declared as pointer to const [constVariablePointer] spacefm-1.0.6/src/ptk/ptk-file-menu.c:2462:64: style: Parameter 'event' can be declared as pointer to const. However it seems that 'on_app_button_press' is a callback function, if 'event' is declared with const you might also need to cast function pointer(s). [constParameterCallback] spacefm-1.0.6/src/ptk/ptk-file-menu.c:1049:17: note: You might need to cast the function pointer here spacefm-1.0.6/src/ptk/ptk-file-menu.c:2462:64: note: Parameter 'event' can be declared as pointer to const spacefm-1.0.6/src/ptk/ptk-file-menu.c:2743:46: style: Parameter 'menuitem' can be declared as pointer to const. However it seems that 'on_popup_copy_parent_activate' is a callback function, if 'menuitem' is declared with const you might also need to cast function pointer(s). [constParameterCallback] spacefm-1.0.6/src/ptk/ptk-file-menu.c:1312:43: note: You might need to cast the function pointer here spacefm-1.0.6/src/ptk/ptk-file-menu.c:2743:46: note: Parameter 'menuitem' can be declared as pointer to const spacefm-1.0.6/src/ptk/ptk-file-menu.c:2744:40: style: Parameter 'data' can be declared as pointer to const. However it seems that 'on_popup_copy_parent_activate' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] spacefm-1.0.6/src/ptk/ptk-file-menu.c:1312:43: note: You might need to cast the function pointer here spacefm-1.0.6/src/ptk/ptk-file-menu.c:2744:40: note: Parameter 'data' can be declared as pointer to const spacefm-1.0.6/src/ptk/ptk-file-menu.c:2811:50: style: Parameter 'menuitem' can be declared as pointer to const. However it seems that 'on_popup_extract_to_activate' is a callback function, if 'menuitem' is declared with const you might also need to cast function pointer(s). [constParameterCallback] spacefm-1.0.6/src/ptk/ptk-file-menu.c:887:41: note: You might need to cast the function pointer here spacefm-1.0.6/src/ptk/ptk-file-menu.c:2811:50: note: Parameter 'menuitem' can be declared as pointer to const spacefm-1.0.6/src/ptk/ptk-file-menu.c:2821:52: style: Parameter 'menuitem' can be declared as pointer to const. However it seems that 'on_popup_extract_here_activate' is a callback function, if 'menuitem' is declared with const you might also need to cast function pointer(s). [constParameterCallback] spacefm-1.0.6/src/ptk/ptk-file-menu.c:882:41: note: You might need to cast the function pointer here spacefm-1.0.6/src/ptk/ptk-file-menu.c:2821:52: note: Parameter 'menuitem' can be declared as pointer to const spacefm-1.0.6/src/ptk/ptk-file-menu.c:2831:52: style: Parameter 'menuitem' can be declared as pointer to const. However it seems that 'on_popup_extract_list_activate' is a callback function, if 'menuitem' is declared with const you might also need to cast function pointer(s). [constParameterCallback] spacefm-1.0.6/src/ptk/ptk-file-menu.c:891:41: note: You might need to cast the function pointer here spacefm-1.0.6/src/ptk/ptk-file-menu.c:2831:52: note: Parameter 'menuitem' can be declared as pointer to const spacefm-1.0.6/src/ptk/ptk-file-menu.c:2996:11: style: Variable 'xname' can be declared as pointer to const [constVariablePointer] spacefm-1.0.6/src/ptk/ptk-file-menu.c:1615:32: style: Variable 'book_item' is assigned a value that is never used. [unreadVariable] spacefm-1.0.6/src/ptk/ptk-file-menu.c:1664:14: style: Variable 'item' is assigned a value that is never used. [unreadVariable] spacefm-1.0.6/src/ptk/ptk-file-menu.c:735:30: style: Variable 'no_read_access' is assigned a value that is never used. [unreadVariable] spacefm-1.0.6/src/ptk/ptk-file-menu.c:1615:22: style: Variable 'book_item' is assigned a value that is never used. [unreadVariable] spacefm-1.0.6/src/ptk/ptk-file-menu.c:2108:11: style: Unused variable: set [unusedVariable] spacefm-1.0.6/src/ptk/ptk-file-menu.c:2281:32: style: Variable 'accel_group' is assigned a value that is never used. [unreadVariable] spacefm-1.0.6/src/ptk/ptk-file-menu.c:2281:20: style: Variable 'accel_group' is assigned a value that is never used. [unreadVariable] spacefm-1.0.6/src/ptk/ptk-file-menu.c:2465:13: style: Variable 'job' is assigned a value that is never used. [unreadVariable] spacefm-1.0.6/src/ptk/ptk-file-menu.c:2465:9: style: Variable 'job' is assigned a value that is never used. [unreadVariable] spacefm-1.0.6/src/ptk/ptk-file-menu.c:2895:11: style: Unused variable: cwd [unusedVariable] spacefm-1.0.6/src/ptk/ptk-file-misc.c:1851:2: error: failed to evaluate #if condition, undefined function-like macro invocation: GLIB_CHECK_VERSION( ... ) [syntaxError] spacefm-1.0.6/src/ptk/ptk-file-properties.c:210:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_SIGNAL_MATCH_FUNC [valueFlowBailoutIncompleteVar] spacefm-1.0.6/src/ptk/ptk-file-properties.c:329:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PACKAGE_UI_DIR [valueFlowBailoutIncompleteVar] spacefm-1.0.6/src/ptk/ptk-file-properties.c:805:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_RESPONSE_OK [valueFlowBailoutIncompleteVar] spacefm-1.0.6/src/ptk/ptk-file-properties.c:606:32: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] spacefm-1.0.6/src/ptk/ptk-file-properties.c:611:32: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] spacefm-1.0.6/src/ptk/ptk-file-properties.c:702:10: portability: Non reentrant function 'getpwnam' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwnam_r'. [prohibitedgetpwnamCalled] spacefm-1.0.6/src/ptk/ptk-file-properties.c:734:11: portability: Non reentrant function 'getgrnam' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getgrnam_r'. [prohibitedgetgrnamCalled] spacefm-1.0.6/src/ptk/ptk-file-properties.c:443:29: warning: Either the condition 'sel_files' is redundant or there is possible null pointer dereference: sel_files. [nullPointerRedundantCheck] spacefm-1.0.6/src/ptk/ptk-file-properties.c:544:10: note: Assuming that condition 'sel_files' is not redundant spacefm-1.0.6/src/ptk/ptk-file-properties.c:443:29: note: Null pointer dereference spacefm-1.0.6/src/ptk/ptk-file-properties.c:255:19: style: Local variable 'action' shadows outer variable [shadowVariable] spacefm-1.0.6/src/ptk/ptk-file-properties.c:250:21: note: Shadowed declaration spacefm-1.0.6/src/ptk/ptk-file-properties.c:255:19: note: Shadow variable spacefm-1.0.6/src/ptk/ptk-file-properties.c:698:21: style: Variable 'pw' can be declared as pointer to const [constVariablePointer] spacefm-1.0.6/src/ptk/ptk-file-properties.c:730:20: style: Variable 'grp' can be declared as pointer to const [constVariablePointer] spacefm-1.0.6/src/ptk/ptk-file-properties.c:338:25: style: Unused variable: file2 [unusedVariable] spacefm-1.0.6/src/ptk/ptk-file-properties.c:776:16: style: Unused variable: ask_recursive [unusedVariable] spacefm-1.0.6/src/ptk/ptk-file-task.c:1001:2: error: failed to evaluate #if condition, undefined function-like macro invocation: GTK_CHECK_VERSION( ... ) [syntaxError] spacefm-1.0.6/src/ptk/ptk-handler.c:3211:2: error: failed to evaluate #if condition, undefined function-like macro invocation: GTK_CHECK_VERSION( ... ) [syntaxError] spacefm-1.0.6/src/ptk/ptk-input-dialog.c:34:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_RESPONSE_CANCEL [valueFlowBailoutIncompleteVar] spacefm-1.0.6/src/ptk/ptk-location-view.c:774:2: error: failed to evaluate #if condition, undefined function-like macro invocation: GLIB_CHECK_VERSION( ... ) [syntaxError] spacefm-1.0.6/src/ptk/ptk-path-entry.c:89:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_FILE_TEST_IS_DIR [valueFlowBailoutIncompleteVar] spacefm-1.0.6/src/ptk/ptk-path-entry.c:235:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable xset_cmd_history [valueFlowBailoutIncompleteVar] spacefm-1.0.6/src/ptk/ptk-path-entry.c:325:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_FILE_TEST_IS_DIR [valueFlowBailoutIncompleteVar] spacefm-1.0.6/src/ptk/ptk-path-entry.c:426:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_SHIFT_MASK [valueFlowBailoutIncompleteVar] spacefm-1.0.6/src/ptk/ptk-path-entry.c:487:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_SIGNAL_MATCH_FUNC [valueFlowBailoutIncompleteVar] spacefm-1.0.6/src/ptk/ptk-path-entry.c:629:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_DIALOG_MODAL [valueFlowBailoutIncompleteVar] spacefm-1.0.6/src/ptk/ptk-path-entry.c:641:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable s [valueFlowBailoutIncompleteVar] spacefm-1.0.6/src/ptk/ptk-path-entry.c:652:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_BUTTON_RELEASE [valueFlowBailoutIncompleteVar] spacefm-1.0.6/src/ptk/ptk-path-entry.c:725:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_FILE_TEST_EXISTS [valueFlowBailoutIncompleteVar] spacefm-1.0.6/src/ptk/ptk-path-entry.c:250:24: warning: Either the condition 'text' is redundant or there is possible null pointer dereference: text. [nullPointerRedundantCheck] spacefm-1.0.6/src/ptk/ptk-path-entry.c:226:10: note: Assuming that condition 'text' is not redundant spacefm-1.0.6/src/ptk/ptk-path-entry.c:250:24: note: Null pointer dereference spacefm-1.0.6/src/ptk/ptk-path-entry.c:665:17: warning: Either the condition 'text' is redundant or there is possible null pointer dereference: text. [nullPointerRedundantCheck] spacefm-1.0.6/src/ptk/ptk-path-entry.c:669:17: note: Assuming that condition 'text' is not redundant spacefm-1.0.6/src/ptk/ptk-path-entry.c:665:17: note: Null pointer dereference spacefm-1.0.6/src/ptk/ptk-path-entry.c:424:46: style: Parameter 'evt' can be declared as pointer to const. However it seems that 'on_key_press' is a callback function, if 'evt' is declared with const you might also need to cast function pointer(s). [constParameterCallback] spacefm-1.0.6/src/ptk/ptk-path-entry.c:807:5: note: You might need to cast the function pointer here spacefm-1.0.6/src/ptk/ptk-path-entry.c:424:46: note: Parameter 'evt' can be declared as pointer to const spacefm-1.0.6/src/ptk/ptk-path-entry.c:469:48: style: Parameter 'completion' can be declared as pointer to const. However it seems that 'on_insert_prefix' is a callback function, if 'completion' is declared with const you might also need to cast function pointer(s). [constParameterCallback] spacefm-1.0.6/src/ptk/ptk-path-entry.c:558:5: note: You might need to cast the function pointer here spacefm-1.0.6/src/ptk/ptk-path-entry.c:469:48: note: Parameter 'completion' can be declared as pointer to const spacefm-1.0.6/src/ptk/ptk-path-entry.c:470:48: style: Parameter 'prefix' can be declared as pointer to const. However it seems that 'on_insert_prefix' is a callback function, if 'prefix' is declared with const you might also need to cast function pointer(s). [constParameterCallback] spacefm-1.0.6/src/ptk/ptk-path-entry.c:558:5: note: You might need to cast the function pointer here spacefm-1.0.6/src/ptk/ptk-path-entry.c:470:48: note: Parameter 'prefix' can be declared as pointer to const spacefm-1.0.6/src/ptk/ptk-path-entry.c:471:48: style: Parameter 'entry' can be declared as pointer to const. However it seems that 'on_insert_prefix' is a callback function, if 'entry' is declared with const you might also need to cast function pointer(s). [constParameterCallback] spacefm-1.0.6/src/ptk/ptk-path-entry.c:558:5: note: You might need to cast the function pointer here spacefm-1.0.6/src/ptk/ptk-path-entry.c:471:48: note: Parameter 'entry' can be declared as pointer to const spacefm-1.0.6/src/ptk/ptk-path-entry.c:649:52: style: Parameter 'evt' can be declared as pointer to const. However it seems that 'on_button_release' is a callback function, if 'evt' is declared with const you might also need to cast function pointer(s). [constParameterCallback] spacefm-1.0.6/src/ptk/ptk-path-entry.c:814:5: note: You might need to cast the function pointer here spacefm-1.0.6/src/ptk/ptk-path-entry.c:649:52: note: Parameter 'evt' can be declared as pointer to const spacefm-1.0.6/src/ptk/ptk-path-entry.c:77:11: style: Unused variable: str [unusedVariable] spacefm-1.0.6/src/ptk/ptk-path-entry.c:341:18: style: Variable 'long_len' is assigned a value that is never used. [unreadVariable] spacefm-1.0.6/src/ptk/ptk-path-entry.c:340:9: style: Unused variable: len [unusedVariable] spacefm-1.0.6/src/ptk/ptk-path-entry.c:341:9: style: Variable 'long_len' is assigned a value that is never used. [unreadVariable] spacefm-1.0.6/src/ptk/ptk-path-entry.c:347:11: style: Unused variable: str [unusedVariable] spacefm-1.0.6/src/ptk/ptk-text-renderer.c:46:2: error: failed to evaluate #if condition, undefined function-like macro invocation: GTK_CHECK_VERSION( ... ) [syntaxError] spacefm-1.0.6/src/ptk/ptk-utils.c:409:2: error: failed to evaluate #if condition, undefined function-like macro invocation: GTK_CHECK_VERSION( ... ) [syntaxError] spacefm-1.0.6/src/vfs/vfs-app-desktop.c:134:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_KEY_FILE_KEEP_COMMENTS [valueFlowBailoutIncompleteVar] spacefm-1.0.6/src/vfs/vfs-app-desktop.c:547:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_SPAWN_SEARCH_PATH [valueFlowBailoutIncompleteVar] spacefm-1.0.6/src/vfs/vfs-app-desktop.c:113:42: style: Parameter 'app' can be declared as pointer to const [constParameterPointer] spacefm-1.0.6/src/vfs/vfs-app-desktop.c:144:11: style: Variable 'dot' can be declared as pointer to const [constVariablePointer] spacefm-1.0.6/src/vfs/vfs-app-desktop.c:189:54: style: Parameter 'app' can be declared as pointer to const [constParameterPointer] spacefm-1.0.6/src/vfs/vfs-app-desktop.c:201:54: style: Parameter 'app' can be declared as pointer to const [constParameterPointer] spacefm-1.0.6/src/vfs/vfs-app-desktop.c:206:59: style: Parameter 'app' can be declared as pointer to const [constParameterPointer] spacefm-1.0.6/src/vfs/vfs-app-desktop.c:231:30: style: Variable 'suffix' can be declared as pointer to const [constVariablePointer] spacefm-1.0.6/src/vfs/vfs-app-desktop.c:315:59: style: Parameter 'app' can be declared as pointer to const [constParameterPointer] spacefm-1.0.6/src/vfs/vfs-app-desktop.c:320:52: style: Parameter 'app' can be declared as pointer to const [constParameterPointer] spacefm-1.0.6/src/vfs/vfs-app-desktop.c:325:62: style: Parameter 'app' can be declared as pointer to const [constParameterPointer] spacefm-1.0.6/src/vfs/vfs-app-desktop.c:284:11: style: Unused variable: p [unusedVariable] spacefm-1.0.6/src/vfs/vfs-async-task.c:63:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_TYPE_OBJECT [valueFlowBailoutIncompleteVar] spacefm-1.0.6/src/vfs/vfs-async-task.c:73:53: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_TYPE_OBJECT [valueFlowBailoutIncompleteVar] spacefm-1.0.6/src/vfs/vfs-async-task.c:130:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable finalize [valueFlowBailoutIncompleteVar] spacefm-1.0.6/src/vfs/vfs-async-task.c:101:49: style: Parameter 'task' can be declared as pointer to const [constParameterPointer] spacefm-1.0.6/src/vfs/vfs-async-task.c:111:57: style: Parameter 'task' can be declared as pointer to const [constParameterPointer] spacefm-1.0.6/src/vfs/vfs-async-task.c:229:43: style: Parameter 'task' can be declared as pointer to const. However it seems that 'vfs_async_task_finish' is a callback function, if 'task' is declared with const you might also need to cast function pointer(s). [constParameterCallback] spacefm-1.0.6/src/vfs/vfs-async-task.c:75:21: note: You might need to cast the function pointer here spacefm-1.0.6/src/vfs/vfs-async-task.c:229:43: note: Parameter 'task' can be declared as pointer to const spacefm-1.0.6/src/vfs/vfs-async-task.c:234:52: style: Parameter 'task' can be declared as pointer to const [constParameterPointer] spacefm-1.0.6/src/vfs/vfs-async-task.c:239:53: style: Parameter 'task' can be declared as pointer to const [constParameterPointer] spacefm-1.0.6/src/vfs/vfs-dir.c:1074:2: error: failed to evaluate #if condition, undefined function-like macro invocation: GLIB_CHECK_VERSION( ... ) [syntaxError] spacefm-1.0.6/src/vfs/vfs-execute.c:130:13: style: Redundant initialization for 'new_env'. The initialized value is overwritten before it is read. [redundantInitialization] spacefm-1.0.6/src/vfs/vfs-execute.c:120:20: note: new_env is initialized spacefm-1.0.6/src/vfs/vfs-execute.c:130:13: note: new_env is overwritten spacefm-1.0.6/src/vfs/vfs-execute.c:118:37: style: Variable 'setup_func' is assigned a value that is never used. [unreadVariable] spacefm-1.0.6/src/vfs/vfs-execute.c:123:46: style: Variable 'startup_id_index' is assigned a value that is never used. [unreadVariable] spacefm-1.0.6/src/vfs/vfs-execute.c:139:34: style: Variable 'startup_id_index' is assigned a value that is never used. [unreadVariable] spacefm-1.0.6/src/vfs/vfs-execute.c:118:26: style: Variable 'setup_func' is assigned a value that is never used. [unreadVariable] spacefm-1.0.6/src/vfs/vfs-file-info.c:160:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XDG_MIME_TYPE_UNKNOWN [valueFlowBailoutIncompleteVar] spacefm-1.0.6/src/vfs/vfs-file-info.c:400:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_IRUSR [valueFlowBailoutIncompleteVar] spacefm-1.0.6/src/vfs/vfs-file-info.c:462:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable use_si_prefix [valueFlowBailoutIncompleteVar] spacefm-1.0.6/src/vfs/vfs-file-info.c:561:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable use_si_prefix [valueFlowBailoutIncompleteVar] spacefm-1.0.6/src/vfs/vfs-file-info.c:643:67: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XDG_MIME_TYPE_DIRECTORY [valueFlowBailoutIncompleteVar] spacefm-1.0.6/src/vfs/vfs-file-info.c:716:19: portability: Assigning an integer to a pointer is not portable. [AssignmentIntegerToAddress] spacefm-1.0.6/src/vfs/vfs-file-info.c:337:17: portability: Non reentrant function 'getpwuid' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwuid_r'. [prohibitedgetpwuidCalled] spacefm-1.0.6/src/vfs/vfs-file-info.c:346:18: portability: Non reentrant function 'getgrgid' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getgrgid_r'. [prohibitedgetgrgidCalled] spacefm-1.0.6/src/vfs/vfs-file-info.c:366:19: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] spacefm-1.0.6/src/vfs/vfs-file-info.c:898:23: style: Local variable 'len' shadows outer variable [shadowVariable] spacefm-1.0.6/src/vfs/vfs-file-info.c:854:9: note: Shadowed declaration spacefm-1.0.6/src/vfs/vfs-file-info.c:898:23: note: Shadow variable spacefm-1.0.6/src/vfs/vfs-file-info.c:164:50: style: Parameter 'fi' can be declared as pointer to const [constParameterPointer] spacefm-1.0.6/src/vfs/vfs-file-info.c:170:55: style: Parameter 'fi' can be declared as pointer to const [constParameterPointer] spacefm-1.0.6/src/vfs/vfs-file-info.c:195:44: style: Parameter 'fi' can be declared as pointer to const [constParameterPointer] spacefm-1.0.6/src/vfs/vfs-file-info.c:211:46: style: Parameter 'fi' can be declared as pointer to const [constParameterPointer] spacefm-1.0.6/src/vfs/vfs-file-info.c:327:21: style: Variable 'puser' can be declared as pointer to const [constVariablePointer] spacefm-1.0.6/src/vfs/vfs-file-info.c:328:19: style: Variable 'pgroup' can be declared as pointer to const [constVariablePointer] spacefm-1.0.6/src/vfs/vfs-file-info.c:330:11: style: Variable 'user_name' can be declared as pointer to const [constVariablePointer] spacefm-1.0.6/src/vfs/vfs-file-info.c:332:11: style: Variable 'group_name' can be declared as pointer to const [constVariablePointer] spacefm-1.0.6/src/vfs/vfs-file-info.c:444:69: style: Parameter 'format' can be declared as pointer to const [constParameterPointer] spacefm-1.0.6/src/vfs/vfs-file-info.c:446:12: style: Variable 'unit' can be declared as pointer to const [constVariablePointer] spacefm-1.0.6/src/vfs/vfs-file-info.c:544:12: style: Variable 'unit' can be declared as pointer to const [constVariablePointer] spacefm-1.0.6/src/vfs/vfs-file-info.c:650:49: style: Parameter 'fi' can be declared as pointer to const [constParameterPointer] spacefm-1.0.6/src/vfs/vfs-file-info.c:663:47: style: Parameter 'fi' can be declared as pointer to const [constParameterPointer] spacefm-1.0.6/src/vfs/vfs-file-info.c:673:55: style: Parameter 'fi' can be declared as pointer to const [constParameterPointer] spacefm-1.0.6/src/vfs/vfs-file-info.c:742:45: style: Parameter 'fi' can be declared as pointer to const [constParameterPointer] spacefm-1.0.6/src/vfs/vfs-file-info.c:747:58: style: Parameter 'fi' can be declared as pointer to const [constParameterPointer] spacefm-1.0.6/src/vfs/vfs-file-info.c:821:25: style: Variable 'icon_name' is assigned a value that is never used. [unreadVariable] spacefm-1.0.6/src/vfs/vfs-file-monitor.c:96:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_IO_IN [valueFlowBailoutIncompleteVar] spacefm-1.0.6/src/vfs/vfs-file-monitor.c:152:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] spacefm-1.0.6/src/vfs/vfs-file-monitor.c:435:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_IO_HUP [valueFlowBailoutIncompleteVar] spacefm-1.0.6/src/vfs/vfs-file-monitor.c:290:40: style: Parameter 'user_data' can be declared as pointer to const [constParameterPointer] spacefm-1.0.6/src/vfs/vfs-file-monitor.c:293:34: style: Variable 'callbacks' can be declared as pointer to const [constVariablePointer] spacefm-1.0.6/src/vfs/vfs-file-monitor.c:329:37: style: Parameter 'key' can be declared as pointer to const. However it seems that 'reconnect_fam' is a callback function, if 'key' is declared with const you might also need to cast function pointer(s). [constParameterCallback] spacefm-1.0.6/src/vfs/vfs-file-monitor.c:446:64: note: You might need to cast the function pointer here spacefm-1.0.6/src/vfs/vfs-file-monitor.c:329:37: note: Parameter 'key' can be declared as pointer to const spacefm-1.0.6/src/vfs/vfs-file-monitor.c:151:17: style: Unused variable: file_stat [unusedVariable] spacefm-1.0.6/src/vfs/vfs-file-task.c:279:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] spacefm-1.0.6/src/vfs/vfs-file-task.c:381:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] spacefm-1.0.6/src/vfs/vfs-file-task.c:687:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] spacefm-1.0.6/src/vfs/vfs-file-task.c:826:72: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EXDEV [valueFlowBailoutIncompleteVar] spacefm-1.0.6/src/vfs/vfs-file-task.c:866:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] spacefm-1.0.6/src/vfs/vfs-file-task.c:949:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] spacefm-1.0.6/src/vfs/vfs-file-task.c:1028:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] spacefm-1.0.6/src/vfs/vfs-file-task.c:1270:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_IO_NVAL [valueFlowBailoutIncompleteVar] spacefm-1.0.6/src/vfs/vfs-file-task.c:1440:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] spacefm-1.0.6/src/vfs/vfs-file-task.c:2066:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_FILE_TEST_EXISTS [valueFlowBailoutIncompleteVar] spacefm-1.0.6/src/vfs/vfs-file-task.c:444:13: style: Obsolescent function 'utime' called. It is recommended to use 'utimensat' instead. [prohibitedutimeCalled] spacefm-1.0.6/src/vfs/vfs-file-task.c:607:25: style: Obsolescent function 'utime' called. It is recommended to use 'utimensat' instead. [prohibitedutimeCalled] spacefm-1.0.6/src/vfs/vfs-file-task.c:1506:15: style: Redundant condition: tmp. '!tmp || (tmp && !g_file_test(tmp,G_FILE_TEST_IS_DIR))' is equivalent to '!tmp || !g_file_test(tmp,G_FILE_TEST_IS_DIR)' [redundantCondition] spacefm-1.0.6/src/vfs/vfs-file-task.c:136:20: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] spacefm-1.0.6/src/vfs/vfs-file-task.c:1404:5: error: Memory leak: sha256sum [memleak] spacefm-1.0.6/src/vfs/vfs-file-task.c:2230:45: style:inconclusive: Function 'vfs_task_new' argument 1 names different: declaration 'task_type' definition 'type'. [funcArgNamesDifferent] spacefm-1.0.6/src/vfs/vfs-file-task.h:190:45: note: Function 'vfs_task_new' argument 1 names different: declaration 'task_type' definition 'type'. spacefm-1.0.6/src/vfs/vfs-file-task.c:2230:45: note: Function 'vfs_task_new' argument 1 names different: declaration 'task_type' definition 'type'. spacefm-1.0.6/src/vfs/vfs-file-task.c:68:24: style: Parameter 'x' can be declared as pointer to const [constParameterPointer] spacefm-1.0.6/src/vfs/vfs-file-task.c:651:27: style: Parameter 'src_file' can be declared as pointer to const. However it seems that 'vfs_file_task_copy' is a callback function, if 'src_file' is declared with const you might also need to cast function pointer(s). [constParameterCallback] spacefm-1.0.6/src/vfs/vfs-file-task.c:2045:32: note: You might need to cast the function pointer here spacefm-1.0.6/src/vfs/vfs-file-task.c:651:27: note: Parameter 'src_file' can be declared as pointer to const spacefm-1.0.6/src/vfs/vfs-file-task.c:1381:28: style: Parameter 'path' can be declared as pointer to const [constParameterPointer] spacefm-1.0.6/src/vfs/vfs-file-task.c:1383:11: style: Variable 'sha256sum' can be declared as pointer to const [constVariablePointer] spacefm-1.0.6/src/vfs/vfs-file-task.c:1407:69: style: Parameter 'action' can be declared as pointer to const [constParameterPointer] spacefm-1.0.6/src/vfs/vfs-file-task.c:2303:39: style: Parameter 'chmod_actions' can be declared as pointer to const [constParameterPointer] spacefm-1.0.6/src/vfs/vfs-file-task.c:2451:44: style: Parameter 'have_stat' can be declared as pointer to const [constParameterPointer] spacefm-1.0.6/src/vfs/vfs-file-task.c:1404:12: warning: Uninitialized variable: sum [uninitvar] spacefm-1.0.6/src/vfs/vfs-file-task.c:1393:35: note: Assuming condition is false spacefm-1.0.6/src/vfs/vfs-file-task.c:1404:12: note: Uninitialized variable: sum spacefm-1.0.6/src/vfs/vfs-file-task.c:497:24: style: Variable 'wfd' is assigned a value that is never used. [unreadVariable] spacefm-1.0.6/src/vfs/vfs-file-task.c:781:15: style: Unused variable: kf [unusedVariable] spacefm-1.0.6/src/vfs/vfs-file-task.c:1266:12: style: Unused variable: line [unusedVariable] spacefm-1.0.6/src/vfs/vfs-file-task.c:1268:17: style: Unused variable: iter [unusedVariable] spacefm-1.0.6/src/vfs/vfs-file-task.c:2421:18: style: Variable 'parent' is assigned a value that is never used. [unreadVariable] spacefm-1.0.6/src/vfs/vfs-mime-type.c:114:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable file_path [valueFlowBailoutIncompleteVar] spacefm-1.0.6/src/vfs/vfs-mime-type.c:240:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XDG_MIME_TYPE_DIRECTORY [valueFlowBailoutIncompleteVar] spacefm-1.0.6/src/vfs/vfs-mime-type.c:430:53: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XDG_MIME_TYPE_UNKNOWN [valueFlowBailoutIncompleteVar] spacefm-1.0.6/src/vfs/vfs-mime-type.c:515:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MIME_TYPE_ACTION_DEFAULT [valueFlowBailoutIncompleteVar] spacefm-1.0.6/src/vfs/vfs-mime-type.c:523:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MIME_TYPE_ACTION_REMOVE [valueFlowBailoutIncompleteVar] spacefm-1.0.6/src/vfs/vfs-mime-type.c:594:53: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MIME_TYPE_ACTION_APPEND [valueFlowBailoutIncompleteVar] spacefm-1.0.6/src/vfs/vfs-mime-type.c:196:38: style: Parameter 'mime_type' can be declared as pointer to const [constParameterPointer] spacefm-1.0.6/src/vfs/vfs-mime-type.c:361:42: style: Parameter 'user_data' can be declared as pointer to const. However it seems that 'free_cached_icons' is a callback function, if 'user_data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] spacefm-1.0.6/src/vfs/vfs-mime-type.c:566:27: note: You might need to cast the function pointer here spacefm-1.0.6/src/vfs/vfs-mime-type.c:361:42: note: Parameter 'user_data' can be declared as pointer to const spacefm-1.0.6/src/vfs/vfs-mime-type.c:413:50: style: Parameter 'mime_type' can be declared as pointer to const [constParameterPointer] spacefm-1.0.6/src/vfs/vfs-thumbnail-loader.c:34:2: error: failed to evaluate #if condition, undefined function-like macro invocation: GLIB_CHECK_VERSION( ... ) [syntaxError] spacefm-1.0.6/src/vfs/vfs-utils.c:37:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_ICON_LOOKUP_USE_BUILTIN [valueFlowBailoutIncompleteVar] spacefm-1.0.6/src/vfs/vfs-volume-hal-options.c:23:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PACKAGE_DATA_DIR [valueFlowBailoutIncompleteVar] spacefm-1.0.6/src/vfs/vfs-volume-nohal.c:1515:68: error: There is an unknown macro here somewhere. Configuration is required. If G_GUINT64_FORMAT is a macro then please configure it. [unknownMacro] spacefm-1.0.6/src/xml-purge.c:20:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] spacefm-1.0.6/src/xml-purge.c:25:3: error: Resource leak: fd [resourceLeak] spacefm-1.0.6/src/xml-purge.c:32:4: error: Resource leak: fd [resourceLeak] spacefm-1.0.6/src/xml-purge.c:88:11: style: Variable 'tmp' can be declared as pointer to const [constVariablePointer] diff: DONE