2025-08-31 14:04 ftp://ftp.de.debian.org/debian/pool/main/i/input-pad/input-pad_1.1.0.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --library=gtk --library=motif --inconclusive --enable=style,information --inline-suppr --template=daca2 --disable=missingInclude --suppress=unmatchedSuppression --check-library --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning --suppress=normalCheckLevelConditionExpressions -D__GNUC__ --platform=unix64 -j1 platform: Linux-6.8.0-79-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.18.0 head-info: 2ee39fe (2025-08-30 22:07:31 +0200) count: 65 140 elapsed-time: 0.8 3.4 head-timing-info: old-timing-info: head results: input-pad-1.1.0/input-pad/button-gtk.c:59:0: error: failed to evaluate #if condition, undefined function-like macro invocation: GTK_CHECK_VERSION( ... ) [preprocessorErrorDirective] input-pad-1.1.0/input-pad/button-gtk.c:59:2: error: failed to evaluate #if condition, undefined function-like macro invocation: GTK_CHECK_VERSION( ... ) [preprocessorErrorDirective] input-pad-1.1.0/input-pad/combobox-gtk.c:67:5: style: g_type_class_add_private has been deprecated since version 2.58 and should not be used in newly-written code. Use the G_ADD_PRIVATE() macro with the G_DEFINE_* family of macros to add instance private data to a type. [prohibitedg_type_class_add_privateCalled] input-pad-1.1.0/input-pad/eek-gtk.c:92:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EEK_INVALID_KEYSYM [valueFlowBailoutIncompleteVar] input-pad-1.1.0/input-pad/eek-gtk.c:162:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EEK_MODIFIER_BEHAVIOR_LATCH [valueFlowBailoutIncompleteVar] input-pad-1.1.0/input-pad/eek-gtk.c:251:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GETTEXT_PACKAGE [valueFlowBailoutIncompleteVar] input-pad-1.1.0/input-pad/eek-gtk.c:214:5: style: g_type_class_add_private has been deprecated since version 2.58 and should not be used in newly-written code. Use the G_ADD_PRIVATE() macro with the G_DEFINE_* family of macros to add instance private data to a type. [prohibitedg_type_class_add_privateCalled] input-pad-1.1.0/input-pad/eek-gtk.c:133:73: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] input-pad-1.1.0/input-pad/eek-gtk.c:268:43: style: Parameter 'window' can be declared as pointer to const [constParameterPointer] input-pad-1.1.0/input-pad/eek-gtk.c:275:48: style: Parameter 'window' can be declared as pointer to const [constParameterPointer] input-pad-1.1.0/input-pad/eek-gtk.c:281:31: style: Parameter 'module' can be declared as pointer to const [constParameterPointer] input-pad-1.1.0/input-pad/geometry-gdk.c:116:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XkbFileInfo [valueFlowBailoutIncompleteVar] input-pad-1.1.0/input-pad/geometry-gdk.c:147:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XkbMessage [valueFlowBailoutIncompleteVar] input-pad-1.1.0/input-pad/geometry-gdk.c:243:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XkbDW_Section [valueFlowBailoutIncompleteVar] input-pad-1.1.0/input-pad/geometry-gdk.c:322:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XkbKeyRec [valueFlowBailoutIncompleteVar] input-pad-1.1.0/input-pad/geometry-gdk.c:526:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XkbUseCoreKbd [valueFlowBailoutIncompleteVar] input-pad-1.1.0/input-pad/geometry-gdk.c:991:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _XKB_RF_NAMES_PROP_ATOM [valueFlowBailoutIncompleteVar] input-pad-1.1.0/input-pad/geometry-gdk.c:1052:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable None [valueFlowBailoutIncompleteVar] input-pad-1.1.0/input-pad/geometry-gdk.c:1215:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XkbDW_Section [valueFlowBailoutIncompleteVar] input-pad-1.1.0/input-pad/geometry-gdk.c:1155:21: style: Condition 'row' is always true [knownConditionTrueFalse] input-pad-1.1.0/input-pad/geometry-gdk.c:1157:28: style: Condition 'row' is always true [knownConditionTrueFalse] input-pad-1.1.0/input-pad/geometry-gdk.c:127:9: error: Memory leak: xkb_info [memleak] input-pad-1.1.0/input-pad/geometry-gdk.c:1184:20: warning: Either the condition 'list' is redundant or there is possible null pointer dereference: list. [nullPointerRedundantCheck] input-pad-1.1.0/input-pad/geometry-gdk.c:1179:17: note: Assuming that condition 'list' is not redundant input-pad-1.1.0/input-pad/geometry-gdk.c:1184:20: note: Null pointer dereference input-pad-1.1.0/input-pad/geometry-gdk.c:238:13: style: Variable 'keysyms' can be declared as pointer to const [constVariablePointer] input-pad-1.1.0/input-pad/geometry-gdk.c:317:13: style: Variable 'keysyms' can be declared as pointer to const [constVariablePointer] input-pad-1.1.0/input-pad/geometry-gdk.c:1281:63: style: Parameter 'window' can be declared as pointer to const [constParameterPointer] input-pad-1.1.0/input-pad/geometry-gdk.c:1282:63: style: Parameter 'xkb_key_list' can be declared as pointer to const [constParameterPointer] input-pad-1.1.0/input-pad/kbdui-gtk.c:48:45: style: Parameter 'kbdui' can be declared as pointer to const [constParameterPointer] input-pad-1.1.0/input-pad/kbdui-gtk.c:55:19: style: Variable 'gobject_class' can be declared as pointer to const [constVariablePointer] input-pad-1.1.0/input-pad/keysym-str2val.c:100:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_FILE_TEST_EXISTS [valueFlowBailoutIncompleteVar] input-pad-1.1.0/input-pad/keysym-str2val.c:193:5: error: Memory leak: output_filename [memleak] input-pad-1.1.0/input-pad/keysym-str2val.c:75:39: warning: Either the condition 'p==NULL' is redundant or there is possible null pointer dereference: p. [nullPointerRedundantCheck] input-pad-1.1.0/input-pad/keysym-str2val.c:74:11: note: Assuming that condition 'p==NULL' is not redundant input-pad-1.1.0/input-pad/keysym-str2val.c:75:39: note: Null pointer dereference input-pad-1.1.0/input-pad/keysym-str2val.c:75:39: error: Null pointer dereference [nullPointer] input-pad-1.1.0/input-pad/keysym-str2val.c:108:9: style: Statements following noreturn function 'g_error()' will never be executed. [unreachableCode] input-pad-1.1.0/input-pad/keysym-str2val.c:188:9: style: Statements following noreturn function 'g_error()' will never be executed. [unreachableCode] input-pad-1.1.0/input-pad/keysym-str2val.c:90:12: style: Variable 'include' can be declared as pointer to const [constVariablePointer] input-pad-1.1.0/input-pad/keysym-str2val.c:172:11: style: Variable 'output_filename' can be declared as pointer to const [constVariablePointer] input-pad-1.1.0/input-pad/keysym-str2val.c:170:11: style: Unused variable: d [unusedVariable] input-pad-1.1.0/input-pad/parse-pad.c:57:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INPUT_PAD_PAD_SYSTEM_DIR [valueFlowBailoutIncompleteVar] input-pad-1.1.0/input-pad/parse-pad.c:75:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XML_TEXT_NODE [valueFlowBailoutIncompleteVar] input-pad-1.1.0/input-pad/parse-pad.c:111:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XML_TEXT_NODE [valueFlowBailoutIncompleteVar] input-pad-1.1.0/input-pad/parse-pad.c:136:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XML_ELEMENT_NODE [valueFlowBailoutIncompleteVar] input-pad-1.1.0/input-pad/parse-pad.c:164:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XML_ELEMENT_NODE [valueFlowBailoutIncompleteVar] input-pad-1.1.0/input-pad/parse-pad.c:209:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XML_ELEMENT_NODE [valueFlowBailoutIncompleteVar] input-pad-1.1.0/input-pad/parse-pad.c:336:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XML_ELEMENT_NODE [valueFlowBailoutIncompleteVar] input-pad-1.1.0/input-pad/parse-pad.c:418:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XML_ELEMENT_NODE [valueFlowBailoutIncompleteVar] input-pad-1.1.0/input-pad/parse-pad.c:459:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XML_ELEMENT_NODE [valueFlowBailoutIncompleteVar] input-pad-1.1.0/input-pad/parse-pad.c:489:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XML_ELEMENT_NODE [valueFlowBailoutIncompleteVar] input-pad-1.1.0/input-pad/parse-pad.c:540:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable xmlLoadExtDtdDefaultValue [valueFlowBailoutIncompleteVar] input-pad-1.1.0/input-pad/parse-pad.c:580:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INPUT_PAD_PAD_SYSTEM_DIR [valueFlowBailoutIncompleteVar] input-pad-1.1.0/input-pad/parse-pad.c:520:14: portability: Non reentrant function 'getpwuid' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwuid_r'. [prohibitedgetpwuidCalled] input-pad-1.1.0/input-pad/parse-pad.c:78:21: style:inconclusive: Found duplicate branches for 'if' and 'else'. [duplicateBranch] input-pad-1.1.0/input-pad/parse-pad.c:81:23: note: Found duplicate branches for 'if' and 'else'. input-pad-1.1.0/input-pad/parse-pad.c:78:21: note: Found duplicate branches for 'if' and 'else'. input-pad-1.1.0/input-pad/parse-pad.c:531:57: style:inconclusive: Function 'input_pad_group_append_from_file' argument 1 names different: declaration 'group_data' definition 'group'. [funcArgNamesDifferent] input-pad-1.1.0/input-pad/input-pad-group.h:87:55: note: Function 'input_pad_group_append_from_file' argument 1 names different: declaration 'group_data' definition 'group'. input-pad-1.1.0/input-pad/parse-pad.c:531:57: note: Function 'input_pad_group_append_from_file' argument 1 names different: declaration 'group_data' definition 'group'. input-pad-1.1.0/input-pad/parse-pad.c:253:1: style: Parameter 'instance' can be declared as pointer to const [constParameterPointer] input-pad-1.1.0/input-pad/parse-pad.c:254:1: style: Parameter 'instance' can be declared as pointer to const [constParameterPointer] input-pad-1.1.0/input-pad/parse-pad.c:513:12: style: Variable 'home_dir' can be declared as pointer to const [constVariablePointer] input-pad-1.1.0/input-pad/parse-pad.c:515:20: style: Variable 'pw' can be declared as pointer to const [constVariablePointer] input-pad-1.1.0/input-pad/viewport-gtk.c:175:9: error: There is an unknown macro here somewhere. Configuration is required. If adjustment is a macro then please configure it. [unknownMacro] input-pad-1.1.0/input-pad/window-gtk.c:56:0: error: failed to evaluate #if condition, undefined function-like macro invocation: GTK_CHECK_VERSION( ... ) [preprocessorErrorDirective] input-pad-1.1.0/input-pad/window-gtk.c:56:2: error: failed to evaluate #if condition, undefined function-like macro invocation: GTK_CHECK_VERSION( ... ) [preprocessorErrorDirective] input-pad-1.1.0/input-pad/xtest-gdk.c:72:64: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CurrentTime [valueFlowBailoutIncompleteVar] input-pad-1.1.0/input-pad/xtest-gdk.c:84:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ControlMask [valueFlowBailoutIncompleteVar] input-pad-1.1.0/input-pad/xtest-gdk.c:110:53: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CurrentTime [valueFlowBailoutIncompleteVar] input-pad-1.1.0/input-pad/xtest-gdk.c:156:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INPUT_PAD_TABLE_TYPE_CHARS [valueFlowBailoutIncompleteVar] input-pad-1.1.0/input-pad/xtest-gdk.c:205:31: style: Parameter 'module' can be declared as pointer to const [constParameterPointer] diff: 2.18.0 input-pad-1.1.0/input-pad/button-gtk.c:103:5: style: g_type_class_add_private has been deprecated since version 2.58 and should not be used in newly-written code. Use the G_ADD_PRIVATE() macro with the G_DEFINE_* family of macros to add instance private data to a type. [prohibitedg_type_class_add_privateCalled] 2.18.0 input-pad-1.1.0/input-pad/button-gtk.c:180:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable input_pad_gtk_button_parent_class [valueFlowBailoutIncompleteVar] 2.18.0 input-pad-1.1.0/input-pad/button-gtk.c:191:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable input_pad_gtk_button_parent_class [valueFlowBailoutIncompleteVar] 2.18.0 input-pad-1.1.0/input-pad/button-gtk.c:201:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable input_pad_gtk_button_parent_class [valueFlowBailoutIncompleteVar] 2.18.0 input-pad-1.1.0/input-pad/button-gtk.c:226:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PANGO_SCALE [valueFlowBailoutIncompleteVar] 2.18.0 input-pad-1.1.0/input-pad/button-gtk.c:247:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CAIRO_FORMAT_ARGB32 [valueFlowBailoutIncompleteVar] 2.18.0 input-pad-1.1.0/input-pad/button-gtk.c:267:16: style: Variable 'height' is assigned a value that is never used. [unreadVariable] 2.18.0 input-pad-1.1.0/input-pad/button-gtk.c:292:16: style: Variable 'image' can be declared as pointer to const [constVariablePointer] 2.18.0 input-pad-1.1.0/input-pad/button-gtk.c:319:25: style: Array index 'i' is used before limits check. [arrayIndexThenCheck] 2.18.0 input-pad-1.1.0/input-pad/button-gtk.c:323:38: style: Variable 'buff2[0]' is reassigned a value before the old one has been used. [redundantAssignment] input-pad-1.1.0/input-pad/button-gtk.c:323:22: note: buff2[0] is assigned input-pad-1.1.0/input-pad/button-gtk.c:323:38: note: buff2[0] is overwritten 2.18.0 input-pad-1.1.0/input-pad/button-gtk.c:339:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable unicode [valueFlowBailoutIncompleteVar] 2.18.0 input-pad-1.1.0/input-pad/button-gtk.c:366:25: style: Array index 'i' is used before limits check. [arrayIndexThenCheck] 2.18.0 input-pad-1.1.0/input-pad/button-gtk.c:370:38: style: Variable 'buff2[0]' is reassigned a value before the old one has been used. [redundantAssignment] input-pad-1.1.0/input-pad/button-gtk.c:370:22: note: buff2[0] is assigned input-pad-1.1.0/input-pad/button-gtk.c:370:38: note: buff2[0] is overwritten head input-pad-1.1.0/input-pad/button-gtk.c:59:0: error: failed to evaluate #if condition, undefined function-like macro invocation: GTK_CHECK_VERSION( ... ) [preprocessorErrorDirective] head input-pad-1.1.0/input-pad/button-gtk.c:59:2: error: failed to evaluate #if condition, undefined function-like macro invocation: GTK_CHECK_VERSION( ... ) [preprocessorErrorDirective] 2.18.0 input-pad-1.1.0/input-pad/button-gtk.c:89:19: style: Variable 'gobject_class' can be declared as pointer to const [constVariablePointer] 2.18.0 input-pad-1.1.0/input-pad/button-gtk.c:98:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable destroy [valueFlowBailoutIncompleteVar] 2.18.0 input-pad-1.1.0/input-pad/window-gtk.c:1152:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ShiftMask [valueFlowBailoutIncompleteVar] 2.18.0 input-pad-1.1.0/input-pad/window-gtk.c:1184:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XK_Control_L [valueFlowBailoutIncompleteVar] 2.18.0 input-pad-1.1.0/input-pad/window-gtk.c:1185:30: style: Same expression on both sides of '||'. [duplicateExpression] 2.18.0 input-pad-1.1.0/input-pad/window-gtk.c:1521:49: warning: Either the condition 'base>0' is redundant or g_ascii_strtoll() argument nr 3 can have invalid value. The value is 1 but the valid values are '0,2:36'. [invalidFunctionArg] input-pad-1.1.0/input-pad/window-gtk.c:1519:5: note: Assuming that condition 'base>0' is not redundant input-pad-1.1.0/input-pad/window-gtk.c:1521:49: note: Invalid argument 2.18.0 input-pad-1.1.0/input-pad/window-gtk.c:1571:9: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] 2.18.0 input-pad-1.1.0/input-pad/window-gtk.c:1640:11: style: Variable 'i' is assigned a value that is never used. [unreadVariable] 2.18.0 input-pad-1.1.0/input-pad/window-gtk.c:1678:16: style: Variable 'image' can be declared as pointer to const [constVariablePointer] 2.18.0 input-pad-1.1.0/input-pad/window-gtk.c:1683:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_ICON_SIZE_MENU [valueFlowBailoutIncompleteVar] 2.18.0 input-pad-1.1.0/input-pad/window-gtk.c:168:33: style: struct member '_InputPadGtkWindowPrivate::module_gdk_xtest' is never used. [unusedStructMember] 2.18.0 input-pad-1.1.0/input-pad/window-gtk.c:1716:21: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] 2.18.0 input-pad-1.1.0/input-pad/window-gtk.c:179:33: style: struct member '_InputPadGtkWindowPrivate::show_layout_action' is never used. [unusedStructMember] 2.18.0 input-pad-1.1.0/input-pad/window-gtk.c:1837:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable data [valueFlowBailoutIncompleteVar] 2.18.0 input-pad-1.1.0/input-pad/window-gtk.c:1964:14: style: Variable 'end' can be declared as pointer to const [constVariablePointer] 2.18.0 input-pad-1.1.0/input-pad/window-gtk.c:1967:14: style: Variable 'extracted' can be declared as pointer to const [constVariablePointer] 2.18.0 input-pad-1.1.0/input-pad/window-gtk.c:2087:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_STYLE_PROVIDER_PRIORITY_APPLICATION [valueFlowBailoutIncompleteVar] 2.18.0 input-pad-1.1.0/input-pad/window-gtk.c:2162:24: style: Variable 'input_pad' can be declared as pointer to const [constVariablePointer] 2.18.0 input-pad-1.1.0/input-pad/window-gtk.c:2205:12: style: Variable 'row' is assigned a value that is never used. [unreadVariable] 2.18.0 input-pad-1.1.0/input-pad/window-gtk.c:2235:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_ALIGN_START [valueFlowBailoutIncompleteVar] 2.18.0 input-pad-1.1.0/input-pad/window-gtk.c:2260:25: style: Variable 'len' is assigned a value that is never used. [unreadVariable] 2.18.0 input-pad-1.1.0/input-pad/window-gtk.c:2487:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_ALIGN_START [valueFlowBailoutIncompleteVar] 2.18.0 input-pad-1.1.0/input-pad/window-gtk.c:3176:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VERSION [valueFlowBailoutIncompleteVar] 2.18.0 input-pad-1.1.0/input-pad/window-gtk.c:3215:49: style: Parameter 'window' can be declared as pointer to const [constParameterPointer] 2.18.0 input-pad-1.1.0/input-pad/window-gtk.c:3287:25: style: Array index 'j' is used before limits check. [arrayIndexThenCheck] 2.18.0 input-pad-1.1.0/input-pad/window-gtk.c:3291:38: style: Variable 'buff2[0]' is reassigned a value before the old one has been used. [redundantAssignment] input-pad-1.1.0/input-pad/window-gtk.c:3291:22: note: buff2[0] is assigned input-pad-1.1.0/input-pad/window-gtk.c:3291:38: note: buff2[0] is overwritten 2.18.0 input-pad-1.1.0/input-pad/window-gtk.c:3296:25: style: Array index 'j' is used before limits check. [arrayIndexThenCheck] 2.18.0 input-pad-1.1.0/input-pad/window-gtk.c:3612:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_ALIGN_START [valueFlowBailoutIncompleteVar] 2.18.0 input-pad-1.1.0/input-pad/window-gtk.c:3737:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_STYLE_PROVIDER_PRIORITY_APPLICATION [valueFlowBailoutIncompleteVar] 2.18.0 input-pad-1.1.0/input-pad/window-gtk.c:3749:40: error: Dereferencing 'model' after it is deallocated / released [deallocuse] 2.18.0 input-pad-1.1.0/input-pad/window-gtk.c:3852:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DATAROOTDIR [valueFlowBailoutIncompleteVar] 2.18.0 input-pad-1.1.0/input-pad/window-gtk.c:393:57: style: Parameter 'window' can be declared as pointer to const. However it seems that 'on_window_keyboard_changed_combobox' is a callback function, if 'window' is declared with const you might also need to cast function pointer(s). [constParameterCallback] input-pad-1.1.0/input-pad/window-gtk.c:3126:5: note: You might need to cast the function pointer here input-pad-1.1.0/input-pad/window-gtk.c:393:57: note: Parameter 'window' can be declared as pointer to const 2.18.0 input-pad-1.1.0/input-pad/window-gtk.c:4048:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_MODULE_BIND_LAZY [valueFlowBailoutIncompleteVar] 2.18.0 input-pad-1.1.0/input-pad/window-gtk.c:4060:30: style: Parameter 'module' can be declared as pointer to const [constParameterPointer] 2.18.0 input-pad-1.1.0/input-pad/window-gtk.c:4227:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MODULE_KBDUI_DIR [valueFlowBailoutIncompleteVar] 2.18.0 input-pad-1.1.0/input-pad/window-gtk.c:4268:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MODULE_KBDUI_DIR [valueFlowBailoutIncompleteVar] 2.18.0 input-pad-1.1.0/input-pad/window-gtk.c:4366:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MODULE_KBDUI_DIR [valueFlowBailoutIncompleteVar] 2.18.0 input-pad-1.1.0/input-pad/window-gtk.c:444:63: style: Parameter 'paddir' can be declared as pointer to const. However it seems that 'on_window_group_changed_custom_char_views' is a callback function, if 'paddir' is declared with const you might also need to cast function pointer(s). [constParameterCallback] input-pad-1.1.0/input-pad/window-gtk.c:3578:5: note: You might need to cast the function pointer here input-pad-1.1.0/input-pad/window-gtk.c:444:63: note: Parameter 'paddir' can be declared as pointer to const 2.18.0 input-pad-1.1.0/input-pad/window-gtk.c:445:63: style: Parameter 'domain' can be declared as pointer to const. However it seems that 'on_window_group_changed_custom_char_views' is a callback function, if 'domain' is declared with const you might also need to cast function pointer(s). [constParameterCallback] input-pad-1.1.0/input-pad/window-gtk.c:3578:5: note: You might need to cast the function pointer here input-pad-1.1.0/input-pad/window-gtk.c:445:63: note: Parameter 'domain' can be declared as pointer to const 2.18.0 input-pad-1.1.0/input-pad/window-gtk.c:4498:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable input_pad_gtk_window_parent_class [valueFlowBailoutIncompleteVar] 2.18.0 input-pad-1.1.0/input-pad/window-gtk.c:4511:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable input_pad_gtk_window_parent_class [valueFlowBailoutIncompleteVar] 2.18.0 input-pad-1.1.0/input-pad/window-gtk.c:4545:19: style: Variable 'gobject_class' can be declared as pointer to const [constVariablePointer] 2.18.0 input-pad-1.1.0/input-pad/window-gtk.c:4574:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_TYPE_STRING [valueFlowBailoutIncompleteVar] 2.18.0 input-pad-1.1.0/input-pad/window-gtk.c:4637:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_WINDOW_POPUP [valueFlowBailoutIncompleteVar] 2.18.0 input-pad-1.1.0/input-pad/window-gtk.c:4671:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_WINDOW_TOPLEVEL [valueFlowBailoutIncompleteVar] 2.18.0 input-pad-1.1.0/input-pad/window-gtk.c:4679:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VERSION [valueFlowBailoutIncompleteVar] 2.18.0 input-pad-1.1.0/input-pad/window-gtk.c:470:64: style: Parameter 'padfile' can be declared as pointer to const. However it seems that 'on_window_group_appended_custom_char_views' is a callback function, if 'padfile' is declared with const you might also need to cast function pointer(s). [constParameterCallback] input-pad-1.1.0/input-pad/window-gtk.c:3581:5: note: You might need to cast the function pointer here input-pad-1.1.0/input-pad/window-gtk.c:470:64: note: Parameter 'padfile' can be declared as pointer to const 2.18.0 input-pad-1.1.0/input-pad/window-gtk.c:471:64: style: Parameter 'domain' can be declared as pointer to const. However it seems that 'on_window_group_appended_custom_char_views' is a callback function, if 'domain' is declared with const you might also need to cast function pointer(s). [constParameterCallback] input-pad-1.1.0/input-pad/window-gtk.c:3581:5: note: You might need to cast the function pointer here input-pad-1.1.0/input-pad/window-gtk.c:471:64: note: Parameter 'domain' can be declared as pointer to const 2.18.0 input-pad-1.1.0/input-pad/window-gtk.c:4752:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ShiftMask [valueFlowBailoutIncompleteVar] 2.18.0 input-pad-1.1.0/input-pad/window-gtk.c:4778:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MODULE_KBDUI_DIR [valueFlowBailoutIncompleteVar] 2.18.0 input-pad-1.1.0/input-pad/window-gtk.c:496:53: style: Parameter 'window' can be declared as pointer to const. However it seems that 'on_window_char_button_sensitive' is a callback function, if 'window' is declared with const you might also need to cast function pointer(s). [constParameterCallback] input-pad-1.1.0/input-pad/window-gtk.c:2329:13: note: You might need to cast the function pointer here input-pad-1.1.0/input-pad/window-gtk.c:496:53: note: Parameter 'window' can be declared as pointer to const 2.18.0 input-pad-1.1.0/input-pad/window-gtk.c:4986:57: style: Parameter 'window' can be declared as pointer to const [constParameterPointer] 2.18.0 input-pad-1.1.0/input-pad/window-gtk.c:5025:58: style: Parameter 'window' can be declared as pointer to const [constParameterPointer] 2.18.0 input-pad-1.1.0/input-pad/window-gtk.c:5095:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GETTEXT_PACKAGE [valueFlowBailoutIncompleteVar] 2.18.0 input-pad-1.1.0/input-pad/window-gtk.c:5182:34: style:inconclusive: Function 'on_toggle_action' argument 3 names different: declaration 'app' definition 'data'. [funcArgNamesDifferent] input-pad-1.1.0/input-pad/window-gtk.c:350:68: note: Function 'on_toggle_action' argument 3 names different: declaration 'app' definition 'data'. input-pad-1.1.0/input-pad/window-gtk.c:5182:34: note: Function 'on_toggle_action' argument 3 names different: declaration 'app' definition 'data'. 2.18.0 input-pad-1.1.0/input-pad/window-gtk.c:5193:19: style: Variable 'false_name' can be declared as pointer to const [constVariablePointer] 2.18.0 input-pad-1.1.0/input-pad/window-gtk.c:5249:33: style:inconclusive: Function 'on_check_action' argument 3 names different: declaration 'app' definition 'data'. [funcArgNamesDifferent] input-pad-1.1.0/input-pad/window-gtk.c:353:68: note: Function 'on_check_action' argument 3 names different: declaration 'app' definition 'data'. input-pad-1.1.0/input-pad/window-gtk.c:5249:33: note: Function 'on_check_action' argument 3 names different: declaration 'app' definition 'data'. 2.18.0 input-pad-1.1.0/input-pad/window-gtk.c:5338:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable input_pad_gtk_application_parent_class [valueFlowBailoutIncompleteVar] 2.18.0 input-pad-1.1.0/input-pad/window-gtk.c:5364:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable show [valueFlowBailoutIncompleteVar] 2.18.0 input-pad-1.1.0/input-pad/window-gtk.c:5413:63: style: Parameter 'app' can be declared as pointer to const [constParameterPointer] head input-pad-1.1.0/input-pad/window-gtk.c:56:0: error: failed to evaluate #if condition, undefined function-like macro invocation: GTK_CHECK_VERSION( ... ) [preprocessorErrorDirective] head input-pad-1.1.0/input-pad/window-gtk.c:56:2: error: failed to evaluate #if condition, undefined function-like macro invocation: GTK_CHECK_VERSION( ... ) [preprocessorErrorDirective] 2.18.0 input-pad-1.1.0/input-pad/window-gtk.c:572:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XK_Shift_L [valueFlowBailoutIncompleteVar] 2.18.0 input-pad-1.1.0/input-pad/window-gtk.c:604:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ControlMask [valueFlowBailoutIncompleteVar] 2.18.0 input-pad-1.1.0/input-pad/window-gtk.c:614:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Mod1Mask [valueFlowBailoutIncompleteVar] 2.18.0 input-pad-1.1.0/input-pad/window-gtk.c:758:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KeyPress [valueFlowBailoutIncompleteVar] 2.18.0 input-pad-1.1.0/input-pad/window-gtk.c:934:25: error: Allocation with g_strdup, gtk_tree_store_set doesn't release it. [leakNoVarFunctionCall] 2.18.0 input-pad-1.1.0/input-pad/window-gtk.c:939:25: error: Allocation with g_strdup, gtk_tree_store_set doesn't release it. [leakNoVarFunctionCall] DONE