2025-07-12 05:33 ftp://ftp.de.debian.org/debian/pool/main/w/wiipdf/wiipdf_1.4.orig.tar.gz 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-63-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.17.0 head-info: 8244dfa (2025-07-11 19:55:56 +0200) count: 10 10 elapsed-time: 0.0 0.1 head-timing-info: old-timing-info: head results: wiipdf-1.4/wiipdf.c:51:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] wiipdf-1.4/wiipdf.c:64:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] wiipdf-1.4/wiipdf.c:101:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CWIID_MESG_BTN [valueFlowBailoutIncompleteVar] wiipdf-1.4/wiipdf.c:118:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] wiipdf-1.4/wiipdf.c:79:2: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] wiipdf-1.4/wiipdf.c:59:1: error: Memory leak: buffer [memleak] wiipdf-1.4/wiipdf.c:71:1: error: Memory leak: buffer [memleak] wiipdf-1.4/wiipdf.c:99:43: style: Parameter 'msg_wiimote' can be declared as pointer to const. However it seems that 'msg_callback' is a callback function, if 'msg_wiimote' is declared with const you might also need to cast function pointer(s). [constParameterCallback] wiipdf-1.4/wiipdf.c:150:39: note: You might need to cast the function pointer here wiipdf-1.4/wiipdf.c:99:43: note: Parameter 'msg_wiimote' can be declared as pointer to const wiipdf-1.4/wiipdf.c:100:22: style: Parameter 'time' can be declared as pointer to const. However it seems that 'msg_callback' is a callback function, if 'time' is declared with const you might also need to cast function pointer(s). [constParameterCallback] wiipdf-1.4/wiipdf.c:150:39: note: You might need to cast the function pointer here wiipdf-1.4/wiipdf.c:100:22: note: Parameter 'time' can be declared as pointer to const wiipdf-1.4/wiipdf.c:102:26: style: Variable 'btn_msg' can be declared as pointer to const [constVariablePointer] diff: DONE