2026-05-02 18:44 ftp://ftp.de.debian.org/debian/pool/main/k/kbd/kbd_2.9.0.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --library=zlib --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: e5c4a73 (2026-05-01 11:10:43 +0200) count: 307 310 elapsed-time: 2.5 2.2 head-timing-info: old-timing-info: head results: kbd-2.9.0/contrib/codepage.c:162:3: warning: %ld in format string (no. 6) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] kbd-2.9.0/contrib/codepage.c:186:5: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] kbd-2.9.0/contrib/codepage.c:229:3: warning: %ld in format string (no. 7) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] kbd-2.9.0/contrib/codepage.c:229:3: warning: %ld in format string (no. 8) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] kbd-2.9.0/contrib/codepage.c:257:4: warning: %ld in format string (no. 2) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] kbd-2.9.0/contrib/codepage.c:284:12: warning: If memory allocation fails, then there is a possible null pointer dereference: fonts [nullPointerOutOfMemory] kbd-2.9.0/contrib/codepage.c:282:33: note: Assuming allocation function fails kbd-2.9.0/contrib/codepage.c:282:10: note: Assignment 'fonts=(unsigned char*)malloc(CPInfoHeader.size)', assigned value is 0 kbd-2.9.0/contrib/codepage.c:284:12: note: Null pointer dereference kbd-2.9.0/contrib/codepage.c:215:25: style:inconclusive: Function 'handle_codepage' argument 1 names different: declaration '' definition 'more_to_come'. [funcArgNamesDifferentUnnamed] kbd-2.9.0/contrib/dropkeymaps.c:20:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_NR_KEYMAPS [valueFlowBailoutIncompleteVar] kbd-2.9.0/contrib/splitfont.c:19:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] kbd-2.9.0/contrib/splitfont.c:52:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] kbd-2.9.0/contrib/splitfont.c:34:13: warning: Either the condition '(fd=open(filename,O_WRONLY|O_CREAT,0666))<0' is redundant or write() argument nr 1 can have invalid value. The value is -1 but the valid values are '0:'. [invalidFunctionArg] kbd-2.9.0/contrib/splitfont.c:29:55: note: Assuming that condition '(fd=open(filename,O_WRONLY|O_CREAT,0666))<0' is not redundant kbd-2.9.0/contrib/splitfont.c:34:13: note: Invalid argument kbd-2.9.0/contrib/splitfont.c:19:3: warning: %s in format string (no. 1) requires 'char *' but the argument type is 'signed int'. [invalidPrintfArgType_s] kbd-2.9.0/contrib/splitfont.c:19:3: warning: %s in format string (no. 2) requires 'char *' but the argument type is 'signed int'. [invalidPrintfArgType_s] kbd-2.9.0/contrib/splitfont.c:11:63: style: Parameter 'fontfile' can be declared as pointer to const [constParameterPointer] kbd-2.9.0/contrib/splitfont.c:15:8: style: Variable 'p' can be declared as pointer to const [constVariablePointer] kbd-2.9.0/contrib/splitfont.c:48:8: style: Variable 'p' can be declared as pointer to const [constVariablePointer] kbd-2.9.0/contrib/splitfont.c:14:6: style: Unused variable: i [unusedVariable] kbd-2.9.0/contrib/splitfont.c:15:12: style: Unused variable: q [unusedVariable] kbd-2.9.0/contrib/splitfont.c:15:15: style: Unused variable: s [unusedVariable] kbd-2.9.0/contrib/sti.c:17:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] kbd-2.9.0/contrib/vcstime.c:24:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] kbd-2.9.0/contrib/vcstime.c:40:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_WRONLY [valueFlowBailoutIncompleteVar] kbd-2.9.0/contrib/vcstime.c:46:9: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] kbd-2.9.0/contrib/vcstime.c:49:3: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] kbd-2.9.0/contrib/vcstime.c:13:18: style: Parameter 's' can be declared as pointer to const [constParameterPointer] kbd-2.9.0/contrib/vcstime.c:37:13: style: Variable 't' can be declared as pointer to const [constVariablePointer] kbd-2.9.0/src/chvt.c:24:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable program_invocation_short_name [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/chvt.c:66:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/chvt.c:33:51: style: Parameter 'KBD_ATTR_UNUSED' can be declared as pointer to const. However it seems that 'sighandler' is a callback function, if 'KBD_ATTR_UNUSED' is declared with const you might also need to cast function pointer(s). [constParameterCallback] kbd-2.9.0/src/chvt.c:93:20: note: You might need to cast the function pointer here kbd-2.9.0/src/chvt.c:33:51: note: Parameter 'KBD_ATTR_UNUSED' can be declared as pointer to const kbd-2.9.0/src/chvt.c:33:77: style: Parameter 'KBD_ATTR_UNUSED' can be declared as pointer to const. However it seems that 'sighandler' is a callback function, if 'KBD_ATTR_UNUSED' is declared with const you might also need to cast function pointer(s). [constParameterCallback] kbd-2.9.0/src/chvt.c:93:20: note: You might need to cast the function pointer here kbd-2.9.0/src/chvt.c:33:77: note: Parameter 'KBD_ATTR_UNUSED' can be declared as pointer to const kbd-2.9.0/src/chvt.c:38:26: style: Parameter 'argv' can be declared as const array [constParameter] kbd-2.9.0/src/clrunimap.c:23:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/clrunimap.c:55:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/clrunimap.c:31:26: style: Parameter 'argv' can be declared as const array [constParameter] kbd-2.9.0/src/deallocvt.c:24:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable program_invocation_short_name [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/deallocvt.c:60:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/dumpkeys.c:30:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable program_invocation_short_name [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/dumpkeys.c:59:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LK_SHAPE_DEFAULT [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/dumpkeys.c:51:26: style: Parameter 'argv' can be declared as const array [constParameter] kbd-2.9.0/src/fgconsole.c:21:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable program_invocation_short_name [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/fgconsole.c:53:68: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/getkeycodes.c:23:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable program_invocation_short_name [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/getkeycodes.c:61:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EX_USAGE [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/getkeycodes.c:0:0: debug: ValueFlow maximum iterations exceeded [valueFlowMaxIterations] kbd-2.9.0/src/getkeycodes.c:105:4: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] kbd-2.9.0/src/getunimap.c:35:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable program_invocation_short_name [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/getunimap.c:76:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/getunimap.c:123:26: style: Condition '!isprint(mb[0])' is always true [knownConditionTrueFalse] kbd-2.9.0/src/kbd_mode.c:23:2: error: failed to evaluate #if condition, undefined function-like macro invocation: KERNEL_VERSION( ... ) [syntaxError] kbd-2.9.0/src/kbdinfo.c:26:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable program_invocation_short_name [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/kbdinfo.c:74:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/kbdrate.c:128:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KDKBDREP [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/kbdrate.c:268:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/kbdrate.c:321:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable program_invocation_short_name [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/kbdrate.c:361:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/kbdrate.c:275:9: warning: Either the condition '(fd=open("/dev/port",O_RDWR))<0' is redundant or lseek() argument nr 1 can have invalid value. The value is -1 but the valid values are '0:'. [invalidFunctionArg] kbd-2.9.0/src/kbdrate.c:268:39: note: Assuming that condition '(fd=open("/dev/port",O_RDWR))<0' is not redundant kbd-2.9.0/src/kbdrate.c:275:9: note: Invalid argument kbd-2.9.0/src/kbdrate.c:276:12: warning: Either the condition '(fd=open("/dev/port",O_RDWR))<0' is redundant or read() argument nr 1 can have invalid value. The value is -1 but the valid values are '0:'. [invalidFunctionArg] kbd-2.9.0/src/kbdrate.c:268:39: note: Assuming that condition '(fd=open("/dev/port",O_RDWR))<0' is not redundant kbd-2.9.0/src/kbdrate.c:276:12: note: Invalid argument kbd-2.9.0/src/libcommon/error.c:18:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/libcommon/error.c:35:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/libcommon/getfd.c:37:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KDGKBTYPE [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/libcommon/getfd.c:49:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/libcommon/getfd.c:70:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/libcommon/version.c:25:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/libcommon/version.c:43:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/libkbdfile/elf-note.c:23:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENXIO [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/libkbdfile/elf-note.c:40:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOENT [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/libkbdfile/init.c:139:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/libkbdfile/init.c:73:40: style: Parameter 'ctx' can be declared as pointer to const [constParameterPointer] kbd-2.9.0/src/libkbdfile/init.c:94:42: style: Parameter 'ctx' can be declared as pointer to const [constParameterPointer] kbd-2.9.0/src/libkbdfile/init.c:112:50: style: Parameter 'ctx' can be declared as pointer to const [constParameterPointer] kbd-2.9.0/src/libkbdfile/contextP.h:74:69: style: Parameter 'KBD_ATTR_UNUSED' can be declared as pointer to const [constParameterPointer] kbd-2.9.0/src/libkbdfile/kbdfile-bzip2.c:47:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/libkbdfile/kbdfile-bzip2.c:34:40: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] kbd-2.9.0/src/libkbdfile/kbdfile-bzip2.c:29:2: style: Variable '__unique_prefix_sUNIQ' is assigned a value that is never used. [unreadVariable] kbd-2.9.0/src/libkbdfile/kbdfile-lzma.c:45:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LZMA_STREAM_INIT [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/libkbdfile/kbdfile-lzma.c:34:41: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] kbd-2.9.0/src/libkbdfile/kbdfile-lzma.c:29:2: style: Variable '__unique_prefix_sUNIQ' is assigned a value that is never used. [unreadVariable] kbd-2.9.0/src/libkbdfile/kbdfile-zlib.c:47:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/libkbdfile/kbdfile-zlib.c:34:38: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] kbd-2.9.0/src/libkbdfile/kbdfile-zlib.c:29:2: style: Variable '__unique_prefix_sUNIQ' is assigned a value that is never used. [unreadVariable] kbd-2.9.0/src/libkbdfile/kbdfile-zstd.c:51:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/libkbdfile/kbdfile-zstd.c:36:41: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] kbd-2.9.0/src/libkbdfile/kbdfile-zstd.c:31:2: style: Variable '__unique_prefix_sUNIQ' is assigned a value that is never used. [unreadVariable] kbd-2.9.0/src/libkbdfile/kbdfile.c:140:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/libkbdfile/kbdfile.c:165:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/libkbdfile/kbdfile.c:185:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/libkbdfile/kbdfile.c:357:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/libkbdfile/kbdfile.c:471:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/libkbdfile/kbdfile.c:67:38: style: Parameter 'fp' can be declared as pointer to const [constParameterPointer] kbd-2.9.0/src/libkbdfile/kbdfile.c:105:34: style: Parameter 'fp' can be declared as pointer to const [constParameterPointer] kbd-2.9.0/src/libkbdfile/kbdfile.c:340:8: style: Variable 'ff' can be declared as pointer to const [constVariablePointer] kbd-2.9.0/src/libkbdfile/kbdfile.c:545:39: style: Parameter 'fp' can be declared as pointer to const [constParameterPointer] kbd-2.9.0/src/libkbdfile/contextP.h:74:69: style: Parameter 'KBD_ATTR_UNUSED' can be declared as pointer to const. However it seems that 'kbdfile_decompressor_dummy' is a callback function, if 'KBD_ATTR_UNUSED' is declared with const you might also need to cast function pointer(s). [constParameterCallback] kbd-2.9.0/src/libkbdfile/kbdfile.c:29:20: note: You might need to cast the function pointer here kbd-2.9.0/src/libkbdfile/contextP.h:74:69: note: Parameter 'KBD_ATTR_UNUSED' can be declared as pointer to const kbd-2.9.0/src/libkeymap/array.c:15:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/libkeymap/array.c:37:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/libkeymap/array.c:49:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/libkeymap/array.c:66:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/libkeymap/array.c:84:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/libkeymap/array.c:95:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/libkeymap/array.c:106:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/libkeymap/array.c:143:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/libkeymap/array.c:60:34: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] kbd-2.9.0/src/libkeymap/array.c:62:8: style: Variable 's' can be declared as pointer to const [constVariablePointer] kbd-2.9.0/src/libkeymap/array.c:81:31: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] kbd-2.9.0/src/libkeymap/common.c:156:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable lk_array [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/libkeymap/common.c:186:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/libkeymap/common.c:190:8: style: Condition 'ret' is always false [knownConditionTrueFalse] kbd-2.9.0/src/libkeymap/common.c:188:12: note: Assignment 'ret=0', assigned value is 0 kbd-2.9.0/src/libkeymap/common.c:190:8: note: Condition 'ret' is always false kbd-2.9.0/src/libkeymap/common.c:82:42: style: Parameter 'ctx' can be declared as pointer to const [constParameterPointer] kbd-2.9.0/src/libkeymap/common.c:90:38: style: Parameter 'ctx' can be declared as pointer to const [constParameterPointer] kbd-2.9.0/src/libkeymap/common.c:98:40: style: Parameter 'ctx' can be declared as pointer to const [constParameterPointer] kbd-2.9.0/src/libkeymap/common.c:116:36: style: Parameter 'ctx' can be declared as pointer to const [constParameterPointer] kbd-2.9.0/src/libkeymap/common.c:133:44: style: Parameter 'ctx' can be declared as pointer to const [constParameterPointer] kbd-2.9.0/src/libkeymap/diacr.c:30:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/libkeymap/diacr.c:45:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable lk_kbdiacr [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/libkeymap/diacr.c:64:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable lk_kbdiacr [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/libkeymap/diacr.c:86:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/libkeymap/diacr.c:102:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TO_8BIT [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/libkeymap/diacr.c:26:21: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] kbd-2.9.0/src/libkeymap/diacr.c:41:60: style: Parameter 'dcr' can be declared as pointer to const [constParameterPointer] kbd-2.9.0/src/libkeymap/diacr.c:60:68: style: Parameter 'dcr' can be declared as pointer to const [constParameterPointer] kbd-2.9.0/src/libkeymap/diacr.c:99:62: style: Parameter 'dcr' can be declared as pointer to const [constParameterPointer] kbd-2.9.0/src/libkeymap/dump.c:70:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_NR_KEYMAPS [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/libkeymap/dump.c:130:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_NR_FUNC [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/libkeymap/dump.c:257:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KT_FN [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/libkeymap/dump.c:384:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KT_LETTER [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/libkeymap/dump.c:419:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_NR_KEYMAPS [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/libkeymap/dump.c:266:5: warning: %hho in format string (no. 1) requires 'unsigned char' but the argument type is 'char'. [invalidPrintfArgType_uint] kbd-2.9.0/src/libkeymap/dump.c:62:7: style: Variable 'magic' can be declared as const array [constVariable] kbd-2.9.0/src/libkeymap/dump.c:132:21: style: Variable 'kddiac' can be declared as pointer to const [constVariablePointer] kbd-2.9.0/src/libkeymap/dump.c:188:24: style: Variable 'func' can be declared as pointer to const [constVariablePointer] kbd-2.9.0/src/libkeymap/dump.c:278:21: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] kbd-2.9.0/src/libkeymap/dump.c:355:15: style: Variable 'mod' can be declared as pointer to const [constVariablePointer] kbd-2.9.0/src/libkeymap/func.c:29:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/libkeymap/func.c:50:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/libkeymap/func.c:66:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/libkeymap/kernel.c:24:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_NR_KEYMAPS [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/libkeymap/kernel.c:63:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_NR_FUNC [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/libkeymap/kernel.c:93:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KDGKBDIACR [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/libkeymap/kernel.c:122:8: style: Condition 'ret' is always false [knownConditionTrueFalse] kbd-2.9.0/src/libkeymap/kernel.c:120:12: note: Assignment 'ret=0', assigned value is 0 kbd-2.9.0/src/libkeymap/kernel.c:122:8: note: Condition 'ret' is always false kbd-2.9.0/src/libkeymap/kernel.c:95:18: style: Variable 'ar' can be declared as pointer to const [constVariablePointer] kbd-2.9.0/src/libkeymap/kmap.c:25:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NR_KEYS [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/libkeymap/kmap.c:58:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable lk_array [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/libkeymap/kmap.c:82:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/libkeymap/kmap.c:100:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/libkeymap/kmap.c:121:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_FOR_UNKNOWN_KSYM [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/libkeymap/kmap.c:177:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KT_LATIN [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/libkeymap/kmap.c:224:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LK_KEYWORD_KEYMAPS [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/libkeymap/kmap.c:19:19: style: Variable 'map' can be declared as pointer to const [constVariablePointer] kbd-2.9.0/src/libkeymap/kmap.c:35:16: style: Variable 'key' can be declared as pointer to const [constVariablePointer] kbd-2.9.0/src/libkeymap/kmap.c:78:7: style: Variable 'key' can be declared as pointer to const [constVariablePointer] kbd-2.9.0/src/libkeymap/kmap.c:230:9: style: Variable 'constant' can be declared as pointer to const [constVariablePointer] kbd-2.9.0/src/libkeymap/ksyms.c:178:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/libkeymap/ksyms.c:192:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/libkeymap/ksyms.c:218:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KT_LATIN [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/libkeymap/ksyms.c:279:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TO_UNICODE [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/libkeymap/ksyms.c:320:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TO_AUTO [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/libkeymap/ksyms.c:406:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TO_UNICODE [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/libkeymap/ksyms.c:412:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TO_UNICODE [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/libkeymap/ksyms.c:457:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KT_LATIN [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/libkeymap/ksyms.c:471:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_FOR_UNKNOWN_KSYM [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/libkeymap/ksyms.c:478:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_FOR_UNKNOWN_KSYM [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/libkeymap/ksyms.c:153:31: style: Parameter 'ctx' can be declared as pointer to const [constParameterPointer] kbd-2.9.0/src/libkeymap/loadkeys.c:23:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NR_KEYS [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/libkeymap/loadkeys.c:77:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable K_NOSUCHMAP [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/libkeymap/loadkeys.c:115:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LK_FLAG_UNICODE_MODE [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/libkeymap/loadkeys.c:159:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/libkeymap/loadkeys.c:192:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_NR_FUNC [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/libkeymap/loadkeys.c:230:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_DIACR [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/libkeymap/loadkeys.c:301:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_INFO [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/libkeymap/loadkeys.c:152:32: style: Parameter 's' can be declared as pointer to const [constParameterPointer] kbd-2.9.0/src/libkeymap/loadkeys.c:228:21: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] kbd-2.9.0/src/libkeymap/summary.c:29:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KDSKBENT [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/libkeymap/summary.c:40:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable K_HOLE [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/libkeymap/summary.c:72:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_NR_KEYMAPS [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/libkeymap/summary.c:92:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NR_KEYS [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/libkeymap/summary.c:127:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KT_META [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/libkeymap/summary.c:88:34: style: Condition 'lk_get_kmapinfo(ctx,&info)<0' is always false [knownConditionTrueFalse] kbd-2.9.0/src/libkeymap/summary.c:88:21: note: Calling function 'lk_get_kmapinfo' returns 0 kbd-2.9.0/src/libkeymap/summary.c:88:34: note: Condition 'lk_get_kmapinfo(ctx,&info)<0' is always false kbd-2.9.0/src/libkeymap/summary.c:118:14: style: Variable 'mod' can be declared as pointer to const [constVariablePointer] kbd-2.9.0/src/libkfont/kfontP.h:55:2: error: There is an unknown macro here somewhere. Configuration is required. If KBD_ATTR_PRINTF is a macro then please configure it. [unknownMacro] kbd-2.9.0/src/loadkeys.c:28:14: error: There is an unknown macro here somewhere. Configuration is required. If KEYMAPDIR is a macro then please configure it. [unknownMacro] kbd-2.9.0/src/loadunimap.c:27:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable program_invocation_short_name [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/loadunimap.c:65:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/loadunimap.c:37:26: style: Parameter 'argv' can be declared as const array [constParameter] kbd-2.9.0/src/mapscrn.c:26:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable program_invocation_short_name [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/mapscrn.c:61:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable program_invocation_short_name [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/openvt.c:44:2: error: #error vt device name must be defined [preprocessorErrorDirective] kbd-2.9.0/src/outpsfheader.c:18:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/outpsfheader.c:53:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EX_USAGE [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/psfxtable.c:60:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable program_invocation_short_name [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/psfxtable.c:118:8: style: Variable 'ifil' is reassigned a value before the old one has been used. [redundantAssignment] kbd-2.9.0/src/psfxtable.c:54:7: note: ifil is assigned kbd-2.9.0/src/psfxtable.c:118:8: note: ifil is overwritten kbd-2.9.0/src/readpsfheader.c:15:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/readpsfheader.c:56:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EX_USAGE [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/readpsfheader.c:27:6: style: Unused variable: psftype [unusedVariable] kbd-2.9.0/src/readpsfheader.c:27:24: style: Unused variable: charsize [unusedVariable] kbd-2.9.0/src/readpsfheader.c:27:34: style: Unused variable: hastable [unusedVariable] kbd-2.9.0/src/readpsfheader.c:27:44: style: Unused variable: notable [unusedVariable] kbd-2.9.0/src/readpsfheader.c:28:17: style: Unused variable: bytewidth [unusedVariable] kbd-2.9.0/src/readpsfheader.c:28:28: style: Unused variable: height [unusedVariable] kbd-2.9.0/src/resizecons.c:105:14: error: There is an unknown macro here somewhere. Configuration is required. If VIDEOMODEDIR is a macro then please configure it. [unknownMacro] kbd-2.9.0/src/screendump.c:37:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/screendump.c:79:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EX_USAGE [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/screendump.c:167:2: warning: If memory allocation fails, then there is a possible null pointer dereference: screenbuf [nullPointerOutOfMemory] kbd-2.9.0/src/screendump.c:163:20: note: Assuming allocation function fails kbd-2.9.0/src/screendump.c:163:20: note: Assignment 'screenbuf=malloc(2+(unsigned long)(win.ws_row*win.ws_col))', assigned value is 0 kbd-2.9.0/src/screendump.c:167:2: note: Null pointer dereference kbd-2.9.0/src/screendump.c:168:2: warning: If memory allocation fails, then there is a possible null pointer dereference: screenbuf [nullPointerOutOfMemory] kbd-2.9.0/src/screendump.c:163:20: note: Assuming allocation function fails kbd-2.9.0/src/screendump.c:163:20: note: Assignment 'screenbuf=malloc(2+(unsigned long)(win.ws_row*win.ws_col))', assigned value is 0 kbd-2.9.0/src/screendump.c:168:2: note: Null pointer dereference kbd-2.9.0/src/setfont.c:20:61: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable program_invocation_short_name [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/setfont.c:68:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/setfont.c:167:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAXIFILES [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/setfont.c:118:23: style: Redundant condition: The condition 'option[1]' is redundant since 'option[1] == '-'' is sufficient. [redundantCondition] kbd-2.9.0/src/setkeycodes.c:26:69: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable program_invocation_short_name [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/setkeycodes.c:43:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/setkeycodes.c:95:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/setleds.c:33:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable program_invocation_short_name [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/setleds.c:80:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LED_NUM [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/setleds.c:101:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KDGETLED [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/setleds.c:111:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KDSETLED [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/setleds.c:121:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KDGKBLED [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/setleds.c:136:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EX_OSERR [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/setleds.c:149:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EX_OSERR [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/setleds.c:250:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EX_OK [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/setleds.c:281:15: style: Condition 'sunkbdfd>=0' is always false [knownConditionTrueFalse] kbd-2.9.0/src/setleds.c:308:17: style: Condition 'sunkbdfd>=0' is always false [knownConditionTrueFalse] kbd-2.9.0/src/setleds.c:343:16: style: Condition 'sunkbdfd>=0' is always false [knownConditionTrueFalse] kbd-2.9.0/src/setleds.c:154:24: style: Parameter 'ap' can be declared as pointer to const [constParameterPointer] kbd-2.9.0/src/setleds.c:157:14: style: Variable 'lp' can be declared as pointer to const [constVariablePointer] kbd-2.9.0/src/setlogcons.c:28:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/setlogcons.c:65:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/setmetamode.c:26:59: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable program_invocation_short_name [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/setmetamode.c:99:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/setmetamode.c:75:15: style: Variable 'mp' can be declared as pointer to const [constVariablePointer] kbd-2.9.0/src/setpalette.c:17:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/setpalette.c:51:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/setvesablank.c:26:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable program_invocation_short_name [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/setvesablank.c:16:26: style: Parameter 'argv' can be declared as const array [constParameter] kbd-2.9.0/src/setvtrgb.c:42:61: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable program_invocation_short_name [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/setvtrgb.c:77:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/setvtrgb.c:109:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/setvtrgb.c:128:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/setvtrgb.c:166:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/showconsolefont.c:55:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable E_TABSZ [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/showconsolefont.c:84:62: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable unipair [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/showconsolefont.c:102:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable program_invocation_short_name [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/showconsolefont.c:143:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable program_invocation_short_name [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/showconsolefont.c:196:4: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] kbd-2.9.0/src/showconsolefont.c:196:4: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] kbd-2.9.0/src/showconsolefont.c:196:4: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] kbd-2.9.0/src/showconsolefont.c:77:59: style: Parameter 'list' can be declared as pointer to const [constParameterPointer] kbd-2.9.0/src/showkey.c:32:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KDGKBMODE [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/showkey.c:63:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KDSKBMODE [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/showkey.c:89:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable program_invocation_short_name [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/showkey.c:149:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/showkey.c:97:26: style: Parameter 'argv' can be declared as const array [constParameter] kbd-2.9.0/src/spawn_command.c:31:4: error: #error "-DSPAWN_CONSOLE or -DSPAWN_LOGIN must be specified" [preprocessorErrorDirective] kbd-2.9.0/src/totextmode.c:27:60: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable program_invocation_short_name [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/totextmode.c:17:26: style: Parameter 'argv' can be declared as const array [constParameter] kbd-2.9.0/src/vlock/auth.c:51:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PAM_NEW_AUTHTOK_REQD [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/vlock/auth.c:73:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_WARNING [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/vlock/pam.c:46:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PAM_SUCCESS [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/vlock/parse.c:53:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable program_invocation_short_name [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/vlock/parse.c:93:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/vlock/parse.c:73:32: style: Parameter 'av' can be declared as const array [constParameter] kbd-2.9.0/src/vlock/parse.c:75:23: style: Variable 'long_options' can be declared as const array [constVariable] kbd-2.9.0/src/vlock/screen.c:59:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/vlock/username.c:61:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/vlock/username.c:48:8: portability: Non reentrant function 'getpwnam' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwnam_r'. [prohibitedgetpwnamCalled] kbd-2.9.0/src/vlock/username.c:54:8: portability: Non reentrant function 'getpwuid' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwuid_r'. [prohibitedgetpwuidCalled] kbd-2.9.0/src/vlock/username.c:59:16: warning: Either the condition '!pw' is redundant or there is possible null pointer dereference: pw. [nullPointerRedundantCheck] kbd-2.9.0/src/vlock/username.c:56:6: note: Assuming that condition '!pw' is not redundant kbd-2.9.0/src/vlock/username.c:59:16: note: Null pointer dereference kbd-2.9.0/src/vlock/username.c:42:17: style: Variable 'pw' can be declared as pointer to const [constVariablePointer] kbd-2.9.0/src/vlock/username.c:45:8: style: Variable 'logname' can be declared as pointer to const [constVariablePointer] kbd-2.9.0/src/vlock/vlock.c:72:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PAM_SUCCESS [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/vlock/vlock.c:51:8: portability: Non reentrant function 'ttyname' called. For threadsafe applications it is recommended to use the reentrant replacement function 'ttyname_r'. [prohibitedttynameCalled] kbd-2.9.0/src/vlock/vlock.c:57:15: warning: Either the condition '!tty' is redundant or there is possible null pointer dereference: tty. [nullPointerRedundantCheck] kbd-2.9.0/src/vlock/vlock.c:52:6: note: Assuming that condition '!tty' is not redundant kbd-2.9.0/src/vlock/vlock.c:57:15: note: Null pointer dereference kbd-2.9.0/src/vlock/vt.c:59:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VT_RELDISP [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/vlock/vt.c:84:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SA_RESTART [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/vlock/vt.c:133:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] kbd-2.9.0/src/vlock/vt.c:201:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VT_SETMODE [valueFlowBailoutIncompleteVar] kbd-2.9.0/tests/helpers/libkeymap-bkeymap.c:30:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] kbd-2.9.0/tests/helpers/libkeymap-dumpkeys.c:17:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable argc [valueFlowBailoutIncompleteVar] kbd-2.9.0/tests/helpers/libkeymap-mktable.c:31:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] kbd-2.9.0/tests/libcommon/libcommon-test03.c:17:9: portability: Non reentrant function 'ttyname' called. For threadsafe applications it is recommended to use the reentrant replacement function 'ttyname_r'. [prohibitedttynameCalled] kbd-2.9.0/tests/libkbdfile/libkbdfile-test02.c:16:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TESTDIR [valueFlowBailoutIncompleteVar] kbd-2.9.0/tests/libkbdfile/libkbdfile-test03.c:16:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TESTDIR [valueFlowBailoutIncompleteVar] kbd-2.9.0/tests/libkbdfile/libkbdfile-test04.c:16:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TESTDIR [valueFlowBailoutIncompleteVar] kbd-2.9.0/tests/libkbdfile/libkbdfile-test05.c:16:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TESTDIR [valueFlowBailoutIncompleteVar] kbd-2.9.0/tests/libkbdfile/libkbdfile-test06.c:16:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TESTDIR [valueFlowBailoutIncompleteVar] kbd-2.9.0/tests/libkbdfile/libkbdfile-test07.c:16:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TESTDIR [valueFlowBailoutIncompleteVar] kbd-2.9.0/tests/libkbdfile/libkbdfile-test08.c:16:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TESTDIR [valueFlowBailoutIncompleteVar] kbd-2.9.0/tests/libkbdfile/libkbdfile-test09.c:16:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TESTDIR [valueFlowBailoutIncompleteVar] kbd-2.9.0/tests/libkbdfile/libkbdfile-test11.c:16:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TESTDIR [valueFlowBailoutIncompleteVar] kbd-2.9.0/tests/libkbdfile/libkbdfile-test12.c:16:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TESTDIR [valueFlowBailoutIncompleteVar] kbd-2.9.0/tests/libkbdfile/libkbdfile-test13.c:16:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TESTDIR [valueFlowBailoutIncompleteVar] kbd-2.9.0/tests/libkbdfile/libkbdfile-test15.c:18:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TESTDIR [valueFlowBailoutIncompleteVar] kbd-2.9.0/tests/libkbdfile/libkbdfile-test15.c:45:10: style: Redundant initialization for 'ts'. The initialized value is overwritten before it is read. [redundantInitialization] kbd-2.9.0/tests/libkbdfile/libkbdfile-test15.c:41:22: note: ts is initialized kbd-2.9.0/tests/libkbdfile/libkbdfile-test15.c:45:10: note: ts is overwritten kbd-2.9.0/tests/libkeymap/libkeymap-test01.c:33:49: error: There is an unknown macro here somewhere. Configuration is required. If TESTDIR is a macro then please configure it. [unknownMacro] kbd-2.9.0/tests/libkeymap/libkeymap-test02.c:30:72: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] kbd-2.9.0/tests/libkeymap/libkeymap-test03.c:29:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] kbd-2.9.0/tests/libkeymap/libkeymap-test05.c:59:49: error: There is an unknown macro here somewhere. Configuration is required. If TESTDIR is a macro then please configure it. [unknownMacro] kbd-2.9.0/tests/libkeymap/libkeymap-test06.c:33:49: error: There is an unknown macro here somewhere. Configuration is required. If TESTDIR is a macro then please configure it. [unknownMacro] kbd-2.9.0/tests/libkeymap/libkeymap-test07.c:33:49: error: There is an unknown macro here somewhere. Configuration is required. If TESTDIR is a macro then please configure it. [unknownMacro] kbd-2.9.0/tests/libkeymap/libkeymap-test08.c:34:49: error: There is an unknown macro here somewhere. Configuration is required. If TESTDIR is a macro then please configure it. [unknownMacro] kbd-2.9.0/tests/libkeymap/libkeymap-test09.c:35:49: error: There is an unknown macro here somewhere. Configuration is required. If TESTDIR is a macro then please configure it. [unknownMacro] kbd-2.9.0/tests/libkeymap/libkeymap-test10.c:34:49: error: There is an unknown macro here somewhere. Configuration is required. If TESTDIR is a macro then please configure it. [unknownMacro] kbd-2.9.0/tests/libkeymap/libkeymap-test11.c:33:49: error: There is an unknown macro here somewhere. Configuration is required. If TESTDIR is a macro then please configure it. [unknownMacro] kbd-2.9.0/tests/libkeymap/libkeymap-test12.c:17:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_NR_KEYMAPS [valueFlowBailoutIncompleteVar] kbd-2.9.0/tests/libkeymap/libkeymap-test14.c:17:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NR_KEYS [valueFlowBailoutIncompleteVar] kbd-2.9.0/tests/libkeymap/libkeymap-test15.c:23:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable K_HOLE [valueFlowBailoutIncompleteVar] kbd-2.9.0/tests/libkeymap/libkeymap-test18.c:12:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_DIACR [valueFlowBailoutIncompleteVar] kbd-2.9.0/tests/libkeymap/libkeymap-test19.c:32:49: error: There is an unknown macro here somewhere. Configuration is required. If TESTDIR is a macro then please configure it. [unknownMacro] kbd-2.9.0/tests/libkeymap/libkeymap-test20.c:33:49: error: There is an unknown macro here somewhere. Configuration is required. If TESTDIR is a macro then please configure it. [unknownMacro] diff: head kbd-2.9.0/contrib/codepage.c:215:25: style:inconclusive: Function 'handle_codepage' argument 1 names different: declaration '' definition 'more_to_come'. [funcArgNamesDifferentUnnamed] 2.20.0 kbd-2.9.0/contrib/codepage.c:291:13: warning: If memory allocation fails, then there is a possible null pointer dereference: fonts [nullPointerOutOfMemory] kbd-2.9.0/contrib/codepage.c:282:33: note: Assuming allocation function fails kbd-2.9.0/contrib/codepage.c:282:10: note: Assignment 'fonts=(unsigned char*)malloc(CPInfoHeader.size)', assigned value is 0 kbd-2.9.0/contrib/codepage.c:285:8: note: Assuming condition is false kbd-2.9.0/contrib/codepage.c:291:13: note: Null pointer dereference 2.20.0 kbd-2.9.0/src/libkbdfile/kbdfile-bzip2.c:29:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable n_namesz [valueFlowBailoutIncompleteVar] 2.20.0 kbd-2.9.0/src/libkbdfile/kbdfile-lzma.c:29:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable n_namesz [valueFlowBailoutIncompleteVar] 2.20.0 kbd-2.9.0/src/libkbdfile/kbdfile-zlib.c:29:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable n_namesz [valueFlowBailoutIncompleteVar] 2.20.0 kbd-2.9.0/src/libkbdfile/kbdfile-zstd.c:31:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable n_namesz [valueFlowBailoutIncompleteVar] head kbd-2.9.0/src/showkey.c:97:26: style: Parameter 'argv' can be declared as const array [constParameter] DONE