2026-05-02 17:44 ftp://ftp.de.debian.org/debian/pool/main/j/jack-keyboard/jack-keyboard_2.7.2.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --library=gtk --library=cairo --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-1047-aws-aarch64-with-glibc2.35 python: 3.10.12 client-version: 1.4.0 compiler: g++ (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0 cppcheck: head 2.20.0 head-info: e5c4a73 (2026-05-01 11:10:43 +0200) count: 44 44 elapsed-time: 0.5 0.4 head-timing-info: old-timing-info: head results: jack-keyboard-2.7.2/src/jack-keyboard.c:229:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EX_OSERR [valueFlowBailoutIncompleteVar] jack-keyboard-2.7.2/src/jack-keyboard.c:816:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EX_UNAVAILABLE [valueFlowBailoutIncompleteVar] jack-keyboard-2.7.2/src/jack-keyboard.c:1304:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_KP_0 [valueFlowBailoutIncompleteVar] jack-keyboard-2.7.2/src/jack-keyboard.c:1408:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_KEY_PRESS [valueFlowBailoutIncompleteVar] jack-keyboard-2.7.2/src/jack-keyboard.c:1627:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] jack-keyboard-2.7.2/src/jack-keyboard.c:1670:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_CAN_FOCUS [valueFlowBailoutIncompleteVar] jack-keyboard-2.7.2/src/jack-keyboard.c:1806:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] jack-keyboard-2.7.2/src/jack-keyboard.c:1821:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] jack-keyboard-2.7.2/src/jack-keyboard.c:1829:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] jack-keyboard-2.7.2/src/jack-keyboard.c:1883:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] jack-keyboard-2.7.2/src/jack-keyboard.c:1966:2: style: Assignment of function parameter has no effect outside the function. [uselessAssignmentArg] jack-keyboard-2.7.2/src/jack-keyboard.c:1967:2: style: Assignment of function parameter has no effect outside the function. [uselessAssignmentArg] jack-keyboard-2.7.2/src/jack-keyboard.c:1271:3: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] jack-keyboard-2.7.2/src/jack-keyboard.c:1735:2: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] jack-keyboard-2.7.2/src/jack-keyboard.c:318:24: style: Parameter 's' can be declared as pointer to const. However it seems that 'warning_async' is a callback function, if 's' is declared with const you might also need to cast function pointer(s). [constParameterCallback] jack-keyboard-2.7.2/src/jack-keyboard.c:330:13: note: You might need to cast the function pointer here jack-keyboard-2.7.2/src/jack-keyboard.c:318:24: note: Parameter 's' can be declared as pointer to const jack-keyboard-2.7.2/src/jack-keyboard.c:353:23: style: Variable 'rev' can be declared as pointer to const [constVariablePointer] jack-keyboard-2.7.2/src/jack-keyboard.c:635:36: style: Parameter 'notused' can be declared as pointer to const. However it seems that 'update_window_title_async' is a callback function, if 'notused' is declared with const you might also need to cast function pointer(s). [constParameterCallback] jack-keyboard-2.7.2/src/jack-keyboard.c:646:13: note: You might need to cast the function pointer here jack-keyboard-2.7.2/src/jack-keyboard.c:635:36: note: Parameter 'notused' can be declared as pointer to const jack-keyboard-2.7.2/src/jack-keyboard.c:644:28: style: Parameter 'notused' can be declared as pointer to const. However it seems that 'graph_order_callback' is a callback function, if 'notused' is declared with const you might also need to cast function pointer(s). [constParameterCallback] jack-keyboard-2.7.2/src/jack-keyboard.c:843:51: note: You might need to cast the function pointer here jack-keyboard-2.7.2/src/jack-keyboard.c:644:28: note: Parameter 'notused' can be declared as pointer to const jack-keyboard-2.7.2/src/jack-keyboard.c:1026:57: style: Parameter 'pressed' can be declared as pointer to const. However it seems that 'sustain_event_handler' is a callback function, if 'pressed' is declared with const you might also need to cast function pointer(s). [constParameterCallback] jack-keyboard-2.7.2/src/jack-keyboard.c:1736:2: note: You might need to cast the function pointer here jack-keyboard-2.7.2/src/jack-keyboard.c:1026:57: note: Parameter 'pressed' can be declared as pointer to const jack-keyboard-2.7.2/src/jack-keyboard.c:1112:32: style: Parameter 'widget' can be declared as pointer to const. However it seems that 'panic_event_handler' is a callback function, if 'widget' is declared with const you might also need to cast function pointer(s). [constParameterCallback] jack-keyboard-2.7.2/src/jack-keyboard.c:1703:2: note: You might need to cast the function pointer here jack-keyboard-2.7.2/src/jack-keyboard.c:1112:32: note: Parameter 'widget' can be declared as pointer to const jack-keyboard-2.7.2/src/jack-keyboard.c:1293:30: style: Parameter 'event' can be declared as pointer to const [constParameterPointer] jack-keyboard-2.7.2/src/jack-keyboard.c:1843:8: style: Variable 'keyboard_layout' can be declared as pointer to const [constVariablePointer] jack-keyboard-2.7.2/src/jack-keyboard.c:1843:33: style: Variable 'autoconnect_port_name' can be declared as pointer to const [constVariablePointer] jack-keyboard-2.7.2/src/jack-keyboard.c:610:8: style: Variable 'off' is assigned a value that is never used. [unreadVariable] jack-keyboard-2.7.2/src/pianokeyboard.c:65:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable fg_gc [valueFlowBailoutIncompleteVar] jack-keyboard-2.7.2/src/pianokeyboard.c:305:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_KEY_PRESS [valueFlowBailoutIncompleteVar] jack-keyboard-2.7.2/src/pianokeyboard.c:320:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable height [valueFlowBailoutIncompleteVar] jack-keyboard-2.7.2/src/pianokeyboard.c:356:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_BUTTON_PRESS [valueFlowBailoutIncompleteVar] jack-keyboard-2.7.2/src/pianokeyboard.c:390:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_BUTTON1_MASK [valueFlowBailoutIncompleteVar] jack-keyboard-2.7.2/src/pianokeyboard.c:468:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable width [valueFlowBailoutIncompleteVar] jack-keyboard-2.7.2/src/pianokeyboard.c:520:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_SIGNAL_ACTION [valueFlowBailoutIncompleteVar] jack-keyboard-2.7.2/src/pianokeyboard.c:537:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_BUTTON_PRESS_MASK [valueFlowBailoutIncompleteVar] jack-keyboard-2.7.2/src/pianokeyboard.c:564:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_TYPE_DRAWING_AREA [valueFlowBailoutIncompleteVar] jack-keyboard-2.7.2/src/pianokeyboard.c:676:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CAIRO_LINE_JOIN_MITER [valueFlowBailoutIncompleteVar] jack-keyboard-2.7.2/src/pianokeyboard.c:713:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CAIRO_LINE_JOIN_MITER [valueFlowBailoutIncompleteVar] jack-keyboard-2.7.2/src/pianokeyboard.c:788:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable r [valueFlowBailoutIncompleteVar] jack-keyboard-2.7.2/src/pianokeyboard.c:671:96: style:inconclusive: Function 'piano_keyboard_draw_white_key' argument 7 names different: declaration 'val' definition 'vel'. [funcArgNamesDifferent] jack-keyboard-2.7.2/src/pianokeyboard.h:115:102: note: Function 'piano_keyboard_draw_white_key' argument 7 names different: declaration 'val' definition 'vel'. jack-keyboard-2.7.2/src/pianokeyboard.c:671:96: note: Function 'piano_keyboard_draw_white_key' argument 7 names different: declaration 'val' definition 'vel'. jack-keyboard-2.7.2/src/pianokeyboard.c:708:96: style:inconclusive: Function 'piano_keyboard_draw_black_key' argument 7 names different: declaration 'val' definition 'vel'. [funcArgNamesDifferent] jack-keyboard-2.7.2/src/pianokeyboard.h:116:102: note: Function 'piano_keyboard_draw_black_key' argument 7 names different: declaration 'val' definition 'vel'. jack-keyboard-2.7.2/src/pianokeyboard.c:708:96: note: Function 'piano_keyboard_draw_black_key' argument 7 names different: declaration 'val' definition 'vel'. jack-keyboard-2.7.2/src/pianokeyboard.c:745:74: style:inconclusive: Function 'piano_keyboard_draw_pressed' argument 6 names different: declaration 'val' definition 'vel'. [funcArgNamesDifferent] jack-keyboard-2.7.2/src/pianokeyboard.h:117:80: note: Function 'piano_keyboard_draw_pressed' argument 6 names different: declaration 'val' definition 'vel'. jack-keyboard-2.7.2/src/pianokeyboard.c:745:74: note: Function 'piano_keyboard_draw_pressed' argument 6 names different: declaration 'val' definition 'vel'. jack-keyboard-2.7.2/src/pianokeyboard.c:288:52: style: Parameter 'event' can be declared as pointer to const. However it seems that 'keyboard_event_handler' is a callback function, if 'event' is declared with const you might also need to cast function pointer(s). [constParameterCallback] jack-keyboard-2.7.2/src/pianokeyboard.c:543:9: note: You might need to cast the function pointer here jack-keyboard-2.7.2/src/pianokeyboard.c:288:52: note: Parameter 'event' can be declared as pointer to const jack-keyboard-2.7.2/src/pianokeyboard.c:344:63: style: Parameter 'event' can be declared as pointer to const. However it seems that 'mouse_button_event_handler' is a callback function, if 'event' is declared with const you might also need to cast function pointer(s). [constParameterCallback] jack-keyboard-2.7.2/src/pianokeyboard.c:540:2: note: You might need to cast the function pointer here jack-keyboard-2.7.2/src/pianokeyboard.c:344:63: note: Parameter 'event' can be declared as pointer to const jack-keyboard-2.7.2/src/pianokeyboard.c:386:63: style: Parameter 'event' can be declared as pointer to const. However it seems that 'mouse_motion_event_handler' is a callback function, if 'event' is declared with const you might also need to cast function pointer(s). [constParameterCallback] jack-keyboard-2.7.2/src/pianokeyboard.c:541:2: note: You might need to cast the function pointer here jack-keyboard-2.7.2/src/pianokeyboard.c:386:63: note: Parameter 'event' can be declared as pointer to const jack-keyboard-2.7.2/src/pianokeyboard.c:671:43: style: Parameter 'widget' can be declared as pointer to const [constParameterPointer] jack-keyboard-2.7.2/src/pianokeyboard.c:708:43: style: Parameter 'widget' can be declared as pointer to const [constParameterPointer] diff: DONE