2024-04-22 12:09 ftp://ftp.de.debian.org/debian/pool/main/t/tabble/tabble_0.43.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --library=gtk --inconclusive --enable=style,information --inline-suppr --template=daca2 --disable=missingInclude --suppress=unmatchedSuppression --check-library --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning -D__GNUC__ --platform=unix64 -j4 platform: Linux-6.1.0-20-amd64-x86_64-with-glibc2.36 python: 3.11.2 client-version: 1.3.56 compiler: g++ (Debian 12.2.0-14) 12.2.0 cppcheck: head 2.14.0 head-info: ea2e716 (2024-04-21 15:59:20 +0200) count: 69 69 elapsed-time: 0.2 0.2 head-timing-info: old-timing-info: head results: tabble-0.43/src/choices.c:50:62: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_RELIEF_NORMAL [valueFlowBailoutIncompleteVar] tabble-0.43/src/choices.c:64:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_Escape [valueFlowBailoutIncompleteVar] tabble-0.43/src/choices.c:115:60: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_RELIEF_NONE [valueFlowBailoutIncompleteVar] tabble-0.43/src/edits.c:31:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PACKAGE [valueFlowBailoutIncompleteVar] tabble-0.43/src/edits.c:241:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vbox [valueFlowBailoutIncompleteVar] tabble-0.43/src/add_stuff.c:350:60: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_RELIEF_NONE [valueFlowBailoutIncompleteVar] tabble-0.43/src/icons.c:46:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_INTERP_BILINEAR [valueFlowBailoutIncompleteVar] tabble-0.43/src/choices.c:111:3: style: Obsolete function 'g_string_sprintf' called. It is recommended to use 'g_string_printf' instead. [prohibitedg_string_sprintfCalled] tabble-0.43/src/choices.c:286:10: 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] tabble-0.43/src/choices.c:297:10: 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] tabble-0.43/src/choices.c:60:53: style: Parameter 'event' can be declared as pointer to const. However it seems that 'key_event' is a callback function, if 'event' is declared with const you might also need to cast function pointer(s). [constParameterCallback] tabble-0.43/src/choices.c:319:5: note: You might need to cast the function pointer here tabble-0.43/src/choices.c:60:53: note: Parameter 'event' can be declared as pointer to const tabble-0.43/src/choices.c:103:15: style: Variable 'info' can be declared as pointer to const [constVariablePointer] tabble-0.43/src/choices.c:138:15: style: Variable 'info' can be declared as pointer to const [constVariablePointer] tabble-0.43/src/choices.c:222:58: style: Parameter 'event' can be declared as pointer to const [constParameterPointer] tabble-0.43/src/choices.c:112:14: style: Variable 'sys_result' is assigned a value that is never used. [unreadVariable] tabble-0.43/src/edits.c:31:3: style: Obsolete function 'g_string_sprintf' called. It is recommended to use 'g_string_printf' instead. [prohibitedg_string_sprintfCalled] tabble-0.43/src/edits.c:89:7: style: Obsolete function 'g_string_sprintf' called. It is recommended to use 'g_string_printf' instead. [prohibitedg_string_sprintfCalled] tabble-0.43/src/edits.c:135:5: style: Obsolete function 'g_string_sprintf' called. It is recommended to use 'g_string_printf' instead. [prohibitedg_string_sprintfCalled] tabble-0.43/src/edits.c:178:12: style: Variable 'new_name' can be declared as pointer to const [constVariablePointer] tabble-0.43/src/add_stuff.c:332:7: style: Obsolete function 'g_string_sprintf' called. It is recommended to use 'g_string_printf' instead. [prohibitedg_string_sprintfCalled] tabble-0.43/src/read_line.c:82:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable str [valueFlowBailoutIncompleteVar] tabble-0.43/src/add_stuff.c:16:36: style: Parameter 'info' can be declared as pointer to const [constParameterPointer] tabble-0.43/src/load_lists.c:239:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PACKAGE [valueFlowBailoutIncompleteVar] tabble-0.43/src/read_line.c:68:3: style: Obsolete function 'g_string_sprintf' called. It is recommended to use 'g_string_printf' instead. [prohibitedg_string_sprintfCalled] tabble-0.43/src/read_line.c:35:5: error: Memory leak: dest [memleak] tabble-0.43/src/read_line.c:120:5: error: Memory leak: context [memleak] tabble-0.43/src/read_line.c:120:5: error: Memory leak: context.filename [memleak] tabble-0.43/src/options.c:52:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vbox [valueFlowBailoutIncompleteVar] tabble-0.43/src/options.c:123:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vbox [valueFlowBailoutIncompleteVar] tabble-0.43/src/options.c:216:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vbox [valueFlowBailoutIncompleteVar] tabble-0.43/src/options.c:302:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vbox [valueFlowBailoutIncompleteVar] tabble-0.43/src/options.c:359:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vbox [valueFlowBailoutIncompleteVar] tabble-0.43/src/options.c:414:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vbox [valueFlowBailoutIncompleteVar] tabble-0.43/src/options.c:469:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vbox [valueFlowBailoutIncompleteVar] tabble-0.43/src/options.c:538:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vbox [valueFlowBailoutIncompleteVar] tabble-0.43/src/tabble.c:19:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_WINDOW_TOPLEVEL [valueFlowBailoutIncompleteVar] tabble-0.43/src/options.c:167:3: style: Obsolete function 'g_string_sprintf' called. It is recommended to use 'g_string_printf' instead. [prohibitedg_string_sprintfCalled] tabble-0.43/src/options.c:236:3: style: Obsolete function 'g_string_sprintf' called. It is recommended to use 'g_string_printf' instead. [prohibitedg_string_sprintfCalled] tabble-0.43/src/options.c:242:3: style: Obsolete function 'g_string_sprintf' called. It is recommended to use 'g_string_printf' instead. [prohibitedg_string_sprintfCalled] tabble-0.43/src/options.c:485:3: style: Obsolete function 'g_string_sprintf' called. It is recommended to use 'g_string_printf' instead. [prohibitedg_string_sprintfCalled] tabble-0.43/src/options.c:111:15: style: Variable 'tab' can be declared as pointer to const [constVariablePointer] tabble-0.43/src/load_lists.c:55:5: style: Obsolete function 'g_string_sprintf' called. It is recommended to use 'g_string_printf' instead. [prohibitedg_string_sprintfCalled] tabble-0.43/src/load_lists.c:90:5: style: Obsolete function 'g_string_sprintf' called. It is recommended to use 'g_string_printf' instead. [prohibitedg_string_sprintfCalled] tabble-0.43/src/load_lists.c:299:9: style: Obsolete function 'g_string_sprintf' called. It is recommended to use 'g_string_printf' instead. [prohibitedg_string_sprintfCalled] tabble-0.43/src/load_lists.c:229:10: style: Variable 'left' can be declared as pointer to const [constVariablePointer] tabble-0.43/src/save_lists.c:43:3: style: Obsolete function 'g_string_sprintf' called. It is recommended to use 'g_string_printf' instead. [prohibitedg_string_sprintfCalled] tabble-0.43/src/save_lists.c:78:3: style: Obsolete function 'g_string_sprintf' called. It is recommended to use 'g_string_printf' instead. [prohibitedg_string_sprintfCalled] tabble-0.43/src/save_lists.c:80:3: style: Obsolete function 'g_string_sprintf' called. It is recommended to use 'g_string_printf' instead. [prohibitedg_string_sprintfCalled] tabble-0.43/src/save_lists.c:82:3: style: Obsolete function 'g_string_sprintf' called. It is recommended to use 'g_string_printf' instead. [prohibitedg_string_sprintfCalled] tabble-0.43/src/save_lists.c:84:3: style: Obsolete function 'g_string_sprintf' called. It is recommended to use 'g_string_printf' instead. [prohibitedg_string_sprintfCalled] tabble-0.43/src/save_lists.c:86:3: style: Obsolete function 'g_string_sprintf' called. It is recommended to use 'g_string_printf' instead. [prohibitedg_string_sprintfCalled] tabble-0.43/src/save_lists.c:89:3: style: Obsolete function 'g_string_sprintf' called. It is recommended to use 'g_string_printf' instead. [prohibitedg_string_sprintfCalled] tabble-0.43/src/save_lists.c:91:3: style: Obsolete function 'g_string_sprintf' called. It is recommended to use 'g_string_printf' instead. [prohibitedg_string_sprintfCalled] tabble-0.43/src/save_lists.c:93:3: style: Obsolete function 'g_string_sprintf' called. It is recommended to use 'g_string_printf' instead. [prohibitedg_string_sprintfCalled] tabble-0.43/src/save_lists.c:95:3: style: Obsolete function 'g_string_sprintf' called. It is recommended to use 'g_string_printf' instead. [prohibitedg_string_sprintfCalled] tabble-0.43/src/save_lists.c:99:5: style: Obsolete function 'g_string_sprintf' called. It is recommended to use 'g_string_printf' instead. [prohibitedg_string_sprintfCalled] tabble-0.43/src/save_lists.c:101:5: style: Obsolete function 'g_string_sprintf' called. It is recommended to use 'g_string_printf' instead. [prohibitedg_string_sprintfCalled] tabble-0.43/src/save_lists.c:106:5: style: Obsolete function 'g_string_sprintf' called. It is recommended to use 'g_string_printf' instead. [prohibitedg_string_sprintfCalled] tabble-0.43/src/save_lists.c:108:5: style: Obsolete function 'g_string_sprintf' called. It is recommended to use 'g_string_printf' instead. [prohibitedg_string_sprintfCalled] tabble-0.43/src/save_lists.c:117:5: style: Obsolete function 'g_string_sprintf' called. It is recommended to use 'g_string_printf' instead. [prohibitedg_string_sprintfCalled] tabble-0.43/src/save_lists.c:146:13: style: Obsolete function 'g_string_sprintf' called. It is recommended to use 'g_string_printf' instead. [prohibitedg_string_sprintfCalled] tabble-0.43/src/save_lists.c:148:13: style: Obsolete function 'g_string_sprintf' called. It is recommended to use 'g_string_printf' instead. [prohibitedg_string_sprintfCalled] tabble-0.43/src/save_lists.c:159:13: style: Obsolete function 'g_string_sprintf' called. It is recommended to use 'g_string_printf' instead. [prohibitedg_string_sprintfCalled] tabble-0.43/src/save_lists.c:161:13: style: Obsolete function 'g_string_sprintf' called. It is recommended to use 'g_string_printf' instead. [prohibitedg_string_sprintfCalled] tabble-0.43/src/save_lists.c:193:5: style: Obsolete function 'g_string_sprintf' called. It is recommended to use 'g_string_printf' instead. [prohibitedg_string_sprintfCalled] tabble-0.43/src/save_lists.c:208:5: style: Obsolete function 'g_string_sprintf' called. It is recommended to use 'g_string_printf' instead. [prohibitedg_string_sprintfCalled] tabble-0.43/src/save_lists.c:26:14: style: Checking if unsigned expression 'actual' is less than zero. [unsignedLessThanZero] tabble-0.43/src/save_lists.c:60:15: style: Variable 'tab' can be declared as pointer to const [constVariablePointer] tabble-0.43/src/save_lists.c:62:16: style: Variable 'item' can be declared as pointer to const [constVariablePointer] diff: DONE