2026-01-26 10:17 ftp://ftp.de.debian.org/debian/pool/main/x/xcolors/xcolors_1.5a.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 -j8 platform: Linux-6.18.5+deb14-amd64-x86_64-with-glibc2.42 python: 3.13.11 client-version: 1.3.69 compiler: g++ (Debian 15.2.0-12) 15.2.0 cppcheck: head 2.19.0 head-info: df927d56 (2026-01-26 08:38:19 +0100) count: 12 12 elapsed-time: 0.0 0.0 head-timing-info: old-timing-info: head results: xcolors-1.5a.orig/xcolors.c:181:1: portability: Omitted return type of function 'main' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] xcolors-1.5a.orig/xcolors.c:268:1: portability: Omitted return type of function 'colordemo' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] xcolors-1.5a.orig/xcolors.c:95:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xcolors-1.5a.orig/xcolors.c:118:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XtRString [valueFlowBailoutIncompleteVar] xcolors-1.5a.orig/xcolors.c:196:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XtPointer [valueFlowBailoutIncompleteVar] xcolors-1.5a.orig/xcolors.c:277:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Bool [valueFlowBailoutIncompleteVar] xcolors-1.5a.orig/xcolors.c:340:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XtRString [valueFlowBailoutIncompleteVar] xcolors-1.5a.orig/xcolors.c:200:13: style: Assignment of function parameter has no effect outside the function. [uselessAssignmentArg] xcolors-1.5a.orig/xcolors.c:288:17: warning: fscanf() without field width limits can crash with huge input data. [invalidscanf] xcolors-1.5a.orig/xcolors.c:163:13: style: Parameter 'event' can be declared as pointer to const. However it seems that 'quit_action' is a callback function, if 'event' is declared with const you might also need to cast function pointer(s). [constParameterCallback] xcolors-1.5a.orig/xcolors.c:175:14: note: You might need to cast the function pointer here xcolors-1.5a.orig/xcolors.c:163:13: note: Parameter 'event' can be declared as pointer to const xcolors-1.5a.orig/xcolors.c:164:13: style: Parameter 'params' can be declared as pointer to const. However it seems that 'quit_action' is a callback function, if 'params' is declared with const you might also need to cast function pointer(s). [constParameterCallback] xcolors-1.5a.orig/xcolors.c:175:14: note: You might need to cast the function pointer here xcolors-1.5a.orig/xcolors.c:164:13: note: Parameter 'params' can be declared as pointer to const xcolors-1.5a.orig/xcolors.c:165:15: style: Parameter 'num_params' can be declared as pointer to const. However it seems that 'quit_action' is a callback function, if 'num_params' is declared with const you might also need to cast function pointer(s). [constParameterCallback] xcolors-1.5a.orig/xcolors.c:175:14: note: You might need to cast the function pointer here xcolors-1.5a.orig/xcolors.c:165:15: note: Parameter 'num_params' can be declared as pointer to const diff: DONE