2025-12-17 08:02 ftp://ftp.de.debian.org/debian/pool/main/r/rgbpaint/rgbpaint_0.8.7.orig.tar.bz2 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 -j90 platform: Linux-6.8.0-88-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.69 compiler: g++ (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0 cppcheck: head 2.18.0 head-info: c9c660e (2025-12-16 13:10:32 +0100) count: 230 224 elapsed-time: 0.5 1.3 head-timing-info: old-timing-info: head results: rgbpaint-0.8.7/src/main.c:50:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] rgbpaint-0.8.7/src/main.c:73:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_IO_STATUS_NORMAL [valueFlowBailoutIncompleteVar] rgbpaint-0.8.7/src/main.c:129:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VERSION [valueFlowBailoutIncompleteVar] rgbpaint-0.8.7/src/png.c:128:62: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_COLORSPACE_RGB [valueFlowBailoutIncompleteVar] rgbpaint-0.8.7/src/otherwindow.c:135:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vbox [valueFlowBailoutIncompleteVar] rgbpaint-0.8.7/src/otherwindow.c:345:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_WIN_POS_MOUSE [valueFlowBailoutIncompleteVar] rgbpaint-0.8.7/src/otherwindow.c:557:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vbox [valueFlowBailoutIncompleteVar] rgbpaint-0.8.7/src/mygtk.c:63:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_FILL [valueFlowBailoutIncompleteVar] rgbpaint-0.8.7/src/mygtk.c:76:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_EXPAND [valueFlowBailoutIncompleteVar] rgbpaint-0.8.7/src/mygtk.c:106:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_WIN_POS_CENTER [valueFlowBailoutIncompleteVar] rgbpaint-0.8.7/src/mygtk.c:305:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable keycode [valueFlowBailoutIncompleteVar] rgbpaint-0.8.7/src/main.c:63:8: style: Variable 'res' can be declared as pointer to const [constVariablePointer] rgbpaint-0.8.7/src/main.c:59:7: style: union member 'Anonymous0::signal' is never used. [unusedStructMember] rgbpaint-0.8.7/src/toolbar.c:97:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_CAN_FOCUS [valueFlowBailoutIncompleteVar] rgbpaint-0.8.7/src/toolbar.c:230:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_TOOLBAR_CHILD_TOGGLEBUTTON [valueFlowBailoutIncompleteVar] rgbpaint-0.8.7/src/toolbar.c:348:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_TOOLBAR_ICONS [valueFlowBailoutIncompleteVar] rgbpaint-0.8.7/src/toolbar.c:455:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_STATE_NORMAL [valueFlowBailoutIncompleteVar] rgbpaint-0.8.7/src/toolbar.c:495:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_CAN_FOCUS [valueFlowBailoutIncompleteVar] rgbpaint-0.8.7/src/toolbar.c:587:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable next [valueFlowBailoutIncompleteVar] rgbpaint-0.8.7/src/viewer.c:119:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_RGB_DITHER_NONE [valueFlowBailoutIncompleteVar] rgbpaint-0.8.7/src/viewer.c:164:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_Shift_L [valueFlowBailoutIncompleteVar] rgbpaint-0.8.7/src/viewer.c:251:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_BUTTON1_MASK [valueFlowBailoutIncompleteVar] rgbpaint-0.8.7/src/viewer.c:268:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_RGB_DITHER_NONE [valueFlowBailoutIncompleteVar] rgbpaint-0.8.7/src/viewer.c:305:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_WIN_POS_MOUSE [valueFlowBailoutIncompleteVar] rgbpaint-0.8.7/src/viewer.c:515:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vbox [valueFlowBailoutIncompleteVar] rgbpaint-0.8.7/src/png.c:160:25: error: Buffer is accessed out of bounds: txt [bufferAccessOutOfBounds] rgbpaint-0.8.7/src/otherwindow.c:167:2: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] rgbpaint-0.8.7/src/otherwindow.c:172:2: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] rgbpaint-0.8.7/src/otherwindow.c:382:2: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] rgbpaint-0.8.7/src/otherwindow.c:392:2: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] rgbpaint-0.8.7/src/otherwindow.c:559: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] rgbpaint-0.8.7/src/otherwindow.c:613:2: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] rgbpaint-0.8.7/src/png.c:200:8: style: Condition '!mem_clipboard' is always false [knownConditionTrueFalse] rgbpaint-0.8.7/src/png.c:51:28: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] rgbpaint-0.8.7/src/png.c:54:8: style: Variable 'ext' can be declared as pointer to const [constVariablePointer] rgbpaint-0.8.7/src/otherwindow.c:84:2: style: Redundant assignment of 'nw' to itself. [selfAssignment] rgbpaint-0.8.7/src/otherwindow.c:85:2: style: Redundant assignment of 'nw' to itself. [selfAssignment] rgbpaint-0.8.7/src/otherwindow.c:86:2: style: Redundant assignment of 'nh' to itself. [selfAssignment] rgbpaint-0.8.7/src/otherwindow.c:87:2: style: Redundant assignment of 'nh' to itself. [selfAssignment] rgbpaint-0.8.7/src/otherwindow.c:179:32: style: Parameter 'menu_item' can be declared as pointer to const [constParameterPointer] rgbpaint-0.8.7/src/otherwindow.c:179:52: style: Parameter 'user_data' can be declared as pointer to const [constParameterPointer] rgbpaint-0.8.7/src/otherwindow.c:239:51: style: Parameter 'adj' can be declared as pointer to const. However it seems that 'brcosa_spinslide_moved' is a callback function, if 'adj' is declared with const you might also need to cast function pointer(s). [constParameterCallback] rgbpaint-0.8.7/src/otherwindow.c:364:4: note: You might need to cast the function pointer here rgbpaint-0.8.7/src/otherwindow.c:239:51: note: Parameter 'adj' can be declared as pointer to const rgbpaint-0.8.7/src/otherwindow.c:269:44: style: Parameter 'widget' can be declared as pointer to const [constParameterPointer] rgbpaint-0.8.7/src/otherwindow.c:324:13: style: Variable 'mins' can be declared as const array [constVariable] rgbpaint-0.8.7/src/otherwindow.c:325:3: style: Variable 'maxs' can be declared as const array [constVariable] rgbpaint-0.8.7/src/otherwindow.c:112:6: style: Variable 'nw' is assigned a value that is never used. [unreadVariable] rgbpaint-0.8.7/src/otherwindow.c:113:6: style: Variable 'nh' is assigned a value that is never used. [unreadVariable] rgbpaint-0.8.7/src/canvas.c:428:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable next [valueFlowBailoutIncompleteVar] rgbpaint-0.8.7/src/canvas.c:496:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable children [valueFlowBailoutIncompleteVar] rgbpaint-0.8.7/src/canvas.c:524:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable children [valueFlowBailoutIncompleteVar] rgbpaint-0.8.7/src/canvas.c:550:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable children [valueFlowBailoutIncompleteVar] rgbpaint-0.8.7/src/canvas.c:865:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_BUTTON_PRESS [valueFlowBailoutIncompleteVar] rgbpaint-0.8.7/src/canvas.c:1232:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_RGB_DITHER_NONE [valueFlowBailoutIncompleteVar] rgbpaint-0.8.7/src/mygtk.c:108:2: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] rgbpaint-0.8.7/src/mygtk.c:125:4: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] rgbpaint-0.8.7/src/mygtk.c:177:2: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] rgbpaint-0.8.7/src/mygtk.c:210:2: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] rgbpaint-0.8.7/src/mygtk.c:109:34: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] rgbpaint-0.8.7/src/mygtk.c:88:47: style: Parameter 'data' can be declared as pointer to const. However it seems that 'alert_reply' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] rgbpaint-0.8.7/src/mygtk.c:126:5: note: You might need to cast the function pointer here rgbpaint-0.8.7/src/mygtk.c:88:47: note: Parameter 'data' can be declared as pointer to const rgbpaint-0.8.7/src/mygtk.c:283:29: style: Parameter 'event' can be declared as pointer to const [constParameterPointer] rgbpaint-0.8.7/src/toolbar.c:409:24: warning: Either the condition 'item>(2*5)' is redundant or the array 'brush_list[10][3]' is accessed at index brush_list[10][0], which is out of bounds. [arrayIndexOutOfBoundsCond] rgbpaint-0.8.7/src/toolbar.c:407:10: note: Assuming that condition 'item>(2*5)' is not redundant rgbpaint-0.8.7/src/toolbar.c:409:24: note: Array index out of bounds rgbpaint-0.8.7/src/toolbar.c:411:24: warning: Either the condition 'item>(2*5)' is redundant or the array 'brush_list[10][3]' is accessed at index brush_list[10][1], which is out of bounds. [arrayIndexOutOfBoundsCond] rgbpaint-0.8.7/src/toolbar.c:407:10: note: Assuming that condition 'item>(2*5)' is not redundant rgbpaint-0.8.7/src/toolbar.c:411:24: note: Array index out of bounds rgbpaint-0.8.7/src/toolbar.c:412:24: warning: Either the condition 'item>(2*5)' is redundant or the array 'brush_list[10][3]' is accessed at index brush_list[10][2], which is out of bounds. [arrayIndexOutOfBoundsCond] rgbpaint-0.8.7/src/toolbar.c:407:10: note: Assuming that condition 'item>(2*5)' is not redundant rgbpaint-0.8.7/src/toolbar.c:412:24: note: Array index out of bounds rgbpaint-0.8.7/src/toolbar.c:422:31: warning: Either the condition 'item>(2*5)' is redundant or the array 'brush_buttons[10]' is accessed at index 10, which is out of bounds. [arrayIndexOutOfBoundsCond] rgbpaint-0.8.7/src/toolbar.c:407:10: note: Assuming that condition 'item>(2*5)' is not redundant rgbpaint-0.8.7/src/toolbar.c:422:31: note: Array index out of bounds rgbpaint-0.8.7/src/toolbar.c:342: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] rgbpaint-0.8.7/src/toolbar.c:480: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] rgbpaint-0.8.7/src/toolbar.c:506: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] rgbpaint-0.8.7/src/toolbar.c:517:4: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] rgbpaint-0.8.7/src/toolbar.c:537:2: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] rgbpaint-0.8.7/src/toolbar.c:556:4: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] rgbpaint-0.8.7/src/toolbar.c:662:3: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] rgbpaint-0.8.7/src/toolbar.c:664:3: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] rgbpaint-0.8.7/src/toolbar.c:635:3: warning: Suspicious use of ; at the end of 'if' statement. [suspiciousSemicolon] rgbpaint-0.8.7/src/toolbar.c:118:8: style: Variable 'txt' can be declared as pointer to const [constVariablePointer] rgbpaint-0.8.7/src/toolbar.c:392:74: style: Parameter 'user' can be declared as pointer to const. However it seems that 'toolbar_click_brush' is a callback function, if 'user' is declared with const you might also need to cast function pointer(s). [constParameterCallback] rgbpaint-0.8.7/src/toolbar.c:518:5: note: You might need to cast the function pointer here rgbpaint-0.8.7/src/toolbar.c:392:74: note: Parameter 'user' can be declared as pointer to const rgbpaint-0.8.7/src/toolbar.c:427:76: style: Parameter 'user' can be declared as pointer to const. However it seems that 'toolbar_click_colours' is a callback function, if 'user' is declared with const you might also need to cast function pointer(s). [constParameterCallback] rgbpaint-0.8.7/src/toolbar.c:557:5: note: You might need to cast the function pointer here rgbpaint-0.8.7/src/toolbar.c:427:76: note: Parameter 'user' can be declared as pointer to const rgbpaint-0.8.7/src/toolbar.c:594:78: style: Parameter 'user' can be declared as pointer to const. However it seems that 'expose_stamp' is a callback function, if 'user' is declared with const you might also need to cast function pointer(s). [constParameterCallback] rgbpaint-0.8.7/src/toolbar.c:665:4: note: You might need to cast the function pointer here rgbpaint-0.8.7/src/toolbar.c:594:78: note: Parameter 'user' can be declared as pointer to const rgbpaint-0.8.7/src/toolbar.c:625:50: style: Parameter 'user' can be declared as pointer to const. However it seems that 'pressed_stamp' is a callback function, if 'user' is declared with const you might also need to cast function pointer(s). [constParameterCallback] rgbpaint-0.8.7/src/toolbar.c:663:4: note: You might need to cast the function pointer here rgbpaint-0.8.7/src/toolbar.c:625:50: note: Parameter 'user' can be declared as pointer to const rgbpaint-0.8.7/src/toolbar.c:649:19: style: Variable 'file_info' can be declared as pointer to const [constVariablePointer] rgbpaint-0.8.7/src/toolbar.c:153:22: style: struct member 'toolbar_item::rclick' is never used. [unusedStructMember] rgbpaint-0.8.7/src/viewer.c:327:2: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] rgbpaint-0.8.7/src/viewer.c:528:2: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] rgbpaint-0.8.7/src/viewer.c:536:2: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] rgbpaint-0.8.7/src/toolbar.c:601:5: style: Variable 'px' is assigned a value that is never used. [unreadVariable] rgbpaint-0.8.7/src/toolbar.c:602:5: style: Variable 'py' is assigned a value that is never used. [unreadVariable] rgbpaint-0.8.7/src/toolbar.c:603:5: style: Variable 'pw' is assigned a value that is never used. [unreadVariable] rgbpaint-0.8.7/src/toolbar.c:604:5: style: Variable 'ph' is assigned a value that is never used. [unreadVariable] rgbpaint-0.8.7/src/viewer.c:411:8: warning: Either the condition 't_image!=NULL' is redundant or there is possible null pointer dereference: t_image. [nullPointerRedundantCheck] rgbpaint-0.8.7/src/viewer.c:424:15: note: Assuming that condition 't_image!=NULL' is not redundant rgbpaint-0.8.7/src/viewer.c:411:8: note: Null pointer dereference rgbpaint-0.8.7/src/viewer.c:183:4: style: Redundant assignment of 'nv_h' to itself. [selfAssignment] rgbpaint-0.8.7/src/viewer.c:184:4: style: Redundant assignment of 'nv_v' to itself. [selfAssignment] rgbpaint-0.8.7/src/viewer.c:217:3: style: Redundant assignment of 'nv_h' to itself. [selfAssignment] rgbpaint-0.8.7/src/viewer.c:218:3: style: Redundant assignment of 'nv_v' to itself. [selfAssignment] rgbpaint-0.8.7/src/viewer.c:296:2: style: Redundant assignment of 'pan_w' to itself. [selfAssignment] rgbpaint-0.8.7/src/viewer.c:297:2: style: Redundant assignment of 'pan_h' to itself. [selfAssignment] rgbpaint-0.8.7/src/viewer.c:124:17: style: Variable 'hori' can be declared as pointer to const [constVariablePointer] rgbpaint-0.8.7/src/viewer.c:124:24: style: Variable 'vert' can be declared as pointer to const [constVariablePointer] rgbpaint-0.8.7/src/viewer.c:231:35: style: Parameter 'widget' can be declared as pointer to const. However it seems that 'click_pan' is a callback function, if 'widget' is declared with const you might also need to cast function pointer(s). [constParameterCallback] rgbpaint-0.8.7/src/viewer.c:318:3: note: You might need to cast the function pointer here rgbpaint-0.8.7/src/viewer.c:231:35: note: Parameter 'widget' can be declared as pointer to const rgbpaint-0.8.7/src/viewer.c:231:59: style: Parameter 'event' can be declared as pointer to const. However it seems that 'click_pan' is a callback function, if 'event' is declared with const you might also need to cast function pointer(s). [constParameterCallback] rgbpaint-0.8.7/src/viewer.c:318:3: note: You might need to cast the function pointer here rgbpaint-0.8.7/src/viewer.c:231:59: note: Parameter 'event' can be declared as pointer to const rgbpaint-0.8.7/src/viewer.c:341:41: style: Parameter 'rgb' can be declared as pointer to const [constParameterPointer] rgbpaint-0.8.7/src/viewer.c:384:11: style: Variable 'antialias' can be declared as const array [constVariable] rgbpaint-0.8.7/src/mainwindow.c:280:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_BUTTON_PRESS [valueFlowBailoutIncompleteVar] rgbpaint-0.8.7/src/mainwindow.c:658:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_BUTTON_RELEASE [valueFlowBailoutIncompleteVar] rgbpaint-0.8.7/src/mainwindow.c:778:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_BUTTON_RELEASE [valueFlowBailoutIncompleteVar] rgbpaint-0.8.7/src/mainwindow.c:803:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_CROSSING_NORMAL [valueFlowBailoutIncompleteVar] rgbpaint-0.8.7/src/mainwindow.c:1186:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_RGB_DITHER_NONE [valueFlowBailoutIncompleteVar] rgbpaint-0.8.7/src/mainwindow.c:1344:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_RGB_DITHER_NONE [valueFlowBailoutIncompleteVar] rgbpaint-0.8.7/src/mainwindow.c:1458:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_RGB_DITHER_NONE [valueFlowBailoutIncompleteVar] rgbpaint-0.8.7/src/mainwindow.c:1501:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_BUTTON1_MASK [valueFlowBailoutIncompleteVar] rgbpaint-0.8.7/src/mainwindow.c:1661:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_WINDOW_TOPLEVEL [valueFlowBailoutIncompleteVar] rgbpaint-0.8.7/src/mainwindow.c:1805:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VERSION [valueFlowBailoutIncompleteVar] rgbpaint-0.8.7/src/viewer.c:420:4: style: Variable 'r' is assigned a value that is never used. [unreadVariable] rgbpaint-0.8.7/src/viewer.c:421:4: style: Variable 'g' is assigned a value that is never used. [unreadVariable] rgbpaint-0.8.7/src/viewer.c:422:4: style: Variable 'b' is assigned a value that is never used. [unreadVariable] rgbpaint-0.8.7/src/mainwindow.c:1674:14: 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] rgbpaint-0.8.7/src/mainwindow.c:1688:16: 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] rgbpaint-0.8.7/src/mainwindow.c:1695:15: 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] rgbpaint-0.8.7/src/mainwindow.c:1716:2: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] rgbpaint-0.8.7/src/mainwindow.c:1718:2: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] rgbpaint-0.8.7/src/mainwindow.c:1720:2: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] rgbpaint-0.8.7/src/mainwindow.c:1722:2: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] rgbpaint-0.8.7/src/mainwindow.c:1724:2: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] rgbpaint-0.8.7/src/mainwindow.c:1726:2: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] rgbpaint-0.8.7/src/mainwindow.c:1735:17: 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] rgbpaint-0.8.7/src/mainwindow.c:1750:16: 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] rgbpaint-0.8.7/src/mainwindow.c:998:6: style: Condition '!k' is always false [knownConditionTrueFalse] rgbpaint-0.8.7/src/mainwindow.c:991:4: note: Assignment 'k=256', assigned value is 256 rgbpaint-0.8.7/src/mainwindow.c:998:6: note: Condition '!k' is always false rgbpaint-0.8.7/src/mainwindow.c:998:12: style: Condition '!j' is always true [knownConditionTrueFalse] rgbpaint-0.8.7/src/mainwindow.c:992:8: note: Assignment 'opA=0', assigned value is 0 rgbpaint-0.8.7/src/mainwindow.c:997:16: note: Assignment 'j=opA+opS+opM', assigned value is 0 rgbpaint-0.8.7/src/mainwindow.c:998:12: note: Condition '!j' is always true rgbpaint-0.8.7/src/mainwindow.c:228:2: style: Variable 'marq_x1' is assigned an expression that holds the same value. [redundantAssignment] rgbpaint-0.8.7/src/mainwindow.c:217:10: note: ox1 is assigned 'marq_x1' here. rgbpaint-0.8.7/src/mainwindow.c:228:2: note: Variable 'marq_x1' is assigned an expression that holds the same value. rgbpaint-0.8.7/src/mainwindow.c:229:2: style: Variable 'marq_y1' is assigned an expression that holds the same value. [redundantAssignment] rgbpaint-0.8.7/src/mainwindow.c:217:25: note: oy1 is assigned 'marq_y1' here. rgbpaint-0.8.7/src/mainwindow.c:229:2: note: Variable 'marq_y1' is assigned an expression that holds the same value. rgbpaint-0.8.7/src/mainwindow.c:230:2: style: Variable 'marq_x2' is assigned an expression that holds the same value. [redundantAssignment] rgbpaint-0.8.7/src/mainwindow.c:217:40: note: ox2 is assigned 'marq_x2' here. rgbpaint-0.8.7/src/mainwindow.c:230:2: note: Variable 'marq_x2' is assigned an expression that holds the same value. rgbpaint-0.8.7/src/mainwindow.c:231:2: style: Variable 'marq_y2' is assigned an expression that holds the same value. [redundantAssignment] rgbpaint-0.8.7/src/mainwindow.c:217:55: note: oy2 is assigned 'marq_y2' here. rgbpaint-0.8.7/src/mainwindow.c:231:2: note: Variable 'marq_y2' is assigned an expression that holds the same value. rgbpaint-0.8.7/src/mainwindow.c:144:45: style: Parameter 'menu_item' can be declared as pointer to const [constParameterPointer] rgbpaint-0.8.7/src/mainwindow.c:144:65: style: Parameter 'user_data' can be declared as pointer to const [constParameterPointer] rgbpaint-0.8.7/src/mainwindow.c:147:48: style: Parameter 'menu_item' can be declared as pointer to const [constParameterPointer] rgbpaint-0.8.7/src/mainwindow.c:147:68: style: Parameter 'user_data' can be declared as pointer to const [constParameterPointer] rgbpaint-0.8.7/src/mainwindow.c:260:25: style: Variable 'bmasks' can be declared as const array [constVariable] rgbpaint-0.8.7/src/mainwindow.c:370:16: style: Variable 'zals' can be declared as const array [constVariable] rgbpaint-0.8.7/src/mainwindow.c:623:31: style: Parameter 'widget' can be declared as pointer to const. However it seems that 'delete_event' is a callback function, if 'widget' is declared with const you might also need to cast function pointer(s). [constParameterCallback] rgbpaint-0.8.7/src/mainwindow.c:1767:3: note: You might need to cast the function pointer here rgbpaint-0.8.7/src/mainwindow.c:623:31: note: Parameter 'widget' can be declared as pointer to const rgbpaint-0.8.7/src/mainwindow.c:623:49: style: Parameter 'event' can be declared as pointer to const. However it seems that 'delete_event' is a callback function, if 'event' is declared with const you might also need to cast function pointer(s). [constParameterCallback] rgbpaint-0.8.7/src/mainwindow.c:1767:3: note: You might need to cast the function pointer here rgbpaint-0.8.7/src/mainwindow.c:623:49: note: Parameter 'event' can be declared as pointer to const rgbpaint-0.8.7/src/mainwindow.c:623:65: style: Parameter 'data' can be declared as pointer to const. However it seems that 'delete_event' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] rgbpaint-0.8.7/src/mainwindow.c:1767:3: note: You might need to cast the function pointer here rgbpaint-0.8.7/src/mainwindow.c:623:65: note: Parameter 'data' can be declared as pointer to const rgbpaint-0.8.7/src/mainwindow.c:776:39: style: Parameter 'widget' can be declared as pointer to const. However it seems that 'canvas_button' is a callback function, if 'widget' is declared with const you might also need to cast function pointer(s). [constParameterCallback] rgbpaint-0.8.7/src/mainwindow.c:1723:3: note: You might need to cast the function pointer here rgbpaint-0.8.7/src/mainwindow.c:776:39: note: Parameter 'widget' can be declared as pointer to const rgbpaint-0.8.7/src/mainwindow.c:776:63: style: Parameter 'event' can be declared as pointer to const. However it seems that 'canvas_button' is a callback function, if 'event' is declared with const you might also need to cast function pointer(s). [constParameterCallback] rgbpaint-0.8.7/src/mainwindow.c:1723:3: note: You might need to cast the function pointer here rgbpaint-0.8.7/src/mainwindow.c:776:63: note: Parameter 'event' can be declared as pointer to const rgbpaint-0.8.7/src/mainwindow.c:800:36: style: Parameter 'widget' can be declared as pointer to const. However it seems that 'canvas_left' is a callback function, if 'widget' is declared with const you might also need to cast function pointer(s). [constParameterCallback] rgbpaint-0.8.7/src/mainwindow.c:1727:3: note: You might need to cast the function pointer here rgbpaint-0.8.7/src/mainwindow.c:800:36: note: Parameter 'widget' can be declared as pointer to const rgbpaint-0.8.7/src/mainwindow.c:800:62: style: Parameter 'event' can be declared as pointer to const. However it seems that 'canvas_left' is a callback function, if 'event' is declared with const you might also need to cast function pointer(s). [constParameterCallback] rgbpaint-0.8.7/src/mainwindow.c:1727:3: note: You might need to cast the function pointer here rgbpaint-0.8.7/src/mainwindow.c:800:62: note: Parameter 'event' can be declared as pointer to const rgbpaint-0.8.7/src/mainwindow.c:800:78: style: Parameter 'user_data' can be declared as pointer to const. However it seems that 'canvas_left' is a callback function, if 'user_data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] rgbpaint-0.8.7/src/mainwindow.c:1727:3: note: You might need to cast the function pointer here rgbpaint-0.8.7/src/mainwindow.c:800:78: note: Parameter 'user_data' can be declared as pointer to const rgbpaint-0.8.7/src/mainwindow.c:820:23: style: Variable 'greyz' can be declared as const array [constVariable] rgbpaint-0.8.7/src/mainwindow.c:976:17: style: Variable 'alpha' can be declared as pointer to const [constVariablePointer] rgbpaint-0.8.7/src/mainwindow.c:976:25: style: Variable 'sel' can be declared as pointer to const [constVariablePointer] rgbpaint-0.8.7/src/mainwindow.c:976:31: style: Variable 'mask' can be declared as pointer to const [constVariablePointer] rgbpaint-0.8.7/src/mainwindow.c:1034:57: style: Parameter 'map' can be declared as pointer to const [constParameterPointer] rgbpaint-0.8.7/src/mainwindow.c:1036:23: style: Variable 'crgb' can be declared as const array [constVariable] rgbpaint-0.8.7/src/mainwindow.c:1547:39: style: Parameter 'widget' can be declared as pointer to const. However it seems that 'expose_canvas' is a callback function, if 'widget' is declared with const you might also need to cast function pointer(s). [constParameterCallback] rgbpaint-0.8.7/src/mainwindow.c:1719:3: note: You might need to cast the function pointer here rgbpaint-0.8.7/src/mainwindow.c:1547:39: note: Parameter 'widget' can be declared as pointer to const rgbpaint-0.8.7/src/mainwindow.c:1584:54: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] rgbpaint-0.8.7/src/mainwindow.c:1652:17: style: Variable 'accel_group' can be declared as pointer to const [constVariablePointer] rgbpaint-0.8.7/src/mainwindow.c:1801:29: style: Variable 'extra' can be declared as pointer to const [constVariablePointer] rgbpaint-0.8.7/src/mainwindow.c:225:6: style: Variable 'nx2' is assigned a value that is never used. [unreadVariable] rgbpaint-0.8.7/src/mainwindow.c:226:6: style: Variable 'ny2' is assigned a value that is never used. [unreadVariable] rgbpaint-0.8.7/src/mainwindow.c:694:28: style: Variable 'x0' is assigned a value that is never used. [unreadVariable] rgbpaint-0.8.7/src/mainwindow.c:695:28: style: Variable 'y0' is assigned a value that is never used. [unreadVariable] rgbpaint-0.8.7/src/mainwindow.c:1245:25: style: Variable 'pw2' is assigned a value that is never used. [unreadVariable] rgbpaint-0.8.7/src/mainwindow.c:1654:14: style: Variable 'accel_group' is assigned a value that is never used. [unreadVariable] rgbpaint-0.8.7/src/canvas.c:601:2: warning:inconclusive: The buffer 'fname' may not be null-terminated after the call to strncpy(). [terminateStrncpy] rgbpaint-0.8.7/src/canvas.c:486:3: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] rgbpaint-0.8.7/src/canvas.c:504:8: 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] rgbpaint-0.8.7/src/canvas.c:882:18: style: Boolean result is used in bitwise operation. Clarify expression with parentheses. [clarifyCondition] rgbpaint-0.8.7/src/canvas.c:884:18: style: Boolean result is used in bitwise operation. Clarify expression with parentheses. [clarifyCondition] rgbpaint-0.8.7/src/canvas.c:75:15: error: Memory leak: mask [memleak] rgbpaint-0.8.7/src/canvas.c:1018:3: style: Redundant assignment of 'marq_x1' to itself. [selfAssignment] rgbpaint-0.8.7/src/canvas.c:1019:3: style: Redundant assignment of 'marq_y1' to itself. [selfAssignment] rgbpaint-0.8.7/src/canvas.c:1020:3: style: Redundant assignment of 'marq_x1' to itself. [selfAssignment] rgbpaint-0.8.7/src/canvas.c:1021:3: style: Redundant assignment of 'marq_y1' to itself. [selfAssignment] rgbpaint-0.8.7/src/canvas.c:1029:3: style: Redundant assignment of 'marq_x1' to itself. [selfAssignment] rgbpaint-0.8.7/src/canvas.c:1030:3: style: Redundant assignment of 'marq_y1' to itself. [selfAssignment] rgbpaint-0.8.7/src/canvas.c:1031:3: style: Redundant assignment of 'marq_x2' to itself. [selfAssignment] rgbpaint-0.8.7/src/canvas.c:1032:3: style: Redundant assignment of 'marq_y2' to itself. [selfAssignment] rgbpaint-0.8.7/src/canvas.c:1033:3: style: Redundant assignment of 'marq_x1' to itself. [selfAssignment] rgbpaint-0.8.7/src/canvas.c:1034:3: style: Redundant assignment of 'marq_y1' to itself. [selfAssignment] rgbpaint-0.8.7/src/canvas.c:1035:3: style: Redundant assignment of 'marq_x2' to itself. [selfAssignment] rgbpaint-0.8.7/src/canvas.c:1036:3: style: Redundant assignment of 'marq_y2' to itself. [selfAssignment] rgbpaint-0.8.7/src/canvas.c:171:6: style: Variable 'bpp' is reassigned a value before the old one has been used. [redundantAssignment] rgbpaint-0.8.7/src/canvas.c:170:6: note: bpp is assigned rgbpaint-0.8.7/src/canvas.c:171:6: note: bpp is overwritten rgbpaint-0.8.7/src/canvas.c:126:34: style: Parameter 'menu_item' can be declared as pointer to const [constParameterPointer] rgbpaint-0.8.7/src/canvas.c:126:54: style: Parameter 'user_data' can be declared as pointer to const [constParameterPointer] rgbpaint-0.8.7/src/canvas.c:139:17: style: Variable 'hori' can be declared as pointer to const [constVariablePointer] rgbpaint-0.8.7/src/canvas.c:139:24: style: Variable 'vert' can be declared as pointer to const [constVariablePointer] rgbpaint-0.8.7/src/canvas.c:228:33: style: Parameter 'menu_item' can be declared as pointer to const [constParameterPointer] rgbpaint-0.8.7/src/canvas.c:228:53: style: Parameter 'user_data' can be declared as pointer to const [constParameterPointer] rgbpaint-0.8.7/src/canvas.c:288:30: style: Parameter 'menu_item' can be declared as pointer to const [constParameterPointer] rgbpaint-0.8.7/src/canvas.c:288:50: style: Parameter 'user_data' can be declared as pointer to const [constParameterPointer] rgbpaint-0.8.7/src/canvas.c:295:30: style: Parameter 'menu_item' can be declared as pointer to const [constParameterPointer] rgbpaint-0.8.7/src/canvas.c:295:50: style: Parameter 'user_data' can be declared as pointer to const [constParameterPointer] rgbpaint-0.8.7/src/canvas.c:336:30: style: Parameter 'fname' can be declared as pointer to const [constParameterPointer] rgbpaint-0.8.7/src/canvas.c:342:22: style: Parameter 'fname' can be declared as pointer to const [constParameterPointer] rgbpaint-0.8.7/src/canvas.c:449:49: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] rgbpaint-0.8.7/src/canvas.c:558:44: style: Parameter 'settings' can be declared as pointer to const [constParameterPointer] rgbpaint-0.8.7/src/canvas.c:587:24: style: Variable 'ext' can be declared as pointer to const [constVariablePointer] rgbpaint-0.8.7/src/canvas.c:587:30: style: Variable 'ext2' can be declared as pointer to const [constVariablePointer] rgbpaint-0.8.7/src/canvas.c:674:23: style: Parameter 's' can be declared as pointer to const [constParameterPointer] rgbpaint-0.8.7/src/canvas.c:781:6: style: Variable 'dx' can be declared as const array [constVariable] rgbpaint-0.8.7/src/canvas.c:782:6: style: Variable 'dy' can be declared as const array [constVariable] rgbpaint-0.8.7/src/canvas.c:1044:17: style: Variable 'hori' can be declared as pointer to const [constVariablePointer] rgbpaint-0.8.7/src/canvas.c:1044:24: style: Variable 'vert' can be declared as pointer to const [constVariablePointer] rgbpaint-0.8.7/src/canvas.c:1264:27: style: Parameter 'filename' can be declared as pointer to const [constParameterPointer] rgbpaint-0.8.7/src/memory.c:640:7: style: Suspicious condition (assignment + comparison); Clarify expression with parentheses. [clarifyCondition] rgbpaint-0.8.7/src/memory.c:682:8: style: Suspicious condition (assignment + comparison); Clarify expression with parentheses. [clarifyCondition] rgbpaint-0.8.7/src/memory.c:218:23: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] rgbpaint-0.8.7/src/memory.c:291:22: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] rgbpaint-0.8.7/src/memory.c:356:41: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] rgbpaint-0.8.7/src/memory.c:456:23: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] rgbpaint-0.8.7/src/memory.c:456:52: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] rgbpaint-0.8.7/src/memory.c:522:42: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] rgbpaint-0.8.7/src/memory.c:241:17: style: Variable 'res' can be declared as pointer to const [constVariablePointer] rgbpaint-0.8.7/src/memory.c:513:30: style: Parameter 'undo' can be declared as pointer to const [constParameterPointer] rgbpaint-0.8.7/src/memory.c:532:23: style: Parameter 'filename' can be declared as pointer to const [constParameterPointer] rgbpaint-0.8.7/src/memory.c:559:9: style: Variable 'lookup' can be declared as const array [constVariable] rgbpaint-0.8.7/src/memory.c:585:64: style: Parameter 'mask' can be declared as pointer to const [constParameterPointer] rgbpaint-0.8.7/src/memory.c:586:38: style: Parameter 'img0' can be declared as pointer to const [constParameterPointer] rgbpaint-0.8.7/src/memory.c:588:13: style: Variable 'ixx' can be declared as const array [constVariable] rgbpaint-0.8.7/src/memory.c:589:13: style: Variable 'posm' can be declared as const array [constVariable] rgbpaint-0.8.7/src/memory.c:761:29: style: Parameter 'pal1' can be declared as pointer to const [constParameterPointer] rgbpaint-0.8.7/src/memory.c:761:46: style: Parameter 'pal2' can be declared as pointer to const [constParameterPointer] rgbpaint-0.8.7/src/memory.c:927:12: style: Variable 'x' can be declared as const array [constVariable] rgbpaint-0.8.7/src/memory.c:927:29: style: Variable 'y' can be declared as const array [constVariable] rgbpaint-0.8.7/src/memory.c:1003:8: style: Variable 'st' can be declared as pointer to const [constVariablePointer] rgbpaint-0.8.7/src/memory.c:1188:17: style: Parameter 'mask0' can be declared as pointer to const [constParameterPointer] rgbpaint-0.8.7/src/memory.c:1216:40: style: Parameter 'alpha0' can be declared as pointer to const [constParameterPointer] rgbpaint-0.8.7/src/memory.c:1216:63: style: Parameter 'alpha' can be declared as pointer to const [constParameterPointer] rgbpaint-0.8.7/src/memory.c:1217:17: style: Parameter 'trans' can be declared as pointer to const [constParameterPointer] rgbpaint-0.8.7/src/memory.c:1270:63: style: Parameter 'mask' can be declared as pointer to const [constParameterPointer] rgbpaint-0.8.7/src/memory.c:1271:38: style: Parameter 'img0' can be declared as pointer to const [constParameterPointer] rgbpaint-0.8.7/src/memory.c:1271:59: style: Parameter 'img' can be declared as pointer to const [constParameterPointer] rgbpaint-0.8.7/src/memory.c:1394:6: style: Variable 'borders' can be declared as const array [constVariable] diff: head rgbpaint-0.8.7/src/mainwindow.c:1584:54: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] head rgbpaint-0.8.7/src/mygtk.c:88:47: style: Parameter 'data' can be declared as pointer to const. However it seems that 'alert_reply' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] rgbpaint-0.8.7/src/mygtk.c:126:5: note: You might need to cast the function pointer here rgbpaint-0.8.7/src/mygtk.c:88:47: note: Parameter 'data' can be declared as pointer to const head rgbpaint-0.8.7/src/toolbar.c:392:74: style: Parameter 'user' can be declared as pointer to const. However it seems that 'toolbar_click_brush' is a callback function, if 'user' is declared with const you might also need to cast function pointer(s). [constParameterCallback] rgbpaint-0.8.7/src/toolbar.c:518:5: note: You might need to cast the function pointer here rgbpaint-0.8.7/src/toolbar.c:392:74: note: Parameter 'user' can be declared as pointer to const head rgbpaint-0.8.7/src/toolbar.c:427:76: style: Parameter 'user' can be declared as pointer to const. However it seems that 'toolbar_click_colours' is a callback function, if 'user' is declared with const you might also need to cast function pointer(s). [constParameterCallback] rgbpaint-0.8.7/src/toolbar.c:557:5: note: You might need to cast the function pointer here rgbpaint-0.8.7/src/toolbar.c:427:76: note: Parameter 'user' can be declared as pointer to const head rgbpaint-0.8.7/src/toolbar.c:594:78: style: Parameter 'user' can be declared as pointer to const. However it seems that 'expose_stamp' is a callback function, if 'user' is declared with const you might also need to cast function pointer(s). [constParameterCallback] rgbpaint-0.8.7/src/toolbar.c:665:4: note: You might need to cast the function pointer here rgbpaint-0.8.7/src/toolbar.c:594:78: note: Parameter 'user' can be declared as pointer to const head rgbpaint-0.8.7/src/toolbar.c:625:50: style: Parameter 'user' can be declared as pointer to const. However it seems that 'pressed_stamp' is a callback function, if 'user' is declared with const you might also need to cast function pointer(s). [constParameterCallback] rgbpaint-0.8.7/src/toolbar.c:663:4: note: You might need to cast the function pointer here rgbpaint-0.8.7/src/toolbar.c:625:50: note: Parameter 'user' can be declared as pointer to const DONE