2026-05-27 16:40 ftp://ftp.de.debian.org/debian/pool/main/l/lmod/lmod_8.7.60.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --library=lua --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 -j8 platform: Linux-6.17.0-29-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.4.0 compiler: g++ (Ubuntu 13.3.0-6ubuntu2~24.04.1) 13.3.0 cppcheck: head 2.20.0 head-info: 6e46c6b (2026-05-27 18:39:55 +0200) count: 24 23 elapsed-time: 0.0 0.1 head-timing-info: old-timing-info: head results: TACC-Lmod-cc4159b/contrib/settarg/make_example/main.c:2:26: style: Parameter 'argv' can be declared as const array [constParameter] TACC-Lmod-cc4159b/pkgs/luafilesystem/lfs.c:335:2: error: #error unsupported Lua version [preprocessorErrorDirective] TACC-Lmod-cc4159b/pkgs/term/core.c:9:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LUA_FILEHANDLE [valueFlowBailoutIncompleteVar] TACC-Lmod-cc4159b/embed/tcl2lua.c:22:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TCL_ERROR [valueFlowBailoutIncompleteVar] TACC-Lmod-cc4159b/embed/tcl2lua.c:35:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TCL_ERROR [valueFlowBailoutIncompleteVar] TACC-Lmod-cc4159b/embed/tcl2lua.c:62:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] TACC-Lmod-cc4159b/embed/tcl_my_prt.c:23:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TCL_ERROR [valueFlowBailoutIncompleteVar] TACC-Lmod-cc4159b/embed/tcl_my_prt.c:47:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TCL_ERROR [valueFlowBailoutIncompleteVar] TACC-Lmod-cc4159b/embed/tcl_my_prt.c:63:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] TACC-Lmod-cc4159b/embed/tcl_my_prt.c:101:3: portability: %d in format string (no. 1) requires 'int' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] TACC-Lmod-cc4159b/embed/tcl_my_prt.c:40:11: warning: If memory allocation fails, then there is a possible null pointer dereference: resultStr [nullPointerOutOfMemory] TACC-Lmod-cc4159b/embed/tcl_my_prt.c:38:34: note: Assuming allocation function fails TACC-Lmod-cc4159b/embed/tcl_my_prt.c:38:19: note: Assignment 'resultStr=(char*)malloc(rlen*sizeof(char))', assigned value is 0 TACC-Lmod-cc4159b/embed/tcl_my_prt.c:40:11: note: Null pointer dereference TACC-Lmod-cc4159b/embed/tcl_my_prt.c:41:3: warning: If memory allocation fails, then there is a possible null pointer dereference: resultStr [nullPointerOutOfMemory] TACC-Lmod-cc4159b/embed/tcl_my_prt.c:38:34: note: Assuming allocation function fails TACC-Lmod-cc4159b/embed/tcl_my_prt.c:38:19: note: Assignment 'resultStr=(char*)malloc(rlen*sizeof(char))', assigned value is 0 TACC-Lmod-cc4159b/embed/tcl_my_prt.c:41:3: note: Null pointer dereference TACC-Lmod-cc4159b/embed/tcl_my_prt.c:27:10: style: Variable 'str' can be declared as pointer to const [constVariablePointer] TACC-Lmod-cc4159b/embed/tcl_my_prt.c:20:7: style: Unused variable: i [unusedVariable] TACC-Lmod-cc4159b/pkgs/tcl2lua/tcl2lua.c:32:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TCL_ERROR [valueFlowBailoutIncompleteVar] TACC-Lmod-cc4159b/pkgs/tcl2lua/tcl2lua.c:56:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TCL_ERROR [valueFlowBailoutIncompleteVar] TACC-Lmod-cc4159b/pkgs/tcl2lua/tcl2lua.c:87:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] TACC-Lmod-cc4159b/embed/split.c:12:18: style: Unused variable: b [unusedVariable] TACC-Lmod-cc4159b/embed/tcl2lua.c:15:57: style: Argument 'interp' shadows outer variable [shadowVariable] TACC-Lmod-cc4159b/embed/tcl2lua.c:12:20: note: Shadowed variable TACC-Lmod-cc4159b/embed/tcl2lua.c:15:57: note: Shadow argument TACC-Lmod-cc4159b/embed/tcl2lua.c:33:29: style: Argument 'interp' shadows outer variable [shadowVariable] TACC-Lmod-cc4159b/embed/tcl2lua.c:12:20: note: Shadowed variable TACC-Lmod-cc4159b/embed/tcl2lua.c:33:29: note: Shadow argument TACC-Lmod-cc4159b/embed/tcl2lua.c:19:7: style: Unused variable: i [unusedVariable] TACC-Lmod-cc4159b/pkgs/tcl2lua/tcl2lua.c:36:10: style: Variable 'str' can be declared as pointer to const [constVariablePointer] TACC-Lmod-cc4159b/pkgs/tcl2lua/tcl2lua.c:27:7: style: Unused variable: i [unusedVariable] TACC-Lmod-cc4159b/pkgs/tcl2lua/tcl2lua.c:76:7: style: Variable 'status' is assigned a value that is never used. [unreadVariable] diff: head TACC-Lmod-cc4159b/embed/tcl2lua.c:15:57: style: Argument 'interp' shadows outer variable [shadowVariable] TACC-Lmod-cc4159b/embed/tcl2lua.c:12:20: note: Shadowed variable TACC-Lmod-cc4159b/embed/tcl2lua.c:15:57: note: Shadow argument head TACC-Lmod-cc4159b/embed/tcl2lua.c:33:29: style: Argument 'interp' shadows outer variable [shadowVariable] TACC-Lmod-cc4159b/embed/tcl2lua.c:12:20: note: Shadowed variable TACC-Lmod-cc4159b/embed/tcl2lua.c:33:29: note: Shadow argument 2.20.0 TACC-Lmod-cc4159b/pkgs/tcl2lua/tcl2lua.c:92:5: error: Memory leak: results.resultStr [memleak] DONE