2025-11-24 21:08 ftp://ftp.de.debian.org/debian/pool/main/x/xtv/xtv_1.1.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --library=motif --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-88-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.69 compiler: g++ (Ubuntu 14.2.0-4ubuntu2~24.04) 14.2.0 cppcheck: head 2.18.0 head-info: cb76e52 (2025-11-22 14:47:37 +0100) count: 7 7 elapsed-time: 0.0 0.1 head-timing-info: old-timing-info: head results: xtv-1.1.orig/Grab.c:94:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GXcopy [valueFlowBailoutIncompleteVar] xtv-1.1.orig/Grab.c:146:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XtNwidth [valueFlowBailoutIncompleteVar] xtv-1.1.orig/Grab.c:115:12: style: Parameter 'num_args' can be declared as pointer to const [constParameterPointer] xtv-1.1.orig/Grab.c:122:16: style: Parameter 'event' can be declared as pointer to const. However it seems that 'Redisplay' is a callback function, if 'event' is declared with const you might also need to cast function pointer(s). [constParameterCallback] xtv-1.1.orig/Grab.c:59:4: note: You might need to cast the function pointer here xtv-1.1.orig/Grab.c:122:16: note: Parameter 'event' can be declared as pointer to const xtv-1.1.orig/xtv.c:52:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable viewportWidgetClass [valueFlowBailoutIncompleteVar] xtv-1.1.orig/xtv.c:71:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xtv-1.1.orig/xtv.c:59:13: style: Variable 'app.grab' is assigned a value that is never used. [unreadVariable] diff: DONE