2025-07-21 23:42 ftp://ftp.de.debian.org/debian/pool/main/g/gtkcookie/gtkcookie_0.4.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 --suppress=normalCheckLevelConditionExpressions -D__GNUC__ --platform=unix64 -j1 platform: Linux-6.8.0-64-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.67 compiler: g++ (Ubuntu 14.2.0-4ubuntu2~24.04) 14.2.0 cppcheck: head 2.18.0 head-info: 140480f (2025-07-21 08:45:09 +0200) count: 93 93 elapsed-time: 0.9 0.8 head-timing-info: old-timing-info: head results: gtkcookie-0.4/getline.c:46:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] gtkcookie-0.4/getline.c:49:27: warning: Storing fgetc() return value in char variable and then comparing with EOF. [checkCastIntToCharAndBack] gtkcookie-0.4/getline.c:76:17: warning: Storing fgetc() return value in char variable and then comparing with EOF. [checkCastIntToCharAndBack] gtkcookie-0.4/gtkcookie.c:411:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_WINDOW_TOPLEVEL [valueFlowBailoutIncompleteVar] gtkcookie-0.4/gtkcookie.c:827:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_WIN_POS_MOUSE [valueFlowBailoutIncompleteVar] gtkcookie-0.4/gtkcookie.c:878:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_WIN_POS_MOUSE [valueFlowBailoutIncompleteVar] gtkcookie-0.4/gtkcookie.c:969:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_WIN_POS_MOUSE [valueFlowBailoutIncompleteVar] gtkcookie-0.4/gtkcookie.c:1093:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_2BUTTON_PRESS [valueFlowBailoutIncompleteVar] gtkcookie-0.4/gtkcookie.c:1587:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_WINDOW_TOPLEVEL [valueFlowBailoutIncompleteVar] gtkcookie-0.4/gtkcookie.c:1926:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable active [valueFlowBailoutIncompleteVar] gtkcookie-0.4/gtkcookie.c:1989:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_WIN_POS_MOUSE [valueFlowBailoutIncompleteVar] gtkcookie-0.4/gtkcookie.c:2020:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_WIN_POS_MOUSE [valueFlowBailoutIncompleteVar] gtkcookie-0.4/gtkcookie.c:2165:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_VISIBILITY_NONE [valueFlowBailoutIncompleteVar] gtkcookie-0.4/gtkcookie.c:2332:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable active [valueFlowBailoutIncompleteVar] gtkcookie-0.4/gtkcookie.c:2341:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_Return [valueFlowBailoutIncompleteVar] gtkcookie-0.4/gtkcookie.c:2353:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_Return [valueFlowBailoutIncompleteVar] gtkcookie-0.4/gtkcookie.c:2371:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_Delete [valueFlowBailoutIncompleteVar] gtkcookie-0.4/gtkcookie.c:414:5: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] gtkcookie-0.4/gtkcookie.c:420:5: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] gtkcookie-0.4/gtkcookie.c:536:5: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] gtkcookie-0.4/gtkcookie.c:717:12: 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] gtkcookie-0.4/gtkcookie.c:790:2: style: Obsolete function 'g_string_sprintf' called. It is recommended to use 'g_string_printf' instead. [prohibitedg_string_sprintfCalled] gtkcookie-0.4/gtkcookie.c:829:2: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] gtkcookie-0.4/gtkcookie.c:836: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] gtkcookie-0.4/gtkcookie.c:888:9: 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] gtkcookie-0.4/gtkcookie.c:892: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] gtkcookie-0.4/gtkcookie.c:908: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] gtkcookie-0.4/gtkcookie.c:916:2: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] gtkcookie-0.4/gtkcookie.c:971:2: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] gtkcookie-0.4/gtkcookie.c:978: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] gtkcookie-0.4/gtkcookie.c:1196:5: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] gtkcookie-0.4/gtkcookie.c:1202:5: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] gtkcookie-0.4/gtkcookie.c:1209:5: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] gtkcookie-0.4/gtkcookie.c:1302:2: style: Obsolete function 'g_string_sprintf' called. It is recommended to use 'g_string_printf' instead. [prohibitedg_string_sprintfCalled] gtkcookie-0.4/gtkcookie.c:1490:21: portability: Non reentrant function 'gmtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'gmtime_r'. [prohibitedgmtimeCalled] gtkcookie-0.4/gtkcookie.c:1495:42: style: Obsolete function 'asctime' called. It is recommended to use 'strftime' instead. [prohibitedasctimeCalled] gtkcookie-0.4/gtkcookie.c:1589:2: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] gtkcookie-0.4/gtkcookie.c:1595:2: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] gtkcookie-0.4/gtkcookie.c:1603:9: 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] gtkcookie-0.4/gtkcookie.c:1608:9: 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] gtkcookie-0.4/gtkcookie.c:1631:2: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] gtkcookie-0.4/gtkcookie.c:1649:2: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] gtkcookie-0.4/gtkcookie.c:1667:2: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] gtkcookie-0.4/gtkcookie.c:1685:2: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] gtkcookie-0.4/gtkcookie.c:1702:2: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] gtkcookie-0.4/gtkcookie.c:1727:2: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] gtkcookie-0.4/gtkcookie.c:1780:2: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] gtkcookie-0.4/gtkcookie.c:1812:9: 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] gtkcookie-0.4/gtkcookie.c:1819: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] gtkcookie-0.4/gtkcookie.c:1828:2: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] gtkcookie-0.4/gtkcookie.c:1991:2: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] gtkcookie-0.4/gtkcookie.c:1995:2: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] gtkcookie-0.4/gtkcookie.c:2022:2: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] gtkcookie-0.4/gtkcookie.c:2026:2: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] gtkcookie-0.4/gtkcookie.c:2099:2: style: Obsolete function 'g_string_sprintf' called. It is recommended to use 'g_string_printf' instead. [prohibitedg_string_sprintfCalled] gtkcookie-0.4/gtkcookie.c:2128:2: style: Obsolete function 'g_string_up' called. It is recommended to use 'g_string_ascii_up' or 'g_utf8_strup' instead. [prohibitedg_string_upCalled] gtkcookie-0.4/gtkcookie.c:2145:3: style: Obsolete function 'g_string_up' called. It is recommended to use 'g_string_ascii_up' or 'g_utf8_strup' instead. [prohibitedg_string_upCalled] gtkcookie-0.4/gtkcookie.c:1904:29: style: Condition 'glbl_selected_time_str!=NULL' is always true [knownConditionTrueFalse] gtkcookie-0.4/gtkcookie.c:1276:10: warning: If memory allocation fails, then there is a possible null pointer dereference: glbl_selected_filename_str [nullPointerOutOfMemory] gtkcookie-0.4/gtkcookie.c:1275:37: note: Assuming allocation function fails gtkcookie-0.4/gtkcookie.c:1275:37: note: Assignment 'glbl_selected_filename_str=calloc(pathname_str_length+1,sizeof(char))', assigned value is 0 gtkcookie-0.4/gtkcookie.c:1276:10: note: Null pointer dereference gtkcookie-0.4/gtkcookie.c:1277:9: warning: If memory allocation fails, then there is a possible null pointer dereference: glbl_selected_filename_str [nullPointerOutOfMemory] gtkcookie-0.4/gtkcookie.c:1275:37: note: Assuming allocation function fails gtkcookie-0.4/gtkcookie.c:1275:37: note: Assignment 'glbl_selected_filename_str=calloc(pathname_str_length+1,sizeof(char))', assigned value is 0 gtkcookie-0.4/gtkcookie.c:1277:9: note: Null pointer dereference gtkcookie-0.4/gtkcookie.c:1278:2: warning: If memory allocation fails, then there is a possible null pointer dereference: glbl_selected_filename_str [nullPointerOutOfMemory] gtkcookie-0.4/gtkcookie.c:1275:37: note: Assuming allocation function fails gtkcookie-0.4/gtkcookie.c:1275:37: note: Assignment 'glbl_selected_filename_str=calloc(pathname_str_length+1,sizeof(char))', assigned value is 0 gtkcookie-0.4/gtkcookie.c:1278:2: note: Null pointer dereference gtkcookie-0.4/gtkcookie.c:1291:30: warning: Either the condition 'glbl_selected_filename_str!=NULL' is redundant or there is possible null pointer dereference: glbl_selected_filename_str. [nullPointerRedundantCheck] gtkcookie-0.4/gtkcookie.c:1297:33: note: Assuming that condition 'glbl_selected_filename_str!=NULL' is not redundant gtkcookie-0.4/gtkcookie.c:1291:30: note: Null pointer dereference gtkcookie-0.4/gtkcookie.c:1302:87: warning: Possible null pointer dereference: glbl_selected_filename_str [nullPointer] gtkcookie-0.4/gtkcookie.c:1299:35: note: Assignment 'glbl_selected_filename_str=NULL', assigned value is 0 gtkcookie-0.4/gtkcookie.c:1302:87: note: Null pointer dereference gtkcookie-0.4/gtkcookie.c:1972:10: warning: If memory allocation fails, then there is a possible null pointer dereference: glbl_selected_filename_str [nullPointerOutOfMemory] gtkcookie-0.4/gtkcookie.c:1971:37: note: Assuming allocation function fails gtkcookie-0.4/gtkcookie.c:1971:37: note: Assignment 'glbl_selected_filename_str=calloc(length+1,sizeof(char))', assigned value is 0 gtkcookie-0.4/gtkcookie.c:1972:10: note: Null pointer dereference gtkcookie-0.4/gtkcookie.c:1973:2: warning: If memory allocation fails, then there is a possible null pointer dereference: glbl_selected_filename_str [nullPointerOutOfMemory] gtkcookie-0.4/gtkcookie.c:1971:37: note: Assuming allocation function fails gtkcookie-0.4/gtkcookie.c:1971:37: note: Assignment 'glbl_selected_filename_str=calloc(length+1,sizeof(char))', assigned value is 0 gtkcookie-0.4/gtkcookie.c:1973:2: note: Null pointer dereference gtkcookie-0.4/gtkcookie.c:2056:10: warning: If memory allocation fails, then there is a possible null pointer dereference: glbl_selected_filename_str [nullPointerOutOfMemory] gtkcookie-0.4/gtkcookie.c:2055:37: note: Assuming allocation function fails gtkcookie-0.4/gtkcookie.c:2055:37: note: Assignment 'glbl_selected_filename_str=calloc(length+1,sizeof(char))', assigned value is 0 gtkcookie-0.4/gtkcookie.c:2056:10: note: Null pointer dereference gtkcookie-0.4/gtkcookie.c:2057:2: warning: If memory allocation fails, then there is a possible null pointer dereference: glbl_selected_filename_str [nullPointerOutOfMemory] gtkcookie-0.4/gtkcookie.c:2055:37: note: Assuming allocation function fails gtkcookie-0.4/gtkcookie.c:2055:37: note: Assignment 'glbl_selected_filename_str=calloc(length+1,sizeof(char))', assigned value is 0 gtkcookie-0.4/gtkcookie.c:2057:2: note: Null pointer dereference gtkcookie-0.4/gtkcookie.c:859:34: style:inconclusive: Function 'show_find_dialog_box' argument 1 names different: declaration 'calling_widget' definition 'wdg'. [funcArgNamesDifferent] gtkcookie-0.4/gtkcookie.c:227:45: note: Function 'show_find_dialog_box' argument 1 names different: declaration 'calling_widget' definition 'wdg'. gtkcookie-0.4/gtkcookie.c:859:34: note: Function 'show_find_dialog_box' argument 1 names different: declaration 'calling_widget' definition 'wdg'. gtkcookie-0.4/gtkcookie.c:859:48: style:inconclusive: Function 'show_find_dialog_box' argument 2 names different: declaration 'func_data' definition 'data'. [funcArgNamesDifferent] gtkcookie-0.4/gtkcookie.c:227:70: note: Function 'show_find_dialog_box' argument 2 names different: declaration 'func_data' definition 'data'. gtkcookie-0.4/gtkcookie.c:859:48: note: Function 'show_find_dialog_box' argument 2 names different: declaration 'func_data' definition 'data'. gtkcookie-0.4/gtkcookie.c:1016:10: style:inconclusive: Function 'sort_by_column_glbl_clist' argument 2 names different: declaration 'column' definition 'sort_column'. [funcArgNamesDifferent] gtkcookie-0.4/gtkcookie.c:177:10: note: Function 'sort_by_column_glbl_clist' argument 2 names different: declaration 'column' definition 'sort_column'. gtkcookie-0.4/gtkcookie.c:1016:10: note: Function 'sort_by_column_glbl_clist' argument 2 names different: declaration 'column' definition 'sort_column'. gtkcookie-0.4/gtkcookie.c:1086:21: style: Parameter 'event' can be declared as pointer to const. However it seems that 'select_clist_dblclk' is a callback function, if 'event' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gtkcookie-0.4/gtkcookie.c:1211:10: note: You might need to cast the function pointer here gtkcookie-0.4/gtkcookie.c:1086:21: note: Parameter 'event' can be declared as pointer to const gtkcookie-0.4/gtkcookie.c:1336:41: style: Parameter 'line' can be declared as pointer to const [constParameterPointer] gtkcookie-0.4/gtkcookie.c:1390:16: style: Variable 'cookie_tm_ptr' can be declared as pointer to const [constVariablePointer] gtkcookie-0.4/gtkcookie.c:1511:32: style: Parameter 'c1' can be declared as const array [constParameter] gtkcookie-0.4/gtkcookie.c:1859:12: style: Variable 'entry_text' can be declared as pointer to const [constVariablePointer] gtkcookie-0.4/gtkcookie.c:1880:12: style: Variable 'entry_text' can be declared as pointer to const [constVariablePointer] gtkcookie-0.4/gtkcookie.c:1922:12: style: Variable 'Bool' can be declared as pointer to const [constVariablePointer] gtkcookie-0.4/gtkcookie.c:1964:12: style: Variable 'filename' can be declared as pointer to const [constVariablePointer] gtkcookie-0.4/gtkcookie.c:2048:12: style: Variable 'filename' can be declared as pointer to const [constVariablePointer] gtkcookie-0.4/gtkcookie.c:2112:9: style: Variable 'needle' can be declared as pointer to const [constVariablePointer] gtkcookie-0.4/gtkcookie.c:2195:45: style: Parameter 'calling_widget' can be declared as pointer to const. However it seems that 'reset_last_found_row' is a callback function, if 'calling_widget' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gtkcookie-0.4/gtkcookie.c:903:3: note: You might need to cast the function pointer here gtkcookie-0.4/gtkcookie.c:2195:45: note: Parameter 'calling_widget' can be declared as pointer to const gtkcookie-0.4/gtkcookie.c:2195:70: style: Parameter 'func_data' can be declared as pointer to const. However it seems that 'reset_last_found_row' is a callback function, if 'func_data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gtkcookie-0.4/gtkcookie.c:903:3: note: You might need to cast the function pointer here gtkcookie-0.4/gtkcookie.c:2195:70: note: Parameter 'func_data' can be declared as pointer to const gtkcookie-0.4/gtkcookie.c:2331:77: style: Parameter 'func_data' can be declared as pointer to const. However it seems that 'set_tf_case_sensitive_search' is a callback function, if 'func_data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gtkcookie-0.4/gtkcookie.c:917:7: note: You might need to cast the function pointer here gtkcookie-0.4/gtkcookie.c:2331:77: note: Parameter 'func_data' can be declared as pointer to const gtkcookie-0.4/gtkcookie.c:2340:49: style: Parameter 'ev' can be declared as pointer to const. However it seems that 'search_dlg_key_cb' is a callback function, if 'ev' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gtkcookie-0.4/gtkcookie.c:949:3: note: You might need to cast the function pointer here gtkcookie-0.4/gtkcookie.c:2340:49: note: Parameter 'ev' can be declared as pointer to const gtkcookie-0.4/gtkcookie.c:2352:71: style: Parameter 'event' can be declared as pointer to const. However it seems that 'handle_keypress_in_edit_win' is a callback function, if 'event' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gtkcookie-0.4/gtkcookie.c:1596:7: note: You might need to cast the function pointer here gtkcookie-0.4/gtkcookie.c:2352:71: note: Parameter 'event' can be declared as pointer to const gtkcookie-0.4/gtkcookie.c:2370:74: style: Parameter 'event' can be declared as pointer to const. However it seems that 'handle_keypress_in_main_win' is a callback function, if 'event' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gtkcookie-0.4/gtkcookie.c:421:10: note: You might need to cast the function pointer here gtkcookie-0.4/gtkcookie.c:2370:74: note: Parameter 'event' can be declared as pointer to const gtkcookie-0.4/gtkcookie.c:1091:9: style: Variable 'row' is assigned a value that is never used. [unreadVariable] gtkcookie-0.4/gtkcookie.c:1584:9: style: Variable 'row' is assigned a value that is never used. [unreadVariable] gtkcookie-0.4/proctool.c:68:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] gtkcookie-0.4/proctool.c:234:22: warning: If memory allocation fails, then there is a possible null pointer dereference: uidstr [nullPointerOutOfMemory] gtkcookie-0.4/proctool.c:233:20: note: Assuming allocation function fails gtkcookie-0.4/proctool.c:233:20: note: Assignment 'uidstr=calloc(tab_locations[1]-uid_offset+1,sizeof(char))', assigned value is 0 gtkcookie-0.4/proctool.c:234:22: note: Null pointer dereference gtkcookie-0.4/proctool.c:236:5: warning: If memory allocation fails, then there is a possible null pointer dereference: uidstr [nullPointerOutOfMemory] gtkcookie-0.4/proctool.c:233:20: note: Assuming allocation function fails gtkcookie-0.4/proctool.c:233:20: note: Assignment 'uidstr=calloc(tab_locations[1]-uid_offset+1,sizeof(char))', assigned value is 0 gtkcookie-0.4/proctool.c:234:21: note: Assignment 'uidstr=strncpy(uidstr,file_line+uid_offset,tab_locations[1]-uid_offset)', assigned value is 0 gtkcookie-0.4/proctool.c:236:5: note: Null pointer dereference gtkcookie-0.4/proctool.c:237:21: warning: If memory allocation fails, then there is a possible null pointer dereference: uidstr [nullPointerOutOfMemory] gtkcookie-0.4/proctool.c:233:20: note: Assuming allocation function fails gtkcookie-0.4/proctool.c:233:20: note: Assignment 'uidstr=calloc(tab_locations[1]-uid_offset+1,sizeof(char))', assigned value is 0 gtkcookie-0.4/proctool.c:234:21: note: Assignment 'uidstr=strncpy(uidstr,file_line+uid_offset,tab_locations[1]-uid_offset)', assigned value is 0 gtkcookie-0.4/proctool.c:237:21: note: Null pointer dereference gtkcookie-0.4/proctool.c:54:20: style: Variable 'ent' can be declared as pointer to const [constVariablePointer] diff: DONE