2025-05-10 19:44 ftp://ftp.de.debian.org/debian/pool/main/g/gdigi/gdigi_0.4.0+git20200615+1c2c89f.orig.tar.xz 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 -j3 platform: Linux-6.8.0-1022-oracle-aarch64-with-glibc2.39 python: 3.12.3 client-version: 1.3.67 compiler: g++ (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0 cppcheck: head 2.17.0 head-info: beb3362 (2025-05-10 14:33:23 +0200) count: 103 124 elapsed-time: 1.0 1.1 head-timing-info: old-timing-info: head results: gdigi-0.4.0+git20200615+1c2c89f/gdigi.c:95:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] gdigi-0.4.0+git20200615+1c2c89f/gdigi.c:148:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] gdigi-0.4.0+git20200615+1c2c89f/gdigi.c:251:58: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SND_RAWMIDI_SYNC [valueFlowBailoutIncompleteVar] gdigi-0.4.0+git20200615+1c2c89f/gdigi.c:582:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable pollfd [valueFlowBailoutIncompleteVar] gdigi-0.4.0+git20200615+1c2c89f/gdigi.c:1248:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable next [valueFlowBailoutIncompleteVar] gdigi-0.4.0+git20200615+1c2c89f/gdigi.c:631:27: style: Array index 'i' is used before limits check. [arrayIndexThenCheck] gdigi-0.4.0+git20200615+1c2c89f/gdigi.c:719:17: warning: Return value of function g_queue_pop_nth() is not used. [ignoredReturnValue] gdigi-0.4.0+git20200615+1c2c89f/gdigi.c:1140:17: warning: Return value of function g_queue_pop_nth() is not used. [ignoredReturnValue] gdigi-0.4.0+git20200615+1c2c89f/gdigi.c:582:12: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] gdigi-0.4.0+git20200615+1c2c89f/gdigi.c:147:13: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gdigi-0.4.0+git20200615+1c2c89f/gdigi.c:147:13: warning: %d in format string (no. 4) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gdigi-0.4.0+git20200615+1c2c89f/gdigi.c:147:13: warning: %d in format string (no. 5) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gdigi-0.4.0+git20200615+1c2c89f/gdigi.c:190:9: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gdigi-0.4.0+git20200615+1c2c89f/gdigi.c:190:9: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gdigi-0.4.0+git20200615+1c2c89f/gdigi.c:193:9: error: Memory leak: vec_buf [memleak] gdigi-0.4.0+git20200615+1c2c89f/gdigi.c:600:13: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] gdigi-0.4.0+git20200615+1c2c89f/gdigi.c:604:13: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] gdigi-0.4.0+git20200615+1c2c89f/gdigi.c:616:13: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] gdigi-0.4.0+git20200615+1c2c89f/gdigi.c:1161:21: style: Statements following noreturn function 'g_error()' will never be executed. [unreachableCode] gdigi-0.4.0+git20200615+1c2c89f/gdigi.c:42:34: style:inconclusive: Function 'debug_flag_is_set' argument 1 names different: declaration 'flag' definition 'flags'. [funcArgNamesDifferent] gdigi-0.4.0+git20200615+1c2c89f/gdigi.h:36:43: note: Function 'debug_flag_is_set' argument 1 names different: declaration 'flag' definition 'flags'. gdigi-0.4.0+git20200615+1c2c89f/gdigi.c:42:34: note: Function 'debug_flag_is_set' argument 1 names different: declaration 'flag' definition 'flags'. gdigi-0.4.0+git20200615+1c2c89f/gdigi.c:504:26: style: Local variable 'x' shadows outer variable [shadowVariable] gdigi-0.4.0+git20200615+1c2c89f/gdigi.c:403:9: note: Shadowed declaration gdigi-0.4.0+git20200615+1c2c89f/gdigi.c:504:26: note: Shadow variable gdigi-0.4.0+git20200615+1c2c89f/gdigi.c:1224:24: style: Local variable 'output' shadows outer variable [shadowVariable] gdigi-0.4.0+git20200615+1c2c89f/gdigi.c:31:23: note: Shadowed declaration gdigi-0.4.0+git20200615+1c2c89f/gdigi.c:1224:24: note: Shadow variable gdigi-0.4.0+git20200615+1c2c89f/gdigi.c:51:36: style: Parameter 'data' can be declared as pointer to const. However it seems that 'set_debug_flags' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gdigi-0.4.0+git20200615+1c2c89f/gdigi.c:1427:80: note: You might need to cast the function pointer here gdigi-0.4.0+git20200615+1c2c89f/gdigi.c:51:36: note: Parameter 'data' can be declared as pointer to const gdigi-0.4.0+git20200615+1c2c89f/gdigi.c:230:39: style: Parameter 'array' can be declared as pointer to const [constParameterPointer] gdigi-0.4.0+git20200615+1c2c89f/gdigi.c:287:27: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] gdigi-0.4.0+git20200615+1c2c89f/gdigi.c:572:37: style: Parameter 'stop' can be declared as pointer to const. However it seems that 'read_data_thread' is a callback function, if 'stop' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gdigi-0.4.0+git20200615+1c2c89f/gdigi.c:1531:52: note: You might need to cast the function pointer here gdigi-0.4.0+git20200615+1c2c89f/gdigi.c:572:37: note: Parameter 'stop' can be declared as pointer to const gdigi-0.4.0+git20200615+1c2c89f/gdigi.c:776:27: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] gdigi-0.4.0+git20200615+1c2c89f/gdigi.c:971:25: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] gdigi-0.4.0+git20200615+1c2c89f/gdigi.c:1007:23: style: Variable 'param' can be declared as pointer to const [constVariablePointer] gdigi-0.4.0+git20200615+1c2c89f/gdigi.c:1065:36: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] gdigi-0.4.0+git20200615+1c2c89f/gdigi.c:1500:16: style: Variable 'device' can be declared as pointer to const [constVariablePointer] gdigi-0.4.0+git20200615+1c2c89f/gdigi.c:338:7: style: Variable 'x' is assigned a value that is never used. [unreadVariable] gdigi-0.4.0+git20200615+1c2c89f/gdigi.c:538:17: style: Variable 'tot' is assigned a value that is never used. [unreadVariable] gdigi-0.4.0+git20200615+1c2c89f/effects.c:4571:5: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gdigi-0.4.0+git20200615+1c2c89f/effects.c:4571:5: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gdigi-0.4.0+git20200615+1c2c89f/effects.c:4701:30: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gdigi-0.4.0+git20200615+1c2c89f/effects.c:4701:30: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gdigi-0.4.0+git20200615+1c2c89f/gui.c:119:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_DIALOG_MODAL [valueFlowBailoutIncompleteVar] gdigi-0.4.0+git20200615+1c2c89f/gui.c:536:68: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_UPDATE_IF_VALID [valueFlowBailoutIncompleteVar] gdigi-0.4.0+git20200615+1c2c89f/gui.c:1086:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_DIALOG_DESTROY_WITH_PARENT [valueFlowBailoutIncompleteVar] gdigi-0.4.0+git20200615+1c2c89f/gui.c:1229:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_FILE_CHOOSER_ACTION_OPEN [valueFlowBailoutIncompleteVar] gdigi-0.4.0+git20200615+1c2c89f/gui.c:1369:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_FILE_CHOOSER_ACTION_SAVE [valueFlowBailoutIncompleteVar] gdigi-0.4.0+git20200615+1c2c89f/gui.c:1546:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_WINDOW_TOPLEVEL [valueFlowBailoutIncompleteVar] gdigi-0.4.0+git20200615+1c2c89f/gui.c:1638:60: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_RESPONSE_CANCEL [valueFlowBailoutIncompleteVar] gdigi-0.4.0+git20200615+1c2c89f/gui.c:1691:60: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_RESPONSE_CANCEL [valueFlowBailoutIncompleteVar] gdigi-0.4.0+git20200615+1c2c89f/preset.c:242:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XML_TRUE [valueFlowBailoutIncompleteVar] gdigi-0.4.0+git20200615+1c2c89f/preset.c:301:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable next [valueFlowBailoutIncompleteVar] gdigi-0.4.0+git20200615+1c2c89f/preset.c:301:15: style: Variable 'iter' is reassigned a value before the old one has been used. [redundantAssignment] gdigi-0.4.0+git20200615+1c2c89f/preset.c:300:10: note: iter is assigned gdigi-0.4.0+git20200615+1c2c89f/preset.c:301:15: note: iter is overwritten gdigi-0.4.0+git20200615+1c2c89f/preset.c:191:29: style: Local variable 'data' shadows outer argument [shadowArgument] gdigi-0.4.0+git20200615+1c2c89f/preset.c:110:35: note: Shadowed declaration gdigi-0.4.0+git20200615+1c2c89f/preset.c:191:29: note: Shadow variable gdigi-0.4.0+git20200615+1c2c89f/preset.c:216:44: style: Parameter 'filename' can be declared as pointer to const [constParameterPointer] gdigi-0.4.0+git20200615+1c2c89f/gui.c:866:9: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gdigi-0.4.0+git20200615+1c2c89f/gui.c:866:9: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gdigi-0.4.0+git20200615+1c2c89f/gui.c:769:19: style: Variable 'child' is reassigned a value before the old one has been used. [redundantAssignment] gdigi-0.4.0+git20200615+1c2c89f/gui.c:768:19: note: child is assigned gdigi-0.4.0+git20200615+1c2c89f/gui.c:769:19: note: child is overwritten gdigi-0.4.0+git20200615+1c2c89f/gui.c:136:61: style: Parameter 'values' can be declared as pointer to const [constParameterPointer] gdigi-0.4.0+git20200615+1c2c89f/gui.c:184:20: style: Variable 'tmp' can be declared as pointer to const [constVariablePointer] gdigi-0.4.0+git20200615+1c2c89f/gui.c:297:45: style: Parameter 'adj' can be declared as pointer to const. However it seems that 'value_changed_option_cb' is a callback function, if 'adj' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gdigi-0.4.0+git20200615+1c2c89f/gui.c:555:9: note: You might need to cast the function pointer here gdigi-0.4.0+git20200615+1c2c89f/gui.c:297:45: note: Parameter 'adj' can be declared as pointer to const gdigi-0.4.0+git20200615+1c2c89f/gui.c:297:66: style: Parameter 'setting' can be declared as pointer to const. However it seems that 'value_changed_option_cb' is a callback function, if 'setting' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gdigi-0.4.0+git20200615+1c2c89f/gui.c:555:9: note: You might need to cast the function pointer here gdigi-0.4.0+git20200615+1c2c89f/gui.c:297:66: note: Parameter 'setting' can be declared as pointer to const gdigi-0.4.0+git20200615+1c2c89f/gui.c:314:50: style: Parameter 'effect' can be declared as pointer to const. However it seems that 'toggled_cb' is a callback function, if 'effect' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gdigi-0.4.0+git20200615+1c2c89f/gui.c:580:5: note: You might need to cast the function pointer here gdigi-0.4.0+git20200615+1c2c89f/gui.c:314:50: note: Parameter 'effect' can be declared as pointer to const gdigi-0.4.0+git20200615+1c2c89f/gui.c:411:12: style: Variable 'iter' can be declared as pointer to const [constVariablePointer] gdigi-0.4.0+git20200615+1c2c89f/gui.c:440:47: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] gdigi-0.4.0+git20200615+1c2c89f/gui.c:1078:64: style: Parameter 'default_name' can be declared as pointer to const [constParameterPointer] gdigi-0.4.0+git20200615+1c2c89f/gui.c:1515:85: style: Parameter 'data' can be declared as pointer to const. However it seems that 'widget_tree_key_compare_func' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gdigi-0.4.0+git20200615+1c2c89f/gui.c:1572:35: note: You might need to cast the function pointer here gdigi-0.4.0+git20200615+1c2c89f/gui.c:1515:85: note: Parameter 'data' can be declared as pointer to const gdigi-0.4.0+git20200615+1c2c89f/gui.c:1681:35: style: Parameter 'devices' can be declared as pointer to const [constParameterPointer] gdigi-0.4.0+git20200615+1c2c89f/gui.c:453:14: style: Variable 'id' is assigned a value that is never used. [unreadVariable] gdigi-0.4.0+git20200615+1c2c89f/gui.c:454:15: style: Variable 'pos' is assigned a value that is never used. [unreadVariable] gdigi-0.4.0+git20200615+1c2c89f/preset_xml.c:128:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BAD_CAST [valueFlowBailoutIncompleteVar] gdigi-0.4.0+git20200615+1c2c89f/preset_xml.c:149:13: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gdigi-0.4.0+git20200615+1c2c89f/preset_xml.c:149:13: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gdigi-0.4.0+git20200615+1c2c89f/preset_xml.c:128:8: style: Variable 'rc' is reassigned a value before the old one has been used. [redundantAssignment] gdigi-0.4.0+git20200615+1c2c89f/preset_xml.c:127:8: note: rc is assigned gdigi-0.4.0+git20200615+1c2c89f/preset_xml.c:128:8: note: rc is overwritten gdigi-0.4.0+git20200615+1c2c89f/preset_xml.c:130:8: style: Variable 'rc' is reassigned a value before the old one has been used. [redundantAssignment] gdigi-0.4.0+git20200615+1c2c89f/preset_xml.c:128:8: note: rc is assigned gdigi-0.4.0+git20200615+1c2c89f/preset_xml.c:130:8: note: rc is overwritten gdigi-0.4.0+git20200615+1c2c89f/preset_xml.c:132:8: style: Variable 'rc' is reassigned a value before the old one has been used. [redundantAssignment] gdigi-0.4.0+git20200615+1c2c89f/preset_xml.c:130:8: note: rc is assigned gdigi-0.4.0+git20200615+1c2c89f/preset_xml.c:132:8: note: rc is overwritten gdigi-0.4.0+git20200615+1c2c89f/preset_xml.c:136:8: style: Variable 'rc' is reassigned a value before the old one has been used. [redundantAssignment] gdigi-0.4.0+git20200615+1c2c89f/preset_xml.c:132:8: note: rc is assigned gdigi-0.4.0+git20200615+1c2c89f/preset_xml.c:136:8: note: rc is overwritten gdigi-0.4.0+git20200615+1c2c89f/preset_xml.c:140:8: style: Variable 'rc' is reassigned a value before the old one has been used. [redundantAssignment] gdigi-0.4.0+git20200615+1c2c89f/preset_xml.c:136:8: note: rc is assigned gdigi-0.4.0+git20200615+1c2c89f/preset_xml.c:140:8: note: rc is overwritten gdigi-0.4.0+git20200615+1c2c89f/preset_xml.c:142:8: style: Variable 'rc' is reassigned a value before the old one has been used. [redundantAssignment] gdigi-0.4.0+git20200615+1c2c89f/preset_xml.c:140:8: note: rc is assigned gdigi-0.4.0+git20200615+1c2c89f/preset_xml.c:142:8: note: rc is overwritten gdigi-0.4.0+git20200615+1c2c89f/preset_xml.c:157:12: style: Variable 'rc' is reassigned a value before the old one has been used. [redundantAssignment] gdigi-0.4.0+git20200615+1c2c89f/preset_xml.c:155:12: note: rc is assigned gdigi-0.4.0+git20200615+1c2c89f/preset_xml.c:157:12: note: rc is overwritten gdigi-0.4.0+git20200615+1c2c89f/preset_xml.c:159:12: style: Variable 'rc' is reassigned a value before the old one has been used. [redundantAssignment] gdigi-0.4.0+git20200615+1c2c89f/preset_xml.c:157:12: note: rc is assigned gdigi-0.4.0+git20200615+1c2c89f/preset_xml.c:159:12: note: rc is overwritten gdigi-0.4.0+git20200615+1c2c89f/preset_xml.c:161:12: style: Variable 'rc' is reassigned a value before the old one has been used. [redundantAssignment] gdigi-0.4.0+git20200615+1c2c89f/preset_xml.c:159:12: note: rc is assigned gdigi-0.4.0+git20200615+1c2c89f/preset_xml.c:161:12: note: rc is overwritten gdigi-0.4.0+git20200615+1c2c89f/preset_xml.c:248:12: style: Variable 'rc' is reassigned a value before the old one has been used. 'break;' missing? [redundantAssignInSwitch] gdigi-0.4.0+git20200615+1c2c89f/preset_xml.c:161:12: note: $symbol is assigned gdigi-0.4.0+git20200615+1c2c89f/preset_xml.c:248:12: note: $symbol is overwritten gdigi-0.4.0+git20200615+1c2c89f/preset_xml.c:248:12: style: Variable 'rc' is reassigned a value before the old one has been used. [redundantAssignment] gdigi-0.4.0+git20200615+1c2c89f/preset_xml.c:218:20: note: rc is assigned gdigi-0.4.0+git20200615+1c2c89f/preset_xml.c:248:12: note: rc is overwritten gdigi-0.4.0+git20200615+1c2c89f/preset_xml.c:248:12: style: Variable 'rc' is reassigned a value before the old one has been used. [redundantAssignment] gdigi-0.4.0+git20200615+1c2c89f/preset_xml.c:227:24: note: rc is assigned gdigi-0.4.0+git20200615+1c2c89f/preset_xml.c:248:12: note: rc is overwritten gdigi-0.4.0+git20200615+1c2c89f/preset_xml.c:248:12: style: Variable 'rc' is reassigned a value before the old one has been used. [redundantAssignment] gdigi-0.4.0+git20200615+1c2c89f/preset_xml.c:231:24: note: rc is assigned gdigi-0.4.0+git20200615+1c2c89f/preset_xml.c:248:12: note: rc is overwritten gdigi-0.4.0+git20200615+1c2c89f/preset_xml.c:239:20: style: Variable 'rc' is reassigned a value before the old one has been used. [redundantAssignment] gdigi-0.4.0+git20200615+1c2c89f/preset_xml.c:238:20: note: rc is assigned gdigi-0.4.0+git20200615+1c2c89f/preset_xml.c:239:20: note: rc is overwritten gdigi-0.4.0+git20200615+1c2c89f/preset_xml.c:248:12: style: Variable 'rc' is reassigned a value before the old one has been used. [redundantAssignment] gdigi-0.4.0+git20200615+1c2c89f/preset_xml.c:239:20: note: rc is assigned gdigi-0.4.0+git20200615+1c2c89f/preset_xml.c:248:12: note: rc is overwritten gdigi-0.4.0+git20200615+1c2c89f/preset_xml.c:56:48: style: Parameter 'values' can be declared as pointer to const [constParameterPointer] gdigi-0.4.0+git20200615+1c2c89f/preset_xml.c:89:40: style: Parameter 'val' can be declared as pointer to const [constParameterPointer] gdigi-0.4.0+git20200615+1c2c89f/gtkknob.c:97:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_TYPE_WIDGET [valueFlowBailoutIncompleteVar] gdigi-0.4.0+git20200615+1c2c89f/gtkknob.c:157:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_SCROLL_MASK [valueFlowBailoutIncompleteVar] gdigi-0.4.0+git20200615+1c2c89f/gtkknob.c:258:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_SIGNAL_MATCH_DATA [valueFlowBailoutIncompleteVar] gdigi-0.4.0+git20200615+1c2c89f/gtkknob.c:305:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_WINDOW_CHILD [valueFlowBailoutIncompleteVar] gdigi-0.4.0+git20200615+1c2c89f/gtkknob.c:372:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable width [valueFlowBailoutIncompleteVar] gdigi-0.4.0+git20200615+1c2c89f/gtkknob.c:383:59: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable height [valueFlowBailoutIncompleteVar] gdigi-0.4.0+git20200615+1c2c89f/gtkknob.c:425:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable adjustment [valueFlowBailoutIncompleteVar] gdigi-0.4.0+git20200615+1c2c89f/gtkknob.c:475:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable adjustment [valueFlowBailoutIncompleteVar] gdigi-0.4.0+git20200615+1c2c89f/gtkknob.c:512:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable adjustment [valueFlowBailoutIncompleteVar] gdigi-0.4.0+git20200615+1c2c89f/gtkknob.c:554:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable adjustment [valueFlowBailoutIncompleteVar] gdigi-0.4.0+git20200615+1c2c89f/gtkknob.c:591:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable adjustment [valueFlowBailoutIncompleteVar] gdigi-0.4.0+git20200615+1c2c89f/gtkknob.c:655:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_BUTTON1_MASK [valueFlowBailoutIncompleteVar] gdigi-0.4.0+git20200615+1c2c89f/gtkknob.c:880:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CAIRO_STATUS_READ_ERROR [valueFlowBailoutIncompleteVar] gdigi-0.4.0+git20200615+1c2c89f/gtkknob.c:221:34: style: Parameter 'knob' can be declared as pointer to const [constParameterPointer] gdigi-0.4.0+git20200615+1c2c89f/gtkknob.c:469:52: style: Parameter 'event' can be declared as pointer to const. However it seems that 'gtk_knob_scroll' is a callback function, if 'event' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gdigi-0.4.0+git20200615+1c2c89f/gtkknob.c:125:42: note: You might need to cast the function pointer here gdigi-0.4.0+git20200615+1c2c89f/gtkknob.c:469:52: note: Parameter 'event' can be declared as pointer to const gdigi-0.4.0+git20200615+1c2c89f/gtkknob.c:506:58: 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] gdigi-0.4.0+git20200615+1c2c89f/gtkknob.c:126:42: note: You might need to cast the function pointer here gdigi-0.4.0+git20200615+1c2c89f/gtkknob.c:506:58: note: Parameter 'event' can be declared as pointer to const gdigi-0.4.0+git20200615+1c2c89f/gtkknob.c:548:60: 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] gdigi-0.4.0+git20200615+1c2c89f/gtkknob.c:127:42: note: You might need to cast the function pointer here gdigi-0.4.0+git20200615+1c2c89f/gtkknob.c:548:60: note: Parameter 'event' can be declared as pointer to const gdigi-0.4.0+git20200615+1c2c89f/gtkknob.c:627:59: 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] gdigi-0.4.0+git20200615+1c2c89f/gtkknob.c:129:42: note: You might need to cast the function pointer here gdigi-0.4.0+git20200615+1c2c89f/gtkknob.c:627:59: note: Parameter 'event' can be declared as pointer to const diff: 2.17.0 gdigi-0.4.0+git20200615+1c2c89f/gdigi.c:1002:28: warning: If memory allocation fails, then there is a possible null pointer dereference: msg [nullPointerOutOfMemory] gdigi-0.4.0+git20200615+1c2c89f/gdigi.c:998:38: note: Assuming allocation function fails gdigi-0.4.0+git20200615+1c2c89f/gdigi.c:998:38: note: Assignment 'msg=g_string_sized_new(500)', assigned value is 0 gdigi-0.4.0+git20200615+1c2c89f/gdigi.c:1002:28: note: Null pointer dereference 2.17.0 gdigi-0.4.0+git20200615+1c2c89f/gdigi.c:1010:32: warning: If memory allocation fails, then there is a possible null pointer dereference: msg [nullPointerOutOfMemory] gdigi-0.4.0+git20200615+1c2c89f/gdigi.c:998:38: note: Assuming allocation function fails gdigi-0.4.0+git20200615+1c2c89f/gdigi.c:998:38: note: Assignment 'msg=g_string_sized_new(500)', assigned value is 0 gdigi-0.4.0+git20200615+1c2c89f/gdigi.c:1010:32: note: Null pointer dereference 2.17.0 gdigi-0.4.0+git20200615+1c2c89f/gdigi.c:1018:45: warning: If memory allocation fails, then there is a possible null pointer dereference: msg [nullPointerOutOfMemory] gdigi-0.4.0+git20200615+1c2c89f/gdigi.c:998:38: note: Assuming allocation function fails gdigi-0.4.0+git20200615+1c2c89f/gdigi.c:998:38: note: Assignment 'msg=g_string_sized_new(500)', assigned value is 0 gdigi-0.4.0+git20200615+1c2c89f/gdigi.c:1018:45: note: Null pointer dereference 2.17.0 gdigi-0.4.0+git20200615+1c2c89f/gdigi.c:1032:28: warning: If memory allocation fails, then there is a possible null pointer dereference: msg [nullPointerOutOfMemory] gdigi-0.4.0+git20200615+1c2c89f/gdigi.c:1031:38: note: Assuming allocation function fails gdigi-0.4.0+git20200615+1c2c89f/gdigi.c:1031:38: note: Assignment 'msg=g_string_sized_new(6)', assigned value is 0 gdigi-0.4.0+git20200615+1c2c89f/gdigi.c:1032:28: note: Null pointer dereference 2.17.0 gdigi-0.4.0+git20200615+1c2c89f/gdigi.c:1037:31: warning: If memory allocation fails, then there is a possible null pointer dereference: msg [nullPointerOutOfMemory] gdigi-0.4.0+git20200615+1c2c89f/gdigi.c:1031:38: note: Assuming allocation function fails gdigi-0.4.0+git20200615+1c2c89f/gdigi.c:1031:38: note: Assignment 'msg=g_string_sized_new(6)', assigned value is 0 gdigi-0.4.0+git20200615+1c2c89f/gdigi.c:1037:31: note: Null pointer dereference 2.17.0 gdigi-0.4.0+git20200615+1c2c89f/gdigi.c:1050:28: warning: If memory allocation fails, then there is a possible null pointer dereference: msg [nullPointerOutOfMemory] gdigi-0.4.0+git20200615+1c2c89f/gdigi.c:1049:38: note: Assuming allocation function fails gdigi-0.4.0+git20200615+1c2c89f/gdigi.c:1049:38: note: Assignment 'msg=g_string_sized_new(6)', assigned value is 0 gdigi-0.4.0+git20200615+1c2c89f/gdigi.c:1050:28: note: Null pointer dereference 2.17.0 gdigi-0.4.0+git20200615+1c2c89f/gdigi.c:1055:31: warning: If memory allocation fails, then there is a possible null pointer dereference: msg [nullPointerOutOfMemory] gdigi-0.4.0+git20200615+1c2c89f/gdigi.c:1049:38: note: Assuming allocation function fails gdigi-0.4.0+git20200615+1c2c89f/gdigi.c:1049:38: note: Assignment 'msg=g_string_sized_new(6)', assigned value is 0 gdigi-0.4.0+git20200615+1c2c89f/gdigi.c:1055:31: note: Null pointer dereference 2.17.0 gdigi-0.4.0+git20200615+1c2c89f/gdigi.c:1068:28: warning: If memory allocation fails, then there is a possible null pointer dereference: msg [nullPointerOutOfMemory] gdigi-0.4.0+git20200615+1c2c89f/gdigi.c:1067:38: note: Assuming allocation function fails gdigi-0.4.0+git20200615+1c2c89f/gdigi.c:1067:38: note: Assignment 'msg=g_string_sized_new(12)', assigned value is 0 gdigi-0.4.0+git20200615+1c2c89f/gdigi.c:1068:28: note: Null pointer dereference 2.17.0 gdigi-0.4.0+git20200615+1c2c89f/gdigi.c:1072:39: warning: If memory allocation fails, then there is a possible null pointer dereference: msg [nullPointerOutOfMemory] gdigi-0.4.0+git20200615+1c2c89f/gdigi.c:1067:38: note: Assuming allocation function fails gdigi-0.4.0+git20200615+1c2c89f/gdigi.c:1067:38: note: Assignment 'msg=g_string_sized_new(12)', assigned value is 0 gdigi-0.4.0+git20200615+1c2c89f/gdigi.c:1072:39: note: Null pointer dereference head gdigi-0.4.0+git20200615+1c2c89f/gdigi.c:1140:17: warning: Return value of function g_queue_pop_nth() is not used. [ignoredReturnValue] 2.17.0 gdigi-0.4.0+git20200615+1c2c89f/gdigi.c:310:5: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: packed [nullPointerOutOfMemory] gdigi-0.4.0+git20200615+1c2c89f/gdigi.c:296:32: note: Assuming allocation function fails gdigi-0.4.0+git20200615+1c2c89f/gdigi.c:296:32: note: Assignment 'packed=g_string_sized_new(new_len)', assigned value is 0 gdigi-0.4.0+git20200615+1c2c89f/gdigi.c:310:5: note: Null pointer dereference 2.17.0 gdigi-0.4.0+git20200615+1c2c89f/gdigi.c:648:32: warning: If memory allocation fails, then there is a possible null pointer dereference: string [nullPointerOutOfMemory] gdigi-0.4.0+git20200615+1c2c89f/gdigi.c:644:42: note: Assuming allocation function fails gdigi-0.4.0+git20200615+1c2c89f/gdigi.c:644:42: note: Assignment 'string=g_string_new_len((char*)&buf[pos],bytes)', assigned value is 0 gdigi-0.4.0+git20200615+1c2c89f/gdigi.c:648:32: note: Null pointer dereference 2.17.0 gdigi-0.4.0+git20200615+1c2c89f/gdigi.c:676:28: warning: If memory allocation fails, then there is a possible null pointer dereference: msg [nullPointerOutOfMemory] gdigi-0.4.0+git20200615+1c2c89f/gdigi.c:673:36: note: Assuming allocation function fails gdigi-0.4.0+git20200615+1c2c89f/gdigi.c:673:36: note: Assignment 'msg=g_string_new_len("\xf0\x00\x00\x10",4)', assigned value is 0 gdigi-0.4.0+git20200615+1c2c89f/gdigi.c:676:28: note: Null pointer dereference 2.17.0 gdigi-0.4.0+git20200615+1c2c89f/gdigi.c:688:28: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: msg [nullPointerOutOfMemory] gdigi-0.4.0+git20200615+1c2c89f/gdigi.c:673:36: note: Assuming allocation function fails gdigi-0.4.0+git20200615+1c2c89f/gdigi.c:673:36: note: Assignment 'msg=g_string_new_len("\xf0\x00\x00\x10",4)', assigned value is 0 gdigi-0.4.0+git20200615+1c2c89f/gdigi.c:688:28: note: Null pointer dereference 2.17.0 gdigi-0.4.0+git20200615+1c2c89f/gdigi.c:689:61: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: msg [nullPointerOutOfMemory] gdigi-0.4.0+git20200615+1c2c89f/gdigi.c:673:36: note: Assuming allocation function fails gdigi-0.4.0+git20200615+1c2c89f/gdigi.c:673:36: note: Assignment 'msg=g_string_new_len("\xf0\x00\x00\x10",4)', assigned value is 0 gdigi-0.4.0+git20200615+1c2c89f/gdigi.c:689:61: note: Null pointer dereference 2.17.0 gdigi-0.4.0+git20200615+1c2c89f/gdigi.c:694:15: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: msg [nullPointerOutOfMemory] gdigi-0.4.0+git20200615+1c2c89f/gdigi.c:673:36: note: Assuming allocation function fails gdigi-0.4.0+git20200615+1c2c89f/gdigi.c:673:36: note: Assignment 'msg=g_string_new_len("\xf0\x00\x00\x10",4)', assigned value is 0 gdigi-0.4.0+git20200615+1c2c89f/gdigi.c:694:15: note: Null pointer dereference head gdigi-0.4.0+git20200615+1c2c89f/gdigi.c:719:17: warning: Return value of function g_queue_pop_nth() is not used. [ignoredReturnValue] 2.17.0 gdigi-0.4.0+git20200615+1c2c89f/gdigi.c:932:28: warning: If memory allocation fails, then there is a possible null pointer dereference: msg [nullPointerOutOfMemory] gdigi-0.4.0+git20200615+1c2c89f/gdigi.c:929:38: note: Assuming allocation function fails gdigi-0.4.0+git20200615+1c2c89f/gdigi.c:929:38: note: Assignment 'msg=g_string_sized_new(9)', assigned value is 0 gdigi-0.4.0+git20200615+1c2c89f/gdigi.c:932:28: note: Null pointer dereference 2.17.0 gdigi-0.4.0+git20200615+1c2c89f/gdigi.c:935:43: warning: If memory allocation fails, then there is a possible null pointer dereference: msg [nullPointerOutOfMemory] gdigi-0.4.0+git20200615+1c2c89f/gdigi.c:929:38: note: Assuming allocation function fails gdigi-0.4.0+git20200615+1c2c89f/gdigi.c:929:38: note: Assignment 'msg=g_string_sized_new(9)', assigned value is 0 gdigi-0.4.0+git20200615+1c2c89f/gdigi.c:935:43: note: Null pointer dereference 2.17.0 gdigi-0.4.0+git20200615+1c2c89f/gdigi.c:948:28: warning: If memory allocation fails, then there is a possible null pointer dereference: msg [nullPointerOutOfMemory] gdigi-0.4.0+git20200615+1c2c89f/gdigi.c:947:38: note: Assuming allocation function fails gdigi-0.4.0+git20200615+1c2c89f/gdigi.c:947:38: note: Assignment 'msg=g_string_sized_new(9)', assigned value is 0 gdigi-0.4.0+git20200615+1c2c89f/gdigi.c:948:28: note: Null pointer dereference 2.17.0 gdigi-0.4.0+git20200615+1c2c89f/gdigi.c:957:43: warning: If memory allocation fails, then there is a possible null pointer dereference: msg [nullPointerOutOfMemory] gdigi-0.4.0+git20200615+1c2c89f/gdigi.c:947:38: note: Assuming allocation function fails gdigi-0.4.0+git20200615+1c2c89f/gdigi.c:947:38: note: Assignment 'msg=g_string_sized_new(9)', assigned value is 0 gdigi-0.4.0+git20200615+1c2c89f/gdigi.c:957:43: note: Null pointer dereference 2.17.0 gdigi-0.4.0+git20200615+1c2c89f/gdigi.c:977:28: warning: If memory allocation fails, then there is a possible null pointer dereference: msg [nullPointerOutOfMemory] gdigi-0.4.0+git20200615+1c2c89f/gdigi.c:973:32: note: Assuming allocation function fails gdigi-0.4.0+git20200615+1c2c89f/gdigi.c:973:32: note: Assignment 'msg=g_string_new(NULL)', assigned value is 0 gdigi-0.4.0+git20200615+1c2c89f/gdigi.c:977:28: note: Null pointer dereference 2.17.0 gdigi-0.4.0+git20200615+1c2c89f/gdigi.c:986:34: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: msg [nullPointerOutOfMemory] gdigi-0.4.0+git20200615+1c2c89f/gdigi.c:973:32: note: Assuming allocation function fails gdigi-0.4.0+git20200615+1c2c89f/gdigi.c:973:32: note: Assignment 'msg=g_string_new(NULL)', assigned value is 0 gdigi-0.4.0+git20200615+1c2c89f/gdigi.c:986:34: note: Null pointer dereference 2.17.0 gdigi-0.4.0+git20200615+1c2c89f/gui.c:1273:36: warning: If memory allocation fails, then there is a possible null pointer dereference: start [nullPointerOutOfMemory] gdigi-0.4.0+git20200615+1c2c89f/gui.c:1272:42: note: Assuming allocation function fails gdigi-0.4.0+git20200615+1c2c89f/gui.c:1272:42: note: Assignment 'start=g_string_new(NULL)', assigned value is 0 gdigi-0.4.0+git20200615+1c2c89f/gui.c:1273:36: note: Null pointer dereference 2.17.0 gdigi-0.4.0+git20200615+1c2c89f/gui.c:1281:48: warning: If memory allocation fails, then there is a possible null pointer dereference: start [nullPointerOutOfMemory] gdigi-0.4.0+git20200615+1c2c89f/gui.c:1272:42: note: Assuming allocation function fails gdigi-0.4.0+git20200615+1c2c89f/gui.c:1272:42: note: Assignment 'start=g_string_new(NULL)', assigned value is 0 gdigi-0.4.0+git20200615+1c2c89f/gui.c:1281:48: note: Null pointer dereference head gdigi-0.4.0+git20200615+1c2c89f/preset.c:216:44: style: Parameter 'filename' can be declared as pointer to const [constParameterPointer] 2.17.0 gdigi-0.4.0+git20200615+1c2c89f/preset.c:308:63: warning: If memory allocation fails, then there is a possible null pointer dereference: name [nullPointerOutOfMemory] gdigi-0.4.0+git20200615+1c2c89f/preset.c:307:32: note: Assuming allocation function fails gdigi-0.4.0+git20200615+1c2c89f/preset.c:307:32: note: Assignment 'name=g_strdup(&data->str[10])', assigned value is 0 gdigi-0.4.0+git20200615+1c2c89f/preset.c:308:63: note: Null pointer dereference DONE