2026-01-15 22:10 ftp://ftp.de.debian.org/debian/pool/main/b/ble.sh/ble.sh_0.4.0~git20250806.8060b7a.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 -j90 platform: Linux-6.8.0-90-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.69 compiler: g++ (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0 cppcheck: head 2.19.0 head-info: a8f83c1 (2026-01-15 10:50:53 +0100) count: 65 65 elapsed-time: 0.2 1.4 head-timing-info: old-timing-info: head results: ble.sh-0.4.0~git20250806.8060b7a/lib/init-msleep.c:28:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] ble.sh-0.4.0~git20250806.8060b7a/lib/init-msys1-helper.c:9:59: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STILL_ACTIVE [valueFlowBailoutIncompleteVar] ble.sh-0.4.0~git20250806.8060b7a/lib/init-msys1-helper.c:22:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG_IGN [valueFlowBailoutIncompleteVar] ble.sh-0.4.0~git20250806.8060b7a/memo/D2165/reduced.c:6:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_WRONLY [valueFlowBailoutIncompleteVar] ble.sh-0.4.0~git20250806.8060b7a/lib/init-msleep.c:20:45: style: Parameter 'list' can be declared as pointer to const. However it seems that 'msleep_builtin' is a callback function, if 'list' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ble.sh-0.4.0~git20250806.8060b7a/lib/init-msleep.c:32:56: note: You might need to cast the function pointer here ble.sh-0.4.0~git20250806.8060b7a/lib/init-msleep.c:20:45: note: Parameter 'list' can be declared as pointer to const ble.sh-0.4.0~git20250806.8060b7a/lib/init-msleep.c:9:36: style: struct member 'word_desc::flags' is never used. [unusedStructMember] ble.sh-0.4.0~git20250806.8060b7a/lib/init-msleep.c:10:38: style: struct member 'word_list::next' is never used. [unusedStructMember] ble.sh-0.4.0~git20250806.8060b7a/memo/D1273.test1.c:9:59: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STILL_ACTIVE [valueFlowBailoutIncompleteVar] ble.sh-0.4.0~git20250806.8060b7a/memo/D1273.test1.c:13:63: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRUE [valueFlowBailoutIncompleteVar] ble.sh-0.4.0~git20250806.8060b7a/memo/D1273.test1.c:23:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ble.sh-0.4.0~git20250806.8060b7a/lib/init-msys1-helper.c:43:17: style: Variable 'terminate' is assigned a value that is never used. [unreadVariable] ble.sh-0.4.0~git20250806.8060b7a/lib/init-msys1-helper.c:51:17: style: Variable 'terminate' is assigned a value that is never used. [unreadVariable] ble.sh-0.4.0~git20250806.8060b7a/memo/D1273.test1.c:38:17: style: Variable 'terminate' is assigned a value that is never used. [unreadVariable] ble.sh-0.4.0~git20250806.8060b7a/make/canvas.c2w.wcwidth.cpp:24:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_ALL [valueFlowBailoutIncompleteVar] ble.sh-0.4.0~git20250806.8060b7a/make/canvas.c2w.wcwidth.cpp:134:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ble.sh-0.4.0~git20250806.8060b7a/make/canvas.c2w.wcwidth.cpp:166:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ble.sh-0.4.0~git20250806.8060b7a/make/canvas.c2w.wcwidth.cpp:224:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cerr [valueFlowBailoutIncompleteVar] ble.sh-0.4.0~git20250806.8060b7a/make/canvas.c2w.wcwidth.cpp:265:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable clog [valueFlowBailoutIncompleteVar] ble.sh-0.4.0~git20250806.8060b7a/make/canvas.c2w.wcwidth.cpp:305:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_ALL [valueFlowBailoutIncompleteVar] ble.sh-0.4.0~git20250806.8060b7a/make/canvas.c2w.wcwidth.cpp:385:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_ALL [valueFlowBailoutIncompleteVar] ble.sh-0.4.0~git20250806.8060b7a/make/canvas.c2w.wcwidth.cpp:402:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] ble.sh-0.4.0~git20250806.8060b7a/make/canvas.c2w.wcwidth.cpp:83:9: style: The member function 'compare_with_unicode::eaw_line_reader::xdigit2decimal' can be static. [functionStatic] ble.sh-0.4.0~git20250806.8060b7a/make/canvas.c2w.wcwidth.cpp:291:16: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] ble.sh-0.4.0~git20250806.8060b7a/make/canvas.c2w.wcwidth.cpp:294:16: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] ble.sh-0.4.0~git20250806.8060b7a/make/canvas.c2w.wcwidth.cpp:294:16: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] ble.sh-0.4.0~git20250806.8060b7a/make/canvas.c2w.wcwidth.cpp:61:12: warning: If resource allocation fails, then there is a possible null pointer dereference: file [nullPointerOutOfResources] ble.sh-0.4.0~git20250806.8060b7a/make/canvas.c2w.wcwidth.cpp:51:23: note: Assuming allocation function fails ble.sh-0.4.0~git20250806.8060b7a/make/canvas.c2w.wcwidth.cpp:51:23: note: Assignment 'file=fopen("canvas.c2w.wcwidth.txt","w")', assigned value is 0 ble.sh-0.4.0~git20250806.8060b7a/make/canvas.c2w.wcwidth.cpp:61:12: note: Null pointer dereference ble.sh-0.4.0~git20250806.8060b7a/make/canvas.c2w.wcwidth.cpp:268:18: warning: If resource allocation fails, then there is a possible null pointer dereference: file [nullPointerOutOfResources] ble.sh-0.4.0~git20250806.8060b7a/make/canvas.c2w.wcwidth.cpp:353:33: note: Assuming allocation function fails ble.sh-0.4.0~git20250806.8060b7a/make/canvas.c2w.wcwidth.cpp:353:33: note: Assignment 'file=std::fopen(filename,"w")', assigned value is 0 ble.sh-0.4.0~git20250806.8060b7a/make/canvas.c2w.wcwidth.cpp:354:52: note: Calling function 'print_wcwidth_difference', 1st argument 'file' value is 0 ble.sh-0.4.0~git20250806.8060b7a/make/canvas.c2w.wcwidth.cpp:264:11: note: Assuming condition is false ble.sh-0.4.0~git20250806.8060b7a/make/canvas.c2w.wcwidth.cpp:268:18: note: Null pointer dereference ble.sh-0.4.0~git20250806.8060b7a/make/canvas.c2w.wcwidth.cpp:311:19: warning: If resource allocation fails, then there is a possible null pointer dereference: file [nullPointerOutOfResources] ble.sh-0.4.0~git20250806.8060b7a/make/canvas.c2w.wcwidth.cpp:309:35: note: Assuming allocation function fails ble.sh-0.4.0~git20250806.8060b7a/make/canvas.c2w.wcwidth.cpp:309:35: note: Assignment 'file=std::fopen(filename,"w")', assigned value is 0 ble.sh-0.4.0~git20250806.8060b7a/make/canvas.c2w.wcwidth.cpp:311:19: note: Null pointer dereference ble.sh-0.4.0~git20250806.8060b7a/make/canvas.c2w.wcwidth.cpp:341:17: warning: If resource allocation fails, then there is a possible null pointer dereference: file [nullPointerOutOfResources] ble.sh-0.4.0~git20250806.8060b7a/make/canvas.c2w.wcwidth.cpp:339:33: note: Assuming allocation function fails ble.sh-0.4.0~git20250806.8060b7a/make/canvas.c2w.wcwidth.cpp:339:33: note: Assignment 'file=std::fopen(filename,"w")', assigned value is 0 ble.sh-0.4.0~git20250806.8060b7a/make/canvas.c2w.wcwidth.cpp:341:17: note: Null pointer dereference ble.sh-0.4.0~git20250806.8060b7a/make/canvas.c2w.wcwidth.cpp:348:17: warning: If resource allocation fails, then there is a possible null pointer dereference: file [nullPointerOutOfResources] ble.sh-0.4.0~git20250806.8060b7a/make/canvas.c2w.wcwidth.cpp:346:33: note: Assuming allocation function fails ble.sh-0.4.0~git20250806.8060b7a/make/canvas.c2w.wcwidth.cpp:346:33: note: Assignment 'file=std::fopen(filename,"w")', assigned value is 0 ble.sh-0.4.0~git20250806.8060b7a/make/canvas.c2w.wcwidth.cpp:348:17: note: Null pointer dereference ble.sh-0.4.0~git20250806.8060b7a/make/canvas.c2w.wcwidth.cpp:355:17: warning: If resource allocation fails, then there is a possible null pointer dereference: file [nullPointerOutOfResources] ble.sh-0.4.0~git20250806.8060b7a/make/canvas.c2w.wcwidth.cpp:353:33: note: Assuming allocation function fails ble.sh-0.4.0~git20250806.8060b7a/make/canvas.c2w.wcwidth.cpp:353:33: note: Assignment 'file=std::fopen(filename,"w")', assigned value is 0 ble.sh-0.4.0~git20250806.8060b7a/make/canvas.c2w.wcwidth.cpp:355:17: note: Null pointer dereference ble.sh-0.4.0~git20250806.8060b7a/make/canvas.c2w.wcwidth.cpp:10:26: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] ble.sh-0.4.0~git20250806.8060b7a/make/canvas.c2w.wcwidth.cpp:10:34: style: Parameter 'b' can be declared as pointer to const [constParameterPointer] ble.sh-0.4.0~git20250806.8060b7a/make/canvas.c2w.wcwidth.cpp:20:10: style: Variable 'widths' can be declared as pointer to const [constVariablePointer] ble.sh-0.4.0~git20250806.8060b7a/make/canvas.c2w.wcwidth.cpp:21:10: style: Variable 'old_widths' can be declared as pointer to const [constVariablePointer] ble.sh-0.4.0~git20250806.8060b7a/make/canvas.c2w.wcwidth.cpp:381:10: style: Variable 'widths' can be declared as pointer to const [constVariablePointer] ble.sh-0.4.0~git20250806.8060b7a/make/canvas.c2w.wcwidth.cpp:382:10: style: Variable 'old_widths' can be declared as pointer to const [constVariablePointer] ble.sh-0.4.0~git20250806.8060b7a/make/canvas.c2w.wcwidth.cpp:98:15: warning: Either the condition 'index