2026-05-05 13:09 ftp://ftp.de.debian.org/debian/pool/main/t/triggerhappy/triggerhappy_0.5.0.orig.tar.xz cppcheck-options: --library=posix --library=gnu --library=bsd --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-111-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.70 compiler: g++ (Ubuntu 14.2.0-4ubuntu2~24.04.1) 14.2.0 cppcheck: head 2.20.0 head-info: 6278f6b (2026-05-05 15:01:04 +0200) count: 56 51 elapsed-time: 0.4 0.3 head-timing-info: old-timing-info: head results: triggerhappy-0.5.0/cmdsocket.c:46:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_UNIX [valueFlowBailoutIncompleteVar] triggerhappy-0.5.0/cmdsocket.c:57:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_UNIX [valueFlowBailoutIncompleteVar] triggerhappy-0.5.0/cmdsocket.c:66:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] triggerhappy-0.5.0/cmdsocket.c:133:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] triggerhappy-0.5.0/cmdsocket.c:27:27: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] triggerhappy-0.5.0/cmdsocket.c:52:30: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] triggerhappy-0.5.0/cmdsocket.c:100:61: style: Parameter 'param' can be declared as pointer to const [constParameterPointer] triggerhappy-0.5.0/cmdsocket.c:100:101: style: Parameter 'tag' can be declared as pointer to const [constParameterPointer] triggerhappy-0.5.0/devices.c:48:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EV_KEY [valueFlowBailoutIncompleteVar] triggerhappy-0.5.0/devices.c:59:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] triggerhappy-0.5.0/devices.c:52:23: style: Parameter 'dev' can be declared as pointer to const [constParameterPointer] triggerhappy-0.5.0/devices.c:52:52: style: Parameter 'tag' can be declared as pointer to const [constParameterPointer] triggerhappy-0.5.0/devices.c:100:25: style: Parameter 'dev' can be declared as pointer to const [constParameterPointer] triggerhappy-0.5.0/devices.c:133:10: style: Variable 'p' can be declared as pointer to const [constVariablePointer] triggerhappy-0.5.0/eventnames.c:16:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KEY_MAX [valueFlowBailoutIncompleteVar] triggerhappy-0.5.0/eventnames.c:33:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EV_MAX [valueFlowBailoutIncompleteVar] triggerhappy-0.5.0/eventnames.c:54:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KEY_MAX [valueFlowBailoutIncompleteVar] triggerhappy-0.5.0/eventnames.c:62:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KEY_MAX [valueFlowBailoutIncompleteVar] triggerhappy-0.5.0/eventnames.c:54:10: style: The comparison 'res == -1' is always true. [knownConditionTrueFalse] triggerhappy-0.5.0/eventnames.c:53:13: note: 'res' is assigned value '-1' here. triggerhappy-0.5.0/eventnames.c:54:10: note: The comparison 'res == -1' is always true. triggerhappy-0.5.0/ignore.c:21:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] triggerhappy-0.5.0/ignore.c:26:10: style: Variable 'p' can be declared as pointer to const [constVariablePointer] triggerhappy-0.5.0/ignore.c:33:10: style: Variable 'p' can be declared as pointer to const [constVariablePointer] triggerhappy-0.5.0/keystate.c:19:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] triggerhappy-0.5.0/keystate.c:32:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EV_KEY [valueFlowBailoutIncompleteVar] triggerhappy-0.5.0/keystate.c:61:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KEY_MAX [valueFlowBailoutIncompleteVar] triggerhappy-0.5.0/keystate.c:14:45: style:inconclusive: Function 'init_keystate_holder' argument 1 names different: declaration '' definition 'ksh'. [funcArgNamesDifferentUnnamed] triggerhappy-0.5.0/keystate.c:31:39: style:inconclusive: Function 'change_keystate' argument 1 names different: declaration '' definition 'ksh'. [funcArgNamesDifferentUnnamed] triggerhappy-0.5.0/keystate.c:31:63: style:inconclusive: Function 'change_keystate' argument 2 names different: declaration '' definition 'ev'. [funcArgNamesDifferentUnnamed] triggerhappy-0.5.0/keystate.c:48:36: style:inconclusive: Function 'get_keystate' argument 1 names different: declaration '' definition 'ksh'. [funcArgNamesDifferentUnnamed] triggerhappy-0.5.0/keystate.c:52:47: style:inconclusive: Function 'get_keystate_ignore_key' argument 1 names different: declaration '' definition 'ksh'. [funcArgNamesDifferentUnnamed] triggerhappy-0.5.0/keystate.c:54:8: style: Variable 'KS' can be declared as pointer to const [constVariablePointer] triggerhappy-0.5.0/th-cmd.c:24:43: error: There is an unknown macro here somewhere. Configuration is required. If TH_VERSION is a macro then please configure it. [unknownMacro] triggerhappy-0.5.0/thd.c:223:39: error: There is an unknown macro here somewhere. Configuration is required. If TH_VERSION is a macro then please configure it. [unknownMacro] triggerhappy-0.5.0/trigger.c:38:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] triggerhappy-0.5.0/trigger.c:71:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] triggerhappy-0.5.0/trigger.c:119:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable d_name [valueFlowBailoutIncompleteVar] triggerhappy-0.5.0/trigger.c:168:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KEY_MAX [valueFlowBailoutIncompleteVar] triggerhappy-0.5.0/trigger.c:196:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EV_KEY [valueFlowBailoutIncompleteVar] triggerhappy-0.5.0/trigger.c:157:24: style: Checking if unsigned expression 'ksh[code]' is less than zero. [unsignedLessThanZero] triggerhappy-0.5.0/trigger.c:34:38: style:inconclusive: Function 'change_trigger_mode' argument 1 names different: declaration 'tmode' definition 'mode'. [funcArgNamesDifferent] triggerhappy-0.5.0/trigger.h:31:39: note: Function 'change_trigger_mode' argument 1 names different: declaration 'tmode' definition 'mode'. triggerhappy-0.5.0/trigger.c:34:38: note: Function 'change_trigger_mode' argument 1 names different: declaration 'tmode' definition 'mode'. triggerhappy-0.5.0/trigger.c:101:31: style:inconclusive: Function 'read_triggers' argument 1 names different: declaration 'filename' definition 'path'. [funcArgNamesDifferent] triggerhappy-0.5.0/trigger.h:25:31: note: Function 'read_triggers' argument 1 names different: declaration 'filename' definition 'path'. triggerhappy-0.5.0/trigger.c:101:31: note: Function 'read_triggers' argument 1 names different: declaration 'filename' definition 'path'. triggerhappy-0.5.0/trigger.c:208:9: style: Local variable 'type' shadows outer argument [shadowArgument] triggerhappy-0.5.0/trigger.c:182:23: note: Shadowed declaration triggerhappy-0.5.0/trigger.c:208:9: note: Shadow variable triggerhappy-0.5.0/trigger.c:209:9: style: Local variable 'code' shadows outer argument [shadowArgument] triggerhappy-0.5.0/trigger.c:182:33: note: Shadowed declaration triggerhappy-0.5.0/trigger.c:209:9: note: Shadow variable triggerhappy-0.5.0/trigger.c:186:18: style: Pointer expression 'tag' converted to bool is always true. [knownPointerToBool] triggerhappy-0.5.0/trigger.c:93:8: style: Variable 'end' can be declared as pointer to const [constVariablePointer] triggerhappy-0.5.0/trigger.c:119:11: style: Variable 'file' can be declared as pointer to const [constVariablePointer] triggerhappy-0.5.0/trigger.c:120:11: style: Variable 'sep' can be declared as pointer to const [constVariablePointer] triggerhappy-0.5.0/trigger.c:206:11: style: Variable 'keyname' can be declared as pointer to const [constVariablePointer] triggerhappy-0.5.0/trigger.c:245:11: style: Variable 'p' can be declared as pointer to const [constVariablePointer] triggerhappy-0.5.0/triggerparser.c:98:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] triggerhappy-0.5.0/triggerparser.c:43:8: style: Variable 's_trigger' can be declared as pointer to const [constVariablePointer] triggerhappy-0.5.0/triggerparser.c:47:9: style: Variable 's_mod' can be declared as pointer to const [constVariablePointer] triggerhappy-0.5.0/triggerparser.c:83:8: style: Variable 'delim' can be declared as pointer to const [constVariablePointer] triggerhappy-0.5.0/triggerparser.c:88:8: style: Variable 's_value' can be declared as pointer to const [constVariablePointer] triggerhappy-0.5.0/uinput.c:23:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_WRONLY [valueFlowBailoutIncompleteVar] triggerhappy-0.5.0/uinput.c:77:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] diff: head triggerhappy-0.5.0/keystate.c:14:45: style:inconclusive: Function 'init_keystate_holder' argument 1 names different: declaration '' definition 'ksh'. [funcArgNamesDifferentUnnamed] head triggerhappy-0.5.0/keystate.c:31:39: style:inconclusive: Function 'change_keystate' argument 1 names different: declaration '' definition 'ksh'. [funcArgNamesDifferentUnnamed] head triggerhappy-0.5.0/keystate.c:31:63: style:inconclusive: Function 'change_keystate' argument 2 names different: declaration '' definition 'ev'. [funcArgNamesDifferentUnnamed] head triggerhappy-0.5.0/keystate.c:48:36: style:inconclusive: Function 'get_keystate' argument 1 names different: declaration '' definition 'ksh'. [funcArgNamesDifferentUnnamed] head triggerhappy-0.5.0/keystate.c:52:47: style:inconclusive: Function 'get_keystate_ignore_key' argument 1 names different: declaration '' definition 'ksh'. [funcArgNamesDifferentUnnamed] DONE