2026-05-03 04:28 ftp://ftp.de.debian.org/debian/pool/main/libg/libgnt/libgnt_2.14.4.orig.tar.xz cppcheck-options: --library=posix --library=gnu --library=bsd --library=gtk --library=python --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: 51 51 elapsed-time: 0.6 0.5 head-timing-info: old-timing-info: head results: libgnt-2.14.4-dev/gntinternal.h:36:20: error: failed to expand 'C_', Wrong number of parameters for macro 'C_'. [syntaxError] libgnt-2.14.4-dev/gntclipboard.c:42:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_TYPE_POINTER [valueFlowBailoutIncompleteVar] libgnt-2.14.4-dev/gntclipboard.c:88:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_TYPE_OBJECT [valueFlowBailoutIncompleteVar] libgnt-2.14.4-dev/gntclipboard.c:51:40: style:inconclusive: Function 'gnt_clipboard_set_string' argument 1 names different: declaration 'clip' definition 'clipboard'. [funcArgNamesDifferent] libgnt-2.14.4-dev/gntclipboard.h:103:45: note: Function 'gnt_clipboard_set_string' argument 1 names different: declaration 'clip' definition 'clipboard'. libgnt-2.14.4-dev/gntclipboard.c:51:40: note: Function 'gnt_clipboard_set_string' argument 1 names different: declaration 'clip' definition 'clipboard'. libgnt-2.14.4-dev/gntclipboard.c:59:40: style:inconclusive: Function 'gnt_clipboard_get_string' argument 1 names different: declaration 'clip' definition 'clipboard'. [funcArgNamesDifferent] libgnt-2.14.4-dev/gntclipboard.h:94:48: note: Function 'gnt_clipboard_get_string' argument 1 names different: declaration 'clip' definition 'clipboard'. libgnt-2.14.4-dev/gntclipboard.c:59:40: note: Function 'gnt_clipboard_get_string' argument 1 names different: declaration 'clip' definition 'clipboard'. libgnt-2.14.4-dev/gntclipboard.c:33:45: style: Parameter 'klass' can be declared as pointer to const. However it seems that 'gnt_clipboard_class_init' is a callback function, if 'klass' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libgnt-2.14.4-dev/gntclipboard.c:79:20: note: You might need to cast the function pointer here libgnt-2.14.4-dev/gntclipboard.c:33:45: note: Parameter 'klass' can be declared as pointer to const libgnt-2.14.4-dev/test.c:79:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdscr [valueFlowBailoutIncompleteVar] libgnt-2.14.4-dev/test.c:10:13: style: Variable 'w' can be declared as pointer to const [constVariablePointer] libgnt-2.14.4-dev/test.c:51:20: style: Parameter 'widget' can be declared as pointer to const. However it seems that 'button2' is a callback function, if 'widget' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libgnt-2.14.4-dev/test.c:119:2: note: You might need to cast the function pointer here libgnt-2.14.4-dev/test.c:51:20: note: Parameter 'widget' can be declared as pointer to const libgnt-2.14.4-dev/test.c:51:37: style: Parameter 'null' can be declared as pointer to const. However it seems that 'button2' is a callback function, if 'null' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libgnt-2.14.4-dev/test.c:119:2: note: You might need to cast the function pointer here libgnt-2.14.4-dev/test.c:51:37: note: Parameter 'null' can be declared as pointer to const libgnt-2.14.4-dev/test.c:10:15: style: Variable 'w' is assigned a value that is never used. [unreadVariable] libgnt-2.14.4-dev/test.c:77:10: style: Unused variable: test [unusedVariable] libgnt-2.14.4-dev/test/combo.c:17:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libgnt-2.14.4-dev/test/combo.c:43:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GNT_ALIGN_MID [valueFlowBailoutIncompleteVar] libgnt-2.14.4-dev/test/combo.c:11:29: style: Parameter 'b' can be declared as pointer to const. However it seems that 'button_activated' is a callback function, if 'b' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libgnt-2.14.4-dev/test/combo.c:78:2: note: You might need to cast the function pointer here libgnt-2.14.4-dev/test/combo.c:11:29: note: Parameter 'b' can be declared as pointer to const libgnt-2.14.4-dev/test/combo.c:22:25: style: Parameter 'slider' can be declared as pointer to const. However it seems that 'update_label' is a callback function, if 'slider' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libgnt-2.14.4-dev/test/combo.c:90:2: note: You might need to cast the function pointer here libgnt-2.14.4-dev/test/combo.c:22:25: note: Parameter 'slider' can be declared as pointer to const libgnt-2.14.4-dev/test/file.c:12:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libgnt-2.14.4-dev/test/file.c:12:2: warning: Return value of function freopen() is not used. [ignoredReturnValue] libgnt-2.14.4-dev/test/file.c:5:27: style: Parameter 'sel' can be declared as pointer to const. However it seems that 'file_selected' is a callback function, if 'sel' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libgnt-2.14.4-dev/test/file.c:22:2: note: You might need to cast the function pointer here libgnt-2.14.4-dev/test/file.c:5:27: note: Parameter 'sel' can be declared as pointer to const libgnt-2.14.4-dev/test/focus.c:34:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GNT_ALIGN_MID [valueFlowBailoutIncompleteVar] libgnt-2.14.4-dev/test/focus.c:30:10: style: Unused variable: test [unusedVariable] libgnt-2.14.4-dev/test/keys.c:42:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libgnt-2.14.4-dev/test/keys.c:42:2: warning: Return value of function freopen() is not used. [ignoredReturnValue] libgnt-2.14.4-dev/test/menu.c:19:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libgnt-2.14.4-dev/test/menu.c:19:2: warning: Return value of function freopen() is not used. [ignoredReturnValue] libgnt-2.14.4-dev/test/multiwin.c:74:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GNT_TEXT_FLAG_DIM [valueFlowBailoutIncompleteVar] libgnt-2.14.4-dev/test/multiwin.c:9:26: style: Parameter 'w' can be declared as pointer to const. However it seems that 'show' is a callback function, if 'w' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libgnt-2.14.4-dev/test/multiwin.c:78:35: note: You might need to cast the function pointer here libgnt-2.14.4-dev/test/multiwin.c:9:26: note: Parameter 'w' can be declared as pointer to const libgnt-2.14.4-dev/test/parse.c:10:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gnt_widget_destroy [valueFlowBailoutIncompleteVar] libgnt-2.14.4-dev/test/tv.c:17:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GNT_TEXT_FLAG_UNDERLINE [valueFlowBailoutIncompleteVar] libgnt-2.14.4-dev/test/tv.c:74:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GNT_ALIGN_MID [valueFlowBailoutIncompleteVar] libgnt-2.14.4-dev/test/wm.c:20:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_MODULE_BIND_LOCAL [valueFlowBailoutIncompleteVar] libgnt-2.14.4-dev/test/wm.c:46:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libgnt-2.14.4-dev/test/wm.c:46:2: warning: Return value of function freopen() is not used. [ignoredReturnValue] libgnt-2.14.4-dev/wms/irssi.c:73:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdscr [valueFlowBailoutIncompleteVar] libgnt-2.14.4-dev/wms/irssi.c:107:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdscr [valueFlowBailoutIncompleteVar] libgnt-2.14.4-dev/wms/irssi.c:163:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdscr [valueFlowBailoutIncompleteVar] libgnt-2.14.4-dev/wms/irssi.c:216:94: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GNT_COLOR_TITLE_D [valueFlowBailoutIncompleteVar] libgnt-2.14.4-dev/wms/irssi.c:244:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdscr [valueFlowBailoutIncompleteVar] libgnt-2.14.4-dev/wms/irssi.c:345:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GNTDEBUG [valueFlowBailoutIncompleteVar] libgnt-2.14.4-dev/wms/irssi.c:388:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GNT_TYPE_WM [valueFlowBailoutIncompleteVar] libgnt-2.14.4-dev/wms/irssi.c:216:30: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] libgnt-2.14.4-dev/wms/irssi.c:69:27: style: Parameter 'irssi' can be declared as pointer to const [constParameterPointer] libgnt-2.14.4-dev/wms/irssi.c:227:41: style: Parameter 'node' can be declared as pointer to const. However it seems that 'irssi_update_window' is a callback function, if 'node' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libgnt-2.14.4-dev/wms/irssi.c:332:26: note: You might need to cast the function pointer here libgnt-2.14.4-dev/wms/irssi.c:227:41: note: Parameter 'node' can be declared as pointer to const libgnt-2.14.4-dev/wms/irssi.c:238:29: style: Parameter 'irssi' can be declared as pointer to const [constParameterPointer] libgnt-2.14.4-dev/wms/irssi.c:254:46: style: Parameter 'list' can be declared as pointer to const. However it seems that 'move_direction' is a callback function, if 'list' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libgnt-2.14.4-dev/wms/irssi.c:341:77: note: You might need to cast the function pointer here libgnt-2.14.4-dev/wms/irssi.c:254:46: note: Parameter 'list' can be declared as pointer to const libgnt-2.14.4-dev/wms/s.c:41:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACS_VLINE [valueFlowBailoutIncompleteVar] libgnt-2.14.4-dev/wms/s.c:54:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GNT_COLOR_NORMAL [valueFlowBailoutIncompleteVar] libgnt-2.14.4-dev/wms/s.c:86:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdscr [valueFlowBailoutIncompleteVar] libgnt-2.14.4-dev/wms/s.c:148:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GNT_LEFT_MOUSE_DOWN [valueFlowBailoutIncompleteVar] libgnt-2.14.4-dev/wms/s.c:188:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GNTDEBUG [valueFlowBailoutIncompleteVar] libgnt-2.14.4-dev/wms/s.c:214:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GNT_TYPE_WM [valueFlowBailoutIncompleteVar] diff: DONE