2025-08-31 03:28 ftp://ftp.de.debian.org/debian/pool/main/g/gmanedit/gmanedit_0.4.2.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --library=gtk --library=zlib --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 -j4 platform: Linux-6.12.41+deb13-amd64-x86_64-with-glibc2.41 python: 3.13.5 client-version: 1.3.67 compiler: g++ (Debian 14.2.0-19) 14.2.0 cppcheck: head 2.18.0 head-info: 2ee39fe (2025-08-30 22:07:31 +0200) count: 75 75 elapsed-time: 0.1 0.1 head-timing-info: old-timing-info: head results: gmanedit-0.4.2.orig/src/main.c:54:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DATADIR [valueFlowBailoutIncompleteVar] gmanedit-0.4.2.orig/src/support.c:71:82: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_DIR_SEPARATOR_S [valueFlowBailoutIncompleteVar] gmanedit-0.4.2.orig/src/support.c:100:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] gmanedit-0.4.2.orig/src/support.c:65:16: style: Variable 'elem' can be declared as pointer to const [constVariablePointer] gmanedit-0.4.2.orig/src/callbacks.c:82:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_SELECTION_CLIPBOARD [valueFlowBailoutIncompleteVar] gmanedit-0.4.2.orig/src/callbacks.c:97:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_SELECTION_CLIPBOARD [valueFlowBailoutIncompleteVar] gmanedit-0.4.2.orig/src/callbacks.c:113:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_SELECTION_CLIPBOARD [valueFlowBailoutIncompleteVar] gmanedit-0.4.2.orig/src/callbacks.c:166:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_RESPONSE_ACCEPT [valueFlowBailoutIncompleteVar] gmanedit-0.4.2.orig/src/callbacks.c:189:64: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_RESPONSE_ACCEPT [valueFlowBailoutIncompleteVar] gmanedit-0.4.2.orig/src/callbacks.c:209:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_RESPONSE_ACCEPT [valueFlowBailoutIncompleteVar] gmanedit-0.4.2.orig/src/callbacks.c:277:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] gmanedit-0.4.2.orig/src/callbacks.c:673:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] gmanedit-0.4.2.orig/src/callbacks.c:798:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_DIALOG_MODAL [valueFlowBailoutIncompleteVar] gmanedit-0.4.2.orig/src/callbacks.c:828:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_DIR_SEPARATOR_S [valueFlowBailoutIncompleteVar] gmanedit-0.4.2.orig/src/callbacks.c:863:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_DIR_SEPARATOR_S [valueFlowBailoutIncompleteVar] gmanedit-0.4.2.orig/src/callbacks.c:1182:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] gmanedit-0.4.2.orig/src/interface.c:210:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_WINDOW_TOPLEVEL [valueFlowBailoutIncompleteVar] gmanedit-0.4.2.orig/src/interface.c:274:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_FILE_CHOOSER_ACTION_OPEN [valueFlowBailoutIncompleteVar] gmanedit-0.4.2.orig/src/interface.c:291:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_FILE_CHOOSER_ACTION_OPEN [valueFlowBailoutIncompleteVar] gmanedit-0.4.2.orig/src/interface.c:317:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_WINDOW_TOPLEVEL [valueFlowBailoutIncompleteVar] gmanedit-0.4.2.orig/src/interface.c:444:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vbox [valueFlowBailoutIncompleteVar] gmanedit-0.4.2.orig/src/interface.c:485:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vbox [valueFlowBailoutIncompleteVar] gmanedit-0.4.2.orig/src/interface.c:599:68: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_ASSISTANT_PAGE_INTRO [valueFlowBailoutIncompleteVar] gmanedit-0.4.2.orig/src/interface.c:217: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] gmanedit-0.4.2.orig/src/interface.c:324: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] gmanedit-0.4.2.orig/src/interface.c:328:11: 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] gmanedit-0.4.2.orig/src/interface.c:342:11: 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] gmanedit-0.4.2.orig/src/interface.c:483: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] gmanedit-0.4.2.orig/src/interface.c:487: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] gmanedit-0.4.2.orig/src/interface.c:490:11: 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] gmanedit-0.4.2.orig/src/interface.c:503:11: 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] gmanedit-0.4.2.orig/src/interface.c:602:17: 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] gmanedit-0.4.2.orig/src/interface.c:623:9: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] gmanedit-0.4.2.orig/src/interface.c:661:17: 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] gmanedit-0.4.2.orig/src/interface.c:740:17: 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] gmanedit-0.4.2.orig/src/interface.c:204:14: style: Local variable 'wprincipal' shadows outer variable [shadowVariable] gmanedit-0.4.2.orig/src/interface.c:32:19: note: Shadowed declaration gmanedit-0.4.2.orig/src/interface.c:204:14: note: Shadow variable gmanedit-0.4.2.orig/src/interface.c:581:14: style: Variable 'fecha' can be declared as pointer to const [constVariablePointer] gmanedit-0.4.2.orig/src/interface.c:583:9: style: Variable 'meses' can be declared as const array [constVariable] gmanedit-0.4.2.orig/src/callbacks.c:768:12: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] gmanedit-0.4.2.orig/src/callbacks.c:876:15: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] gmanedit-0.4.2.orig/src/callbacks.c:877:15: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] gmanedit-0.4.2.orig/src/callbacks.c:282:6: error: Mismatching allocation and deallocation: f [mismatchAllocDealloc] gmanedit-0.4.2.orig/src/callbacks.c:262:5: note: Mismatching allocation and deallocation: f gmanedit-0.4.2.orig/src/callbacks.c:282:6: note: Mismatching allocation and deallocation: f gmanedit-0.4.2.orig/src/callbacks.c:1073:1: error: Memory leak: snumber [memleak] gmanedit-0.4.2.orig/src/callbacks.c:647:2: error: Return value of allocation function 'mkstemp' is not stored. [leakReturnValNotUsed] gmanedit-0.4.2.orig/src/callbacks.c:877:13: style: Variable 'tok' is reassigned a value before the old one has been used. [redundantAssignment] gmanedit-0.4.2.orig/src/callbacks.c:876:13: note: tok is assigned gmanedit-0.4.2.orig/src/callbacks.c:877:13: note: tok is overwritten gmanedit-0.4.2.orig/src/callbacks.c:231:28: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] gmanedit-0.4.2.orig/src/callbacks.c:235:9: style: Variable 'datos' can be declared as pointer to const [constVariablePointer] gmanedit-0.4.2.orig/src/callbacks.c:447:58: style: Parameter 'menuitem' can be declared as pointer to const [constParameterPointer] gmanedit-0.4.2.orig/src/callbacks.c:448:58: style: Parameter 'user_data' can be declared as pointer to const [constParameterPointer] gmanedit-0.4.2.orig/src/callbacks.c:641:21: style: Variable 'datos' can be declared as pointer to const [constVariablePointer] gmanedit-0.4.2.orig/src/callbacks.c:695:9: style: Variable 'aux' can be declared as pointer to const [constVariablePointer] gmanedit-0.4.2.orig/src/callbacks.c:730:58: style: Parameter 'button' can be declared as pointer to const [constParameterPointer] gmanedit-0.4.2.orig/src/callbacks.c:731:58: style: Parameter 'user_data' can be declared as pointer to const [constParameterPointer] gmanedit-0.4.2.orig/src/callbacks.c:738:58: style: Parameter 'button' can be declared as pointer to const [constParameterPointer] gmanedit-0.4.2.orig/src/callbacks.c:739:58: style: Parameter 'user_data' can be declared as pointer to const [constParameterPointer] gmanedit-0.4.2.orig/src/callbacks.c:760:17: style: Variable 'fecha' can be declared as pointer to const [constVariablePointer] gmanedit-0.4.2.orig/src/callbacks.c:762:13: style: Variable 'meses' can be declared as const array [constVariable] gmanedit-0.4.2.orig/src/callbacks.c:787:58: style: Parameter 'menuitem' can be declared as pointer to const [constParameterPointer] gmanedit-0.4.2.orig/src/callbacks.c:788:58: style: Parameter 'user_data' can be declared as pointer to const [constParameterPointer] gmanedit-0.4.2.orig/src/callbacks.c:804:58: style: Parameter 'button' can be declared as pointer to const [constParameterPointer] gmanedit-0.4.2.orig/src/callbacks.c:805:58: style: Parameter 'user_data' can be declared as pointer to const [constParameterPointer] gmanedit-0.4.2.orig/src/callbacks.c:856:39: style: Parameter 'variable' can be declared as pointer to const [constParameterPointer] gmanedit-0.4.2.orig/src/callbacks.c:899:12: style: Variable 'datos' can be declared as pointer to const [constVariablePointer] gmanedit-0.4.2.orig/src/callbacks.c:941:25: style: Variable 'druid' can be declared as pointer to const [constVariablePointer] gmanedit-0.4.2.orig/src/callbacks.c:942:11: style: Variable 'nombre' can be declared as pointer to const [constVariablePointer] gmanedit-0.4.2.orig/src/callbacks.c:942:19: style: Variable 'snumber' can be declared as pointer to const [constVariablePointer] gmanedit-0.4.2.orig/src/callbacks.c:942:28: style: Variable 'date' can be declared as pointer to const [constVariablePointer] gmanedit-0.4.2.orig/src/callbacks.c:942:34: style: Variable 'title' can be declared as pointer to const [constVariablePointer] gmanedit-0.4.2.orig/src/callbacks.c:1094:9: style: Variable 'browser' can be declared as pointer to const [constVariablePointer] gmanedit-0.4.2.orig/src/callbacks.c:1109:9: style: Variable 'datos' can be declared as pointer to const [constVariablePointer] gmanedit-0.4.2.orig/src/callbacks.c:1129:34: style: Parameter 'manfile' can be declared as pointer to const [constParameterPointer] gmanedit-0.4.2.orig/src/callbacks.c:1137:9: style: Variable 'utf8' can be declared as pointer to const [constVariablePointer] gmanedit-0.4.2.orig/src/callbacks.c:269:16: style: Variable 'bytes_written' is assigned a value that is never used. [unreadVariable] gmanedit-0.4.2.orig/src/callbacks.c:271:18: style: Variable 'bytes_written' is assigned a value that is never used. [unreadVariable] gmanedit-0.4.2.orig/src/callbacks.c:947:10: style: Variable 'druid' is assigned a value that is never used. [unreadVariable] diff: DONE