2025-05-10 20:33 ftp://ftp.de.debian.org/debian/pool/main/g/ghostess/ghostess_20210101.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-59-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.17.0 head-info: beb3362 (2025-05-10 14:33:23 +0200) count: 156 157 elapsed-time: 1.3 1.1 head-timing-info: old-timing-info: head results: ghostess-20210101/src/eyecandy.c:60:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable blinky_parent_class [valueFlowBailoutIncompleteVar] ghostess-20210101/src/eyecandy.c:109:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable blinky_parent_class [valueFlowBailoutIncompleteVar] ghostess-20210101/src/eyecandy.c:143:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_REALIZED [valueFlowBailoutIncompleteVar] ghostess-20210101/src/eyecandy.c:201:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_STATE_NORMAL [valueFlowBailoutIncompleteVar] ghostess-20210101/src/eyecandy.c:100:11: style: Variable 'blinky' can be declared as pointer to const [constVariablePointer] ghostess-20210101/src/eyecandy.c:114:27: style: Parameter 'blinky' can be declared as pointer to const [constParameterPointer] ghostess-20210101/src/eyecandy.c:136:11: style: Variable 'blinky' can be declared as pointer to const [constVariablePointer] ghostess-20210101/src/eyecandy.c:178:11: style: Variable 'blinky' can be declared as pointer to const [constVariablePointer] ghostess-20210101/src/eyecandy.c:105:10: style: Variable 'blinky' is assigned a value that is never used. [unreadVariable] ghostess-20210101/src/eyecandy.c:144:10: style: Variable 'blinky' is assigned a value that is never used. [unreadVariable] ghostess-20210101/src/eyecandy.c:186:12: style: Variable 'blinky' is assigned a value that is never used. [unreadVariable] ghostess-20210101/src/getarg.c:127:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] ghostess-20210101/src/getarg.c:171:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] ghostess-20210101/src/getarg.c:101:5: warning: If memory allocation fails, then there is a possible null pointer dereference: state [nullPointerOutOfMemory] ghostess-20210101/src/getarg.c:100:35: note: Assuming allocation function fails ghostess-20210101/src/getarg.c:100:13: note: Assignment 'state=(struct getarg_state*)calloc(1,sizeof(struct getarg_state))', assigned value is 0 ghostess-20210101/src/getarg.c:101:5: note: Null pointer dereference ghostess-20210101/src/getarg.c:102:5: warning: If memory allocation fails, then there is a possible null pointer dereference: state [nullPointerOutOfMemory] ghostess-20210101/src/getarg.c:100:35: note: Assuming allocation function fails ghostess-20210101/src/getarg.c:100:13: note: Assignment 'state=(struct getarg_state*)calloc(1,sizeof(struct getarg_state))', assigned value is 0 ghostess-20210101/src/getarg.c:102:5: note: Null pointer dereference ghostess-20210101/src/getarg.c:103:5: warning: If memory allocation fails, then there is a possible null pointer dereference: state [nullPointerOutOfMemory] ghostess-20210101/src/getarg.c:100:35: note: Assuming allocation function fails ghostess-20210101/src/getarg.c:100:13: note: Assignment 'state=(struct getarg_state*)calloc(1,sizeof(struct getarg_state))', assigned value is 0 ghostess-20210101/src/getarg.c:103:5: note: Null pointer dereference ghostess-20210101/src/getarg.c:104:5: warning: If memory allocation fails, then there is a possible null pointer dereference: state [nullPointerOutOfMemory] ghostess-20210101/src/getarg.c:100:35: note: Assuming allocation function fails ghostess-20210101/src/getarg.c:100:13: note: Assignment 'state=(struct getarg_state*)calloc(1,sizeof(struct getarg_state))', assigned value is 0 ghostess-20210101/src/getarg.c:104:5: note: Null pointer dereference ghostess-20210101/src/getarg.c:105:5: warning: If memory allocation fails, then there is a possible null pointer dereference: state [nullPointerOutOfMemory] ghostess-20210101/src/getarg.c:100:35: note: Assuming allocation function fails ghostess-20210101/src/getarg.c:100:13: note: Assignment 'state=(struct getarg_state*)calloc(1,sizeof(struct getarg_state))', assigned value is 0 ghostess-20210101/src/getarg.c:105:5: note: Null pointer dereference ghostess-20210101/src/getarg.c:134:5: warning: If memory allocation fails, then there is a possible null pointer dereference: state [nullPointerOutOfMemory] ghostess-20210101/src/getarg.c:133:35: note: Assuming allocation function fails ghostess-20210101/src/getarg.c:133:13: note: Assignment 'state=(struct getarg_state*)calloc(1,sizeof(struct getarg_state))', assigned value is 0 ghostess-20210101/src/getarg.c:134:5: note: Null pointer dereference ghostess-20210101/src/getarg.c:135:5: warning: If memory allocation fails, then there is a possible null pointer dereference: state [nullPointerOutOfMemory] ghostess-20210101/src/getarg.c:133:35: note: Assuming allocation function fails ghostess-20210101/src/getarg.c:133:13: note: Assignment 'state=(struct getarg_state*)calloc(1,sizeof(struct getarg_state))', assigned value is 0 ghostess-20210101/src/getarg.c:135:5: note: Null pointer dereference ghostess-20210101/src/getarg.c:136:5: warning: If memory allocation fails, then there is a possible null pointer dereference: state [nullPointerOutOfMemory] ghostess-20210101/src/getarg.c:133:35: note: Assuming allocation function fails ghostess-20210101/src/getarg.c:133:13: note: Assignment 'state=(struct getarg_state*)calloc(1,sizeof(struct getarg_state))', assigned value is 0 ghostess-20210101/src/getarg.c:136:5: note: Null pointer dereference ghostess-20210101/src/getarg.c:137:5: warning: If memory allocation fails, then there is a possible null pointer dereference: state [nullPointerOutOfMemory] ghostess-20210101/src/getarg.c:133:35: note: Assuming allocation function fails ghostess-20210101/src/getarg.c:133:13: note: Assignment 'state=(struct getarg_state*)calloc(1,sizeof(struct getarg_state))', assigned value is 0 ghostess-20210101/src/getarg.c:137:5: note: Null pointer dereference ghostess-20210101/src/getarg.c:138:5: warning: If memory allocation fails, then there is a possible null pointer dereference: state [nullPointerOutOfMemory] ghostess-20210101/src/getarg.c:133:35: note: Assuming allocation function fails ghostess-20210101/src/getarg.c:133:13: note: Assignment 'state=(struct getarg_state*)calloc(1,sizeof(struct getarg_state))', assigned value is 0 ghostess-20210101/src/getarg.c:138:5: note: Null pointer dereference ghostess-20210101/src/getarg.c:119:24: style: Parameter 'filename' can be declared as pointer to const [constParameterPointer] ghostess-20210101/src/getarg.c:186:13: warning: Storing fgetc() return value in char variable and then comparing with EOF. [checkCastIntToCharAndBack] ghostess-20210101/src/ghostess.c:2278:54: error: There is an unknown macro here somewhere. Configuration is required. If JACK_DEFAULT_AUDIO_TYPE is a macro then please configure it. [unknownMacro] ghostess-20210101/src/gtkknob.c:142:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_UPDATE_CONTINUOUS [valueFlowBailoutIncompleteVar] ghostess-20210101/src/gtkknob.c:174:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable finalize [valueFlowBailoutIncompleteVar] ghostess-20210101/src/gtkknob.c:277:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_REALIZED [valueFlowBailoutIncompleteVar] ghostess-20210101/src/gtkknob.c:447:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_BUTTON1_MASK [valueFlowBailoutIncompleteVar] ghostess-20210101/src/gtkknob.c:469:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_UPDATE_DELAYED [valueFlowBailoutIncompleteVar] ghostess-20210101/src/gtkknob.c:538:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_UPDATE_CONTINUOUS [valueFlowBailoutIncompleteVar] ghostess-20210101/src/gtkknob.c:743:69: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_STATE_NORMAL [valueFlowBailoutIncompleteVar] ghostess-20210101/src/gtkknob.c:105:36: style:inconclusive: Function 'gtk_knob_class_init' argument 1 names different: declaration 'klass' definition 'class'. [funcArgNamesDifferent] ghostess-20210101/src/gtkknob.c:83:55: note: Function 'gtk_knob_class_init' argument 1 names different: declaration 'klass' definition 'class'. ghostess-20210101/src/gtkknob.c:105:36: note: Function 'gtk_knob_class_init' argument 1 names different: declaration 'klass' definition 'class'. ghostess-20210101/src/gtkknob.c:682:29: style:inconclusive: Function 'gtk_knob_expose' argument 1 names different: declaration 'knob' definition 'widget'. [funcArgNamesDifferent] ghostess-20210101/src/gtkknob.c:99:52: note: Function 'gtk_knob_expose' argument 1 names different: declaration 'knob' definition 'widget'. ghostess-20210101/src/gtkknob.c:682:29: note: Function 'gtk_knob_expose' argument 1 names different: declaration 'knob' definition 'widget'. ghostess-20210101/src/gtkknob.c:329:59: style: Parameter 'event' can be declared as pointer to const. However it seems that 'gtk_knob_button_press' is a callback function, if 'event' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ghostess-20210101/src/gtkknob.c:120:40: note: You might need to cast the function pointer here ghostess-20210101/src/gtkknob.c:329:59: note: Parameter 'event' can be declared as pointer to const ghostess-20210101/src/gtkknob.c:365:61: style: Parameter 'event' can be declared as pointer to const. However it seems that 'gtk_knob_button_release' is a callback function, if 'event' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ghostess-20210101/src/gtkknob.c:121:42: note: You might need to cast the function pointer here ghostess-20210101/src/gtkknob.c:365:61: note: Parameter 'event' can be declared as pointer to const ghostess-20210101/src/gtkknob.c:424:60: style: Parameter 'event' can be declared as pointer to const. However it seems that 'gtk_knob_motion_notify' is a callback function, if 'event' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ghostess-20210101/src/gtkknob.c:122:41: note: You might need to cast the function pointer here ghostess-20210101/src/gtkknob.c:424:60: note: Parameter 'event' can be declared as pointer to const ghostess-20210101/src/gtkknob.c:557:44: style: Parameter 'adjustment' can be declared as pointer to const. However it seems that 'gtk_knob_adjustment_changed' is a callback function, if 'adjustment' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ghostess-20210101/src/gtkknob.c:249:5: note: You might need to cast the function pointer here ghostess-20210101/src/gtkknob.c:557:44: note: Parameter 'adjustment' can be declared as pointer to const ghostess-20210101/src/gtkknob.c:572:51: style: Parameter 'adjustment' can be declared as pointer to const. However it seems that 'gtk_knob_adjustment_value_changed' is a callback function, if 'adjustment' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ghostess-20210101/src/gtkknob.c:251:5: note: You might need to cast the function pointer here ghostess-20210101/src/gtkknob.c:572:51: note: Parameter 'adjustment' can be declared as pointer to const ghostess-20210101/src/gtkknob.c:682:53: style: Parameter 'event' can be declared as pointer to const. However it seems that 'gtk_knob_expose' is a callback function, if 'event' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ghostess-20210101/src/gtkknob.c:119:34: note: You might need to cast the function pointer here ghostess-20210101/src/gtkknob.c:682:53: note: Parameter 'event' can be declared as pointer to const ghostess-20210101/src/gui_callbacks.c:181:63: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] ghostess-20210101/src/gui_callbacks.c:199:61: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] ghostess-20210101/src/gui_callbacks.c:215:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable active [valueFlowBailoutIncompleteVar] ghostess-20210101/src/gui_callbacks.c:94:58: style: Parameter 'menuitem' can be declared as pointer to const [constParameterPointer] ghostess-20210101/src/gui_callbacks.c:95:58: style: Parameter 'user_data' can be declared as pointer to const [constParameterPointer] ghostess-20210101/src/gui_callbacks.c:324:22: style: Parameter 'message1' can be declared as pointer to const [constParameterPointer] ghostess-20210101/src/gui_callbacks.c:324:38: style: Parameter 'message2' can be declared as pointer to const [constParameterPointer] ghostess-20210101/src/gui_interface.c:85:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_WINDOW_TOPLEVEL [valueFlowBailoutIncompleteVar] ghostess-20210101/src/gui_interface.c:275:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable type [valueFlowBailoutIncompleteVar] ghostess-20210101/src/gui_interface.c:306:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_WINDOW_TOPLEVEL [valueFlowBailoutIncompleteVar] ghostess-20210101/src/gui_interface.c:352:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_WINDOW_TOPLEVEL [valueFlowBailoutIncompleteVar] ghostess-20210101/src/gui_interface.c:436:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_SHADOW_OUT [valueFlowBailoutIncompleteVar] ghostess-20210101/src/gui_interface.c:90: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] ghostess-20210101/src/gui_interface.c:176:19: 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] ghostess-20210101/src/gui_interface.c:206:5: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] ghostess-20210101/src/gui_interface.c:208:5: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] ghostess-20210101/src/gui_interface.c:212:3: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] ghostess-20210101/src/gui_interface.c:215:3: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] ghostess-20210101/src/gui_interface.c:218:3: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] ghostess-20210101/src/gui_interface.c:221:3: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] ghostess-20210101/src/gui_interface.c:248:5: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] ghostess-20210101/src/gui_interface.c:251:5: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] ghostess-20210101/src/gui_interface.c:254:5: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] ghostess-20210101/src/gui_interface.c:257:5: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] ghostess-20210101/src/gui_interface.c:287:5: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] ghostess-20210101/src/gui_interface.c:289:5: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] ghostess-20210101/src/gui_interface.c:292:5: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] ghostess-20210101/src/gui_interface.c:295:5: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] ghostess-20210101/src/gui_interface.c:310:13: 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] ghostess-20210101/src/gui_interface.c:334:5: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] ghostess-20210101/src/gui_interface.c:336:5: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] ghostess-20210101/src/gui_interface.c:339:5: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] ghostess-20210101/src/gui_interface.c:361: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] ghostess-20210101/src/gui_interface.c:386: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] ghostess-20210101/src/gui_interface.c:401:5: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] ghostess-20210101/src/gui_interface.c:403:5: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] ghostess-20210101/src/gui_interface.c:406:5: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] ghostess-20210101/src/gui_interface.c:438: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] ghostess-20210101/src/gui_interface.c:445:13: 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] ghostess-20210101/src/gui_interface.c:481: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] ghostess-20210101/src/gui_interface.c:504:5: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] ghostess-20210101/src/gui_interface.c:507:5: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] ghostess-20210101/src/gui_interface.c:428:5: warning: If memory allocation fails, then there is a possible null pointer dereference: ps [nullPointerOutOfMemory] ghostess-20210101/src/gui_interface.c:414:46: note: Assuming allocation function fails ghostess-20210101/src/gui_interface.c:414:24: note: Assignment 'ps=(struct plugin_strip*)calloc(1,sizeof(struct plugin_strip))', assigned value is 0 ghostess-20210101/src/gui_interface.c:428:5: note: Null pointer dereference ghostess-20210101/src/gui_interface.c:430:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ps [nullPointerOutOfMemory] ghostess-20210101/src/gui_interface.c:414:46: note: Assuming allocation function fails ghostess-20210101/src/gui_interface.c:414:24: note: Assignment 'ps=(struct plugin_strip*)calloc(1,sizeof(struct plugin_strip))', assigned value is 0 ghostess-20210101/src/gui_interface.c:430:3: note: Null pointer dereference ghostess-20210101/src/gui_interface.c:431:19: warning: If memory allocation fails, then there is a possible null pointer dereference: ps [nullPointerOutOfMemory] ghostess-20210101/src/gui_interface.c:414:46: note: Assuming allocation function fails ghostess-20210101/src/gui_interface.c:414:24: note: Assignment 'ps=(struct plugin_strip*)calloc(1,sizeof(struct plugin_strip))', assigned value is 0 ghostess-20210101/src/gui_interface.c:431:19: note: Null pointer dereference ghostess-20210101/src/gui_interface.c:432:67: warning: If memory allocation fails, then there is a possible null pointer dereference: ps [nullPointerOutOfMemory] ghostess-20210101/src/gui_interface.c:414:46: note: Assuming allocation function fails ghostess-20210101/src/gui_interface.c:414:24: note: Assignment 'ps=(struct plugin_strip*)calloc(1,sizeof(struct plugin_strip))', assigned value is 0 ghostess-20210101/src/gui_interface.c:432:67: note: Null pointer dereference ghostess-20210101/src/gui_interface.c:434:20: warning: If memory allocation fails, then there is a possible null pointer dereference: ps [nullPointerOutOfMemory] ghostess-20210101/src/gui_interface.c:414:46: note: Assuming allocation function fails ghostess-20210101/src/gui_interface.c:414:24: note: Assignment 'ps=(struct plugin_strip*)calloc(1,sizeof(struct plugin_strip))', assigned value is 0 ghostess-20210101/src/gui_interface.c:434:20: note: Null pointer dereference ghostess-20210101/src/gui_interface.c:435:35: warning: If memory allocation fails, then there is a possible null pointer dereference: ps [nullPointerOutOfMemory] ghostess-20210101/src/gui_interface.c:414:46: note: Assuming allocation function fails ghostess-20210101/src/gui_interface.c:414:24: note: Assignment 'ps=(struct plugin_strip*)calloc(1,sizeof(struct plugin_strip))', assigned value is 0 ghostess-20210101/src/gui_interface.c:435:35: note: Null pointer dereference ghostess-20210101/src/gui_interface.c:436:41: warning: If memory allocation fails, then there is a possible null pointer dereference: ps [nullPointerOutOfMemory] ghostess-20210101/src/gui_interface.c:414:46: note: Assuming allocation function fails ghostess-20210101/src/gui_interface.c:414:24: note: Assignment 'ps=(struct plugin_strip*)calloc(1,sizeof(struct plugin_strip))', assigned value is 0 ghostess-20210101/src/gui_interface.c:436:41: note: Null pointer dereference ghostess-20210101/src/gui_interface.c:443:22: warning: If memory allocation fails, then there is a possible null pointer dereference: ps [nullPointerOutOfMemory] ghostess-20210101/src/gui_interface.c:414:46: note: Assuming allocation function fails ghostess-20210101/src/gui_interface.c:414:24: note: Assignment 'ps=(struct plugin_strip*)calloc(1,sizeof(struct plugin_strip))', assigned value is 0 ghostess-20210101/src/gui_interface.c:443:22: note: Null pointer dereference ghostess-20210101/src/gui_interface.c:452:5: warning: If memory allocation fails, then there is a possible null pointer dereference: ps [nullPointerOutOfMemory] ghostess-20210101/src/gui_interface.c:414:46: note: Assuming allocation function fails ghostess-20210101/src/gui_interface.c:414:24: note: Assignment 'ps=(struct plugin_strip*)calloc(1,sizeof(struct plugin_strip))', assigned value is 0 ghostess-20210101/src/gui_interface.c:452:5: note: Null pointer dereference ghostess-20210101/src/gui_interface.c:453:21: warning: If memory allocation fails, then there is a possible null pointer dereference: ps [nullPointerOutOfMemory] ghostess-20210101/src/gui_interface.c:414:46: note: Assuming allocation function fails ghostess-20210101/src/gui_interface.c:414:24: note: Assignment 'ps=(struct plugin_strip*)calloc(1,sizeof(struct plugin_strip))', assigned value is 0 ghostess-20210101/src/gui_interface.c:453:21: note: Null pointer dereference ghostess-20210101/src/gui_interface.c:454:74: warning: If memory allocation fails, then there is a possible null pointer dereference: ps [nullPointerOutOfMemory] ghostess-20210101/src/gui_interface.c:414:46: note: Assuming allocation function fails ghostess-20210101/src/gui_interface.c:414:24: note: Assignment 'ps=(struct plugin_strip*)calloc(1,sizeof(struct plugin_strip))', assigned value is 0 ghostess-20210101/src/gui_interface.c:454:74: note: Null pointer dereference ghostess-20210101/src/gui_interface.c:456:22: warning: If memory allocation fails, then there is a possible null pointer dereference: ps [nullPointerOutOfMemory] ghostess-20210101/src/gui_interface.c:414:46: note: Assuming allocation function fails ghostess-20210101/src/gui_interface.c:414:24: note: Assignment 'ps=(struct plugin_strip*)calloc(1,sizeof(struct plugin_strip))', assigned value is 0 ghostess-20210101/src/gui_interface.c:456:22: note: Null pointer dereference ghostess-20210101/src/gui_interface.c:457:42: warning: If memory allocation fails, then there is a possible null pointer dereference: ps [nullPointerOutOfMemory] ghostess-20210101/src/gui_interface.c:414:46: note: Assuming allocation function fails ghostess-20210101/src/gui_interface.c:414:24: note: Assignment 'ps=(struct plugin_strip*)calloc(1,sizeof(struct plugin_strip))', assigned value is 0 ghostess-20210101/src/gui_interface.c:457:42: note: Null pointer dereference ghostess-20210101/src/gui_interface.c:459:5: warning: If memory allocation fails, then there is a possible null pointer dereference: ps [nullPointerOutOfMemory] ghostess-20210101/src/gui_interface.c:414:46: note: Assuming allocation function fails ghostess-20210101/src/gui_interface.c:414:24: note: Assignment 'ps=(struct plugin_strip*)calloc(1,sizeof(struct plugin_strip))', assigned value is 0 ghostess-20210101/src/gui_interface.c:459:5: note: Null pointer dereference ghostess-20210101/src/gui_interface.c:498:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ps [nullPointerOutOfMemory] ghostess-20210101/src/gui_interface.c:414:46: note: Assuming allocation function fails ghostess-20210101/src/gui_interface.c:414:24: note: Assignment 'ps=(struct plugin_strip*)calloc(1,sizeof(struct plugin_strip))', assigned value is 0 ghostess-20210101/src/gui_interface.c:498:3: note: Null pointer dereference ghostess-20210101/src/gui_interface.c:499:19: warning: If memory allocation fails, then there is a possible null pointer dereference: ps [nullPointerOutOfMemory] ghostess-20210101/src/gui_interface.c:414:46: note: Assuming allocation function fails ghostess-20210101/src/gui_interface.c:414:24: note: Assignment 'ps=(struct plugin_strip*)calloc(1,sizeof(struct plugin_strip))', assigned value is 0 ghostess-20210101/src/gui_interface.c:499:19: note: Null pointer dereference ghostess-20210101/src/gui_interface.c:500:70: warning: If memory allocation fails, then there is a possible null pointer dereference: ps [nullPointerOutOfMemory] ghostess-20210101/src/gui_interface.c:414:46: note: Assuming allocation function fails ghostess-20210101/src/gui_interface.c:414:24: note: Assignment 'ps=(struct plugin_strip*)calloc(1,sizeof(struct plugin_strip))', assigned value is 0 ghostess-20210101/src/gui_interface.c:500:70: note: Null pointer dereference ghostess-20210101/src/gui_interface.c:502:20: warning: If memory allocation fails, then there is a possible null pointer dereference: ps [nullPointerOutOfMemory] ghostess-20210101/src/gui_interface.c:414:46: note: Assuming allocation function fails ghostess-20210101/src/gui_interface.c:414:24: note: Assignment 'ps=(struct plugin_strip*)calloc(1,sizeof(struct plugin_strip))', assigned value is 0 ghostess-20210101/src/gui_interface.c:502:20: note: Null pointer dereference ghostess-20210101/src/gui_interface.c:503:38: warning: If memory allocation fails, then there is a possible null pointer dereference: ps [nullPointerOutOfMemory] ghostess-20210101/src/gui_interface.c:414:46: note: Assuming allocation function fails ghostess-20210101/src/gui_interface.c:414:24: note: Assignment 'ps=(struct plugin_strip*)calloc(1,sizeof(struct plugin_strip))', assigned value is 0 ghostess-20210101/src/gui_interface.c:503:38: note: Null pointer dereference ghostess-20210101/src/gui_interface.c:504:25: warning: If memory allocation fails, then there is a possible null pointer dereference: ps [nullPointerOutOfMemory] ghostess-20210101/src/gui_interface.c:414:46: note: Assuming allocation function fails ghostess-20210101/src/gui_interface.c:414:24: note: Assignment 'ps=(struct plugin_strip*)calloc(1,sizeof(struct plugin_strip))', assigned value is 0 ghostess-20210101/src/gui_interface.c:504:25: note: Null pointer dereference ghostess-20210101/src/midi-alsa.c:52:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SND_SEQ_OPEN_DUPLEX [valueFlowBailoutIncompleteVar] ghostess-20210101/src/midi-alsa.c:87:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SCHED_FIFO [valueFlowBailoutIncompleteVar] ghostess-20210101/src/midi-alsa.c:103:17: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] ghostess-20210101/src/midi-coremidi.c:100:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SND_SEQ_EVENT_NOTEOFF [valueFlowBailoutIncompleteVar] ghostess-20210101/src/midi-coremidi.c:173:28: style: Parameter 'arg' can be declared as pointer to const [constParameterPointer] ghostess-20210101/src/midi-jack.c:33:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable jack_midi_input_port [valueFlowBailoutIncompleteVar] ghostess-20210101/src/universal_gui.c:130:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ghostess-20210101/src/universal_gui.c:166:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable i [valueFlowBailoutIncompleteVar] ghostess-20210101/src/universal_gui.c:189:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable s [valueFlowBailoutIncompleteVar] ghostess-20210101/src/universal_gui.c:208:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable i [valueFlowBailoutIncompleteVar] ghostess-20210101/src/universal_gui.c:234:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable i [valueFlowBailoutIncompleteVar] ghostess-20210101/src/universal_gui.c:301:67: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value [valueFlowBailoutIncompleteVar] ghostess-20210101/src/universal_gui.c:329:58: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value [valueFlowBailoutIncompleteVar] ghostess-20210101/src/universal_gui.c:400:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable active [valueFlowBailoutIncompleteVar] ghostess-20210101/src/universal_gui.c:412:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value [valueFlowBailoutIncompleteVar] ghostess-20210101/src/universal_gui.c:423:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value [valueFlowBailoutIncompleteVar] ghostess-20210101/src/universal_gui.c:453:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value [valueFlowBailoutIncompleteVar] ghostess-20210101/src/universal_gui.c:579:70: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HintDescriptor [valueFlowBailoutIncompleteVar] ghostess-20210101/src/universal_gui.c:682:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_WINDOW_TOPLEVEL [valueFlowBailoutIncompleteVar] ghostess-20210101/src/universal_gui.c:1268:71: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DSSI_Descriptor [valueFlowBailoutIncompleteVar] ghostess-20210101/src/universal_gui.c:1305:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ghostess-20210101/src/universal_gui.c:687:5: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] ghostess-20210101/src/universal_gui.c:689:5: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] ghostess-20210101/src/universal_gui.c:693:13: 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] ghostess-20210101/src/universal_gui.c:757:24: 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] ghostess-20210101/src/universal_gui.c:783:9: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] ghostess-20210101/src/universal_gui.c:806:9: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] ghostess-20210101/src/universal_gui.c:903:9: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] ghostess-20210101/src/universal_gui.c:915:9: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] ghostess-20210101/src/universal_gui.c:918:9: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] ghostess-20210101/src/universal_gui.c:927:9: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] ghostess-20210101/src/universal_gui.c:942:9: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] ghostess-20210101/src/universal_gui.c:957:9: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] ghostess-20210101/src/universal_gui.c:1094:13: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] ghostess-20210101/src/universal_gui.c:1120:13: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] ghostess-20210101/src/universal_gui.c:1145:13: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] ghostess-20210101/src/universal_gui.c:1269:10: warning: If memory allocation fails, then there is a possible null pointer dereference: (DSSI_Descriptor*)plugin_descriptor [nullPointerOutOfMemory] ghostess-20210101/src/universal_gui.c:1268:60: note: Assuming allocation function fails ghostess-20210101/src/universal_gui.c:1268:29: note: Assignment 'plugin_descriptor=(const DSSI_Descriptor*)calloc(1,sizeof(DSSI_Descriptor))', assigned value is 0 ghostess-20210101/src/universal_gui.c:1269:10: note: Null pointer dereference ghostess-20210101/src/universal_gui.c:1230:9: style:inconclusive: Found duplicate branches for 'if' and 'else'. [duplicateBranch] ghostess-20210101/src/universal_gui.c:1232:11: note: Found duplicate branches for 'if' and 'else'. ghostess-20210101/src/universal_gui.c:1230:9: note: Found duplicate branches for 'if' and 'else'. ghostess-20210101/src/universal_gui.c:671:16: style: Local variable 'test_note_velocity' shadows outer variable [shadowVariable] ghostess-20210101/src/universal_gui.c:76:15: note: Shadowed declaration ghostess-20210101/src/universal_gui.c:671:16: note: Shadow variable ghostess-20210101/src/universal_gui.c:101:22: style: Parameter 'base_path' can be declared as pointer to const [constParameterPointer] ghostess-20210101/src/universal_gui.c:101:39: style: Parameter 'method' can be declared as pointer to const [constParameterPointer] ghostess-20210101/src/universal_gui.c:179:51: style: Parameter 'user_data' can be declared as pointer to const. However it seems that 'osc_configure_handler' is a callback function, if 'user_data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ghostess-20210101/src/universal_gui.c:1341:64: note: You might need to cast the function pointer here ghostess-20210101/src/universal_gui.c:179:51: note: Parameter 'user_data' can be declared as pointer to const ghostess-20210101/src/universal_gui.c:181:11: style: Variable 'key' can be declared as pointer to const [constVariablePointer] ghostess-20210101/src/universal_gui.c:181:17: style: Variable 'value' can be declared as pointer to const [constVariablePointer] ghostess-20210101/src/universal_gui.c:198:51: style: Parameter 'user_data' can be declared as pointer to const. However it seems that 'osc_control_handler' is a callback function, if 'user_data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ghostess-20210101/src/universal_gui.c:1342:62: note: You might need to cast the function pointer here ghostess-20210101/src/universal_gui.c:198:51: note: Parameter 'user_data' can be declared as pointer to const ghostess-20210101/src/universal_gui.c:220:51: style: Parameter 'user_data' can be declared as pointer to const. However it seems that 'osc_program_handler' is a callback function, if 'user_data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ghostess-20210101/src/universal_gui.c:1344:62: note: You might need to cast the function pointer here ghostess-20210101/src/universal_gui.c:220:51: note: Parameter 'user_data' can be declared as pointer to const ghostess-20210101/src/universal_gui.c:327:39: style: Parameter 'widget' can be declared as pointer to const. However it seems that 'on_test_note_slider_change' is a callback function, if 'widget' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ghostess-20210101/src/universal_gui.c:958:46: note: You might need to cast the function pointer here ghostess-20210101/src/universal_gui.c:327:39: note: Parameter 'widget' can be declared as pointer to const ghostess-20210101/src/universal_gui.c:409:33: style: Parameter 'widget' can be declared as pointer to const. However it seems that 'on_port_spin_changed' is a callback function, if 'widget' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ghostess-20210101/src/universal_gui.c:1121:33: note: You might need to cast the function pointer here ghostess-20210101/src/universal_gui.c:409:33: note: Parameter 'widget' can be declared as pointer to const ghostess-20210101/src/universal_gui.c:653:21: style: Variable 'tmp' can be declared as pointer to const [constVariablePointer] ghostess-20210101/src/universal_gui.c:1211:15: style: Parameter 'ui_path' can be declared as pointer to const [constParameterPointer] ghostess-20210101/src/universal_gui.c:1211:44: style: Parameter 'label' can be declared as pointer to const [constParameterPointer] ghostess-20210101/src/universal_gui.c:188:11: style: Variable 'key' is assigned a value that is never used. [unreadVariable] ghostess-20210101/src/universal_gui.c:189:11: style: Variable 'value' is assigned a value that is never used. [unreadVariable] diff: 2.17.0 ghostess-20210101/src/universal_gui.c:1222:42: warning: If memory allocation fails, then there is a possible null pointer dereference: uidir [nullPointerOutOfMemory] ghostess-20210101/src/universal_gui.c:1221:41: note: Assuming allocation function fails ghostess-20210101/src/universal_gui.c:1221:41: note: Assignment 'uidir=g_path_get_dirname(ui_path)', assigned value is 0 ghostess-20210101/src/universal_gui.c:1222:42: note: Null pointer dereference DONE