2026-05-01 17:03 ftp://ftp.de.debian.org/debian/pool/main/e/easychem/easychem_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 -j6 platform: Linux-7.0.3+deb14-amd64-x86_64-with-glibc2.42 python: 3.13.12 client-version: 1.4.0 compiler: g++ (Debian 15.2.0-17) 15.2.0 cppcheck: head 2.20.0 head-info: e5c4a734 (2026-05-01 11:10:43 +0200) count: 82 82 elapsed-time: 0.4 0.3 head-timing-info: old-timing-info: head results: easychem-0.6/auxi.c:203:36: error: There is an unknown macro here somewhere. Configuration is required. If G_GINT64_FORMAT is a macro then please configure it. [unknownMacro] easychem-0.6/bonds.c:1518:29: error: There is an unknown macro here somewhere. Configuration is required. If G_GINT64_FORMAT is a macro then please configure it. [unknownMacro] easychem-0.6/export.c:1163:25: error: There is an unknown macro here somewhere. Configuration is required. If G_GINT64_FORMAT is a macro then please configure it. [unknownMacro] easychem-0.6/dialogs.c:65:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_DIALOG_MODAL [valueFlowBailoutIncompleteVar] easychem-0.6/dialogs.c:98:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_DIALOG_DESTROY_WITH_PARENT [valueFlowBailoutIncompleteVar] easychem-0.6/dialogs.c:211:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_DIALOG_MODAL [valueFlowBailoutIncompleteVar] easychem-0.6/dialogs.c:406:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_DIALOG_DESTROY_WITH_PARENT [valueFlowBailoutIncompleteVar] easychem-0.6/dialogs.c:768:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_DIALOG_DESTROY_WITH_PARENT [valueFlowBailoutIncompleteVar] easychem-0.6/dialogs.c:913:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_DIALOG_MODAL [valueFlowBailoutIncompleteVar] easychem-0.6/drawing.c:103:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_PI [valueFlowBailoutIncompleteVar] easychem-0.6/drawing.c:193:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PANGO_SCALE [valueFlowBailoutIncompleteVar] easychem-0.6/drawing.c:356:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x [valueFlowBailoutIncompleteVar] easychem-0.6/drawing.c:628:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] easychem-0.6/easychem.c:190:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] easychem-0.6/easychem.c:245:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_DIALOG_MODAL [valueFlowBailoutIncompleteVar] easychem-0.6/easychem.c:316:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] easychem-0.6/easychem.c:481:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_FILE_TEST_EXISTS [valueFlowBailoutIncompleteVar] easychem-0.6/easychem.c:562:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_DIALOG_DESTROY_WITH_PARENT [valueFlowBailoutIncompleteVar] easychem-0.6/easychem.c:585:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_FILE_TEST_EXISTS [valueFlowBailoutIncompleteVar] easychem-0.6/easychem.c:674:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_DIALOG_MODAL [valueFlowBailoutIncompleteVar] easychem-0.6/easychem.c:793:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_DIALOG_MODAL [valueFlowBailoutIncompleteVar] easychem-0.6/easychem.c:900:64: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_PI [valueFlowBailoutIncompleteVar] easychem-0.6/easychem.c:920:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_PI [valueFlowBailoutIncompleteVar] easychem-0.6/easychem.c:940:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_PI [valueFlowBailoutIncompleteVar] easychem-0.6/easychem.c:1117:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] easychem-0.6/easychem.c:1185:59: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_PI [valueFlowBailoutIncompleteVar] easychem-0.6/easychem.c:1203:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_PI [valueFlowBailoutIncompleteVar] easychem-0.6/easychem.c:1323:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_BUTTON_PRESS [valueFlowBailoutIncompleteVar] easychem-0.6/easychem.c:1734:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_SHIFT_MASK [valueFlowBailoutIncompleteVar] easychem-0.6/easychem.c:2003:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_SHIFT_MASK [valueFlowBailoutIncompleteVar] easychem-0.6/easychem.c:2084:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_DIALOG_DESTROY_WITH_PARENT [valueFlowBailoutIncompleteVar] easychem-0.6/easychem.c:2128:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_DIALOG_MODAL [valueFlowBailoutIncompleteVar] easychem-0.6/easychem.c:2174:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_DIALOG_MODAL [valueFlowBailoutIncompleteVar] easychem-0.6/easychem.c:2206:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_FILE_TEST_IS_REGULAR [valueFlowBailoutIncompleteVar] easychem-0.6/easychem.c:2299:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_DIALOG_MODAL [valueFlowBailoutIncompleteVar] easychem-0.6/easychem.c:2326:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] easychem-0.6/easychem.c:2349:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] easychem-0.6/easychem.c:2564:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_FILE_TEST_IS_REGULAR [valueFlowBailoutIncompleteVar] easychem-0.6/easychem.c:2658:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_DIALOG_MODAL [valueFlowBailoutIncompleteVar] easychem-0.6/easychem.c:2758:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_DIALOG_MODAL [valueFlowBailoutIncompleteVar] easychem-0.6/easychem.c:2866:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_TYPE_MENU_BAR [valueFlowBailoutIncompleteVar] easychem-0.6/easychem.c:2968:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_NUMERIC [valueFlowBailoutIncompleteVar] easychem-0.6/dialogs.c:229: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] easychem-0.6/dialogs.c:273: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] easychem-0.6/dialogs.c:774: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] easychem-0.6/dialogs.c:846: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] easychem-0.6/dialogs.c:680:9: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] easychem-0.6/dialogs.c:705:7: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] easychem-0.6/dialogs.c:841:9: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] easychem-0.6/drawing.c:31:37: style: Parameter 'orn' can be declared as pointer to const [constParameterPointer] easychem-0.6/drawing.c:131:40: style: Parameter 'color' can be declared as pointer to const [constParameterPointer] easychem-0.6/drawing.c:623:15: style: Variable 'pixbuf' can be declared as pointer to const [constVariablePointer] easychem-0.6/dialogs.c:721:49: style: Parameter 'bond' can be declared as pointer to const [constParameterPointer] easychem-0.6/dialogs.c:725:20: style: Variable 'row' is assigned a value that is never used. [unreadVariable] easychem-0.6/dialogs.c:832:5: style: Variable 'row' is assigned a value that is never used. [unreadVariable] easychem-0.6/dialogs.c:954:3: style: Variable 'row' is assigned a value that is never used. [unreadVariable] easychem-0.6/easychem.c:799: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] easychem-0.6/easychem.c:819: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] easychem-0.6/easychem.c:2122:5: style: Obsolete function 'gtk_exit' called. It is recommended to use 'exit' instead. [prohibitedgtk_exitCalled] easychem-0.6/easychem.c:2124:5: style: Obsolete function 'gtk_exit' called. It is recommended to use 'exit' instead. [prohibitedgtk_exitCalled] easychem-0.6/easychem.c:2140:5: style: Obsolete function 'gtk_exit' called. It is recommended to use 'exit' instead. [prohibitedgtk_exitCalled] easychem-0.6/easychem.c:2143:5: style: Obsolete function 'gtk_exit' called. It is recommended to use 'exit' instead. [prohibitedgtk_exitCalled] easychem-0.6/easychem.c:2662:9: 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] easychem-0.6/easychem.c:2762:9: 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] easychem-0.6/easychem.c:2996:11: 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] easychem-0.6/easychem.c:2997: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] easychem-0.6/easychem.c:3047: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] easychem-0.6/easychem.c:3079: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] easychem-0.6/easychem.c:1581:17: style: Condition 'new==NULL' is always false [knownConditionTrueFalse] easychem-0.6/easychem.c:656:1: error: Memory leak: base [memleak] easychem-0.6/easychem.c:300:4: error: Allocation with g_strconcat, gtk_label_set_text_with_mnemonic doesn't release it. [leakNoVarFunctionCall] easychem-0.6/easychem.c:320:2: error: Allocation with g_strconcat, gtk_label_set_text_with_mnemonic doesn't release it. [leakNoVarFunctionCall] easychem-0.6/easychem.c:518:4: error: Allocation with g_strdup_printf, gtk_window_set_title doesn't release it. [leakNoVarFunctionCall] easychem-0.6/easychem.c:2249:4: error: Allocation with g_strdup_printf, gtk_window_set_title doesn't release it. [leakNoVarFunctionCall] easychem-0.6/easychem.c:3171:5: error: Allocation with g_strdup_printf, gtk_window_set_title doesn't release it. [leakNoVarFunctionCall] easychem-0.6/easychem.c:1118:4: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] easychem-0.6/easychem.c:2651:18: style: Local variable 'angle' shadows outer variable [shadowVariable] easychem-0.6/easychem.c:135:12: note: Shadowed declaration easychem-0.6/easychem.c:2651:18: note: Shadow variable easychem-0.6/easychem.c:1133:35: style: Parameter 'ref' can be declared as pointer to const [constParameterPointer] easychem-0.6/easychem.c:1314:72: style: Parameter 'event' can be declared as pointer to const. However it seems that 'button_press_event' is a callback function, if 'event' is declared with const you might also need to cast function pointer(s). [constParameterCallback] easychem-0.6/easychem.c:3031:3: note: You might need to cast the function pointer here easychem-0.6/easychem.c:1314:72: note: Parameter 'event' can be declared as pointer to const easychem-0.6/easychem.c:1690:60: style: Parameter 'event' can be declared as pointer to const. However it seems that 'button_release_event' is a callback function, if 'event' is declared with const you might also need to cast function pointer(s). [constParameterCallback] easychem-0.6/easychem.c:3033:3: note: You might need to cast the function pointer here easychem-0.6/easychem.c:1690:60: note: Parameter 'event' can be declared as pointer to const easychem-0.6/easychem.c:1908:66: style: Parameter 'event' can be declared as pointer to const. However it seems that 'key_press_event' is a callback function, if 'event' is declared with const you might also need to cast function pointer(s). [constParameterCallback] easychem-0.6/easychem.c:3035:3: note: You might need to cast the function pointer here easychem-0.6/easychem.c:1908:66: note: Parameter 'event' can be declared as pointer to const easychem-0.6/easychem.c:2855:54: style: Parameter 'data' can be declared as pointer to const. However it seems that 'translate' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] easychem-0.6/easychem.c:2868:55: note: You might need to cast the function pointer here easychem-0.6/easychem.c:2855:54: note: Parameter 'data' can be declared as pointer to const diff: DONE