2025-11-24 21:08 ftp://ftp.de.debian.org/debian/pool/main/x/xwatch/xwatch_2.11.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: 43 43 elapsed-time: 0.3 0.2 head-timing-info: old-timing-info: head results: xwatch-2.11/src/addfile.c:47:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable foregr [valueFlowBailoutIncompleteVar] xwatch-2.11/src/addfile.c:31:21: style:inconclusive: Function 'addfile' argument 1 names different: declaration 'fname' definition 'filename'. [funcArgNamesDifferent] xwatch-2.11/src/xwatch.h:70:28: note: Function 'addfile' argument 1 names different: declaration 'fname' definition 'filename'. xwatch-2.11/src/addfile.c:31:21: note: Function 'addfile' argument 1 names different: declaration 'fname' definition 'filename'. xwatch-2.11/src/addfile.c:31:21: style: Parameter 'filename' can be declared as pointer to const [constParameterPointer] xwatch-2.11/src/addline.c:54:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ngagstring [valueFlowBailoutIncompleteVar] xwatch-2.11/src/addline.c:68:10: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] xwatch-2.11/src/addline.c:124:18: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] xwatch-2.11/src/addline.c:135:18: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] xwatch-2.11/src/addline.c:31:21: style:inconclusive: Function 'addline' argument 1 names different: declaration 'line' definition 'buf'. [funcArgNamesDifferent] xwatch-2.11/src/xwatch.h:71:28: note: Function 'addline' argument 1 names different: declaration 'line' definition 'buf'. xwatch-2.11/src/addline.c:31:21: note: Function 'addline' argument 1 names different: declaration 'line' definition 'buf'. xwatch-2.11/src/alarmhandler.c:37:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable nfinfo [valueFlowBailoutIncompleteVar] xwatch-2.11/src/colorname2index.c:41:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FL_BLACK [valueFlowBailoutIncompleteVar] xwatch-2.11/src/colorname2rgb.c:53:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] xwatch-2.11/src/colorname2rgb.c:68:13: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] xwatch-2.11/src/colorname2rgb.c:34:26: style:inconclusive: Function 'colorname2rgb' argument 1 names different: declaration 'col' definition 'name'. [funcArgNamesDifferent] xwatch-2.11/src/xwatch.h:88:33: note: Function 'colorname2rgb' argument 1 names different: declaration 'col' definition 'name'. xwatch-2.11/src/colorname2rgb.c:34:26: note: Function 'colorname2rgb' argument 1 names different: declaration 'col' definition 'name'. xwatch-2.11/src/error.c:36:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xwatch-2.11/src/error.c:43:1: error: va_list 'args' was opened but not closed by va_end(). [va_end_missing] xwatch-2.11/src/getcolorindex.c:38:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FL_FREE_COL1 [valueFlowBailoutIncompleteVar] xwatch-2.11/src/getcolorindex.c:31:24: style:inconclusive: Function 'getcolorindex' argument 1 names different: declaration 'r' definition 'red'. [funcArgNamesDifferent] xwatch-2.11/src/xwatch.h:75:32: note: Function 'getcolorindex' argument 1 names different: declaration 'r' definition 'red'. xwatch-2.11/src/getcolorindex.c:31:24: note: Function 'getcolorindex' argument 1 names different: declaration 'r' definition 'red'. xwatch-2.11/src/getcolorindex.c:31:33: style:inconclusive: Function 'getcolorindex' argument 2 names different: declaration 'g' definition 'green'. [funcArgNamesDifferent] xwatch-2.11/src/xwatch.h:75:39: note: Function 'getcolorindex' argument 2 names different: declaration 'g' definition 'green'. xwatch-2.11/src/getcolorindex.c:31:33: note: Function 'getcolorindex' argument 2 names different: declaration 'g' definition 'green'. xwatch-2.11/src/getcolorindex.c:31:44: style:inconclusive: Function 'getcolorindex' argument 3 names different: declaration 'b' definition 'blue'. [funcArgNamesDifferent] xwatch-2.11/src/xwatch.h:75:46: note: Function 'getcolorindex' argument 3 names different: declaration 'b' definition 'blue'. xwatch-2.11/src/getcolorindex.c:31:44: note: Function 'getcolorindex' argument 3 names different: declaration 'b' definition 'blue'. xwatch-2.11/src/parsecolors.c:37:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable foregr [valueFlowBailoutIncompleteVar] xwatch-2.11/src/parsecolors.c:31:25: style:inconclusive: Function 'parsecolors' argument 1 names different: declaration 'fg' definition 'fgstring'. [funcArgNamesDifferent] xwatch-2.11/src/xwatch.h:89:32: note: Function 'parsecolors' argument 1 names different: declaration 'fg' definition 'fgstring'. xwatch-2.11/src/parsecolors.c:31:25: note: Function 'parsecolors' argument 1 names different: declaration 'fg' definition 'fgstring'. xwatch-2.11/src/parsecolors.c:31:41: style:inconclusive: Function 'parsecolors' argument 2 names different: declaration 'bg' definition 'bgstring'. [funcArgNamesDifferent] xwatch-2.11/src/xwatch.h:89:42: note: Function 'parsecolors' argument 2 names different: declaration 'bg' definition 'bgstring'. xwatch-2.11/src/parsecolors.c:31:41: note: Function 'parsecolors' argument 2 names different: declaration 'bg' definition 'bgstring'. xwatch-2.11/src/parsecolorstring.c:65:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable colorstring [valueFlowBailoutIncompleteVar] xwatch-2.11/src/parsecolorstring.c:47:10: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] xwatch-2.11/src/parsecolorstring.c:73:14: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] xwatch-2.11/src/parsecolorstring.c:62:17: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] xwatch-2.11/src/parsegag.c:56:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gagstring [valueFlowBailoutIncompleteVar] xwatch-2.11/src/parsegag.c:41:10: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] xwatch-2.11/src/parsegag.c:59:14: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] xwatch-2.11/src/parseignore.c:39:10: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] xwatch-2.11/src/parseignore.c:55:14: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] xwatch-2.11/src/parseignore.c:34:10: style: Variable 'cp' can be declared as pointer to const [constVariablePointer] xwatch-2.11/src/scanfile.c:50:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable finfo [valueFlowBailoutIncompleteVar] xwatch-2.11/src/scanfile.c:101:12: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] xwatch-2.11/src/scanfile.c:31:20: style:inconclusive: Function 'scanfile' argument 1 names different: declaration 'index' definition 'i'. [funcArgNamesDifferent] xwatch-2.11/src/xwatch.h:95:27: note: Function 'scanfile' argument 1 names different: declaration 'index' definition 'i'. xwatch-2.11/src/scanfile.c:31:20: note: Function 'scanfile' argument 1 names different: declaration 'index' definition 'i'. xwatch-2.11/src/scanfile.c:31:27: style:inconclusive: Function 'scanfile' argument 2 names different: declaration 'dumpinfo' definition 'showinfo'. [funcArgNamesDifferent] xwatch-2.11/src/xwatch.h:95:38: note: Function 'scanfile' argument 2 names different: declaration 'dumpinfo' definition 'showinfo'. xwatch-2.11/src/scanfile.c:31:27: note: Function 'scanfile' argument 2 names different: declaration 'dumpinfo' definition 'showinfo'. xwatch-2.11/src/scanfile.c:42:3: style: Variable 'loctime' can be declared as pointer to const [constVariablePointer] xwatch-2.11/src/ui.c:46:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FL_NO_BOX [valueFlowBailoutIncompleteVar] xwatch-2.11/src/ui.c:48:23: style: Variable 'obj' is reassigned a value before the old one has been used. [redundantAssignment] xwatch-2.11/src/ui.c:47:7: note: obj is assigned xwatch-2.11/src/ui.c:48:23: note: obj is overwritten xwatch-2.11/src/usage.c:36:38: error: There is an unknown macro here somewhere. Configuration is required. If VER is a macro then please configure it. [unknownMacro] xwatch-2.11/src/warning.c:41:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable foregr [valueFlowBailoutIncompleteVar] xwatch-2.11/src/warning.c:42:1: error: va_list 'args' was opened but not closed by va_end(). [va_end_missing] xwatch-2.11/src/xwatch.c:49:17: error: There is an unknown macro here somewhere. Configuration is required. If VER is a macro then please configure it. [unknownMacro] diff: DONE