2025-07-21 15:17 ftp://ftp.de.debian.org/debian/pool/main/f/fileschanged/fileschanged_0.6.5.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 -j6 platform: Linux-6.1.0-37-amd64-x86_64-with-glibc2.36 python: 3.11.2 client-version: 1.3.67 compiler: g++ (Debian 12.2.0-14+deb12u1) 12.2.0 cppcheck: head 2.18.0 head-info: 140480f (2025-07-21 08:45:09 +0200) count: 38 38 elapsed-time: 0.1 0.1 head-timing-info: old-timing-info: head results: fileschanged-0.6.5/src/listdirs.c:27:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable alphasort [valueFlowBailoutIncompleteVar] fileschanged-0.6.5/src/fileschanged.c:66:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG_IGN [valueFlowBailoutIncompleteVar] fileschanged-0.6.5/src/fileschanged.c:88:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PACKAGE_NAME [valueFlowBailoutIncompleteVar] fileschanged-0.6.5/src/filelist.c:72:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] fileschanged-0.6.5/src/fileschanged.c:88:20: style: Condition 'init_locales(PACKAGE_NAME)' is always false [knownConditionTrueFalse] fileschanged-0.6.5/src/fileschanged.c:88:20: note: Calling function 'init_locales' returns 0 fileschanged-0.6.5/src/fileschanged.c:88:20: note: Condition 'init_locales(PACKAGE_NAME)' is always false fileschanged-0.6.5/src/handlers.c:69:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FAMCreated [valueFlowBailoutIncompleteVar] fileschanged-0.6.5/src/handlers.c:87:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FAMCreated [valueFlowBailoutIncompleteVar] fileschanged-0.6.5/src/handlers.c:133:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FAMDeleted [valueFlowBailoutIncompleteVar] fileschanged-0.6.5/src/handlers.c:212:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG_IGN [valueFlowBailoutIncompleteVar] fileschanged-0.6.5/src/monitor.c:119:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FAMCancelMonitor [valueFlowBailoutIncompleteVar] fileschanged-0.6.5/src/monitor.c:129:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FAMResumeMonitor [valueFlowBailoutIncompleteVar] fileschanged-0.6.5/src/monitor.c:196:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FD_SETSIZE [valueFlowBailoutIncompleteVar] fileschanged-0.6.5/src/list.c:94:18: style: Variable 'l' can be declared as pointer to const [constVariablePointer] fileschanged-0.6.5/src/list.c:114:18: style: Variable 'l' can be declared as pointer to const [constVariablePointer] fileschanged-0.6.5/src/opts.c:9:44: error: There is an unknown macro here somewhere. Configuration is required. If PACKAGE_BUGREPORT is a macro then please configure it. [unknownMacro] fileschanged-0.6.5/src/node.c:17:46: style: Parameter 'src' can be declared as pointer to const [constParameterPointer] fileschanged-0.6.5/src/node.c:49:29: style: Parameter 'n1' can be declared as pointer to const [constParameterPointer] fileschanged-0.6.5/src/node.c:49:48: style: Parameter 'n2' can be declared as pointer to const [constParameterPointer] fileschanged-0.6.5/src/node.c:59:30: style: Parameter 'node' can be declared as pointer to const [constParameterPointer] fileschanged-0.6.5/src/monitor.c:84:11: style: Variable 'retval' is assigned a value that is never used. [unreadVariable] fileschanged-0.6.5/src/monitor.c:91:11: style: Variable 'retval' is assigned a value that is never used. [unreadVariable] fileschanged-0.6.5/src/xrealpath.c:16:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] fileschanged-0.6.5/src/wl.c:21:44: style: Parameter 'search' can be declared as pointer to const [constParameterPointer] fileschanged-0.6.5/src/wl.c:37:9: style: Variable 'found' can be declared as pointer to const [constVariablePointer] fileschanged-0.6.5/src/xrealpath.c:8:17: style: Parameter 'filepath' can be declared as pointer to const [constParameterPointer] fileschanged-0.6.5/src/filelist.c:79:30: warning: If resource allocation fails, then there is a possible null pointer dereference: fileptr [nullPointerOutOfResources] fileschanged-0.6.5/src/filelist.c:75:23: note: Assuming allocation function fails fileschanged-0.6.5/src/filelist.c:75:23: note: Assignment 'fileptr=fopen(filename,"r")', assigned value is 0 fileschanged-0.6.5/src/filelist.c:79:30: note: Null pointer dereference fileschanged-0.6.5/src/filelist.c:52:13: style: Parameter 'line' can be declared as pointer to const [constParameterPointer] fileschanged-0.6.5/src/filelist.c:144:18: style: Variable 'lastdir' can be declared as pointer to const [constVariablePointer] fileschanged-0.6.5/src/filelist.c:157:14: style: Variable 'dir' can be declared as pointer to const [constVariablePointer] fileschanged-0.6.5/src/filelist.c:46:14: style: Variable 'retval' is assigned a value that is never used. [unreadVariable] fileschanged-0.6.5/src/filelist.c:83:9: style: Variable 'retval' is assigned a value that is never used. [unreadVariable] fileschanged-0.6.5/src/filelist.c:118:15: style: Variable 'retval' is assigned a value that is never used. [unreadVariable] fileschanged-0.6.5/src/filelist.c:127:11: style: Variable 'retval' is assigned a value that is never used. [unreadVariable] fileschanged-0.6.5/src/handlers.c:168:8: style:inconclusive: Found duplicate branches for 'if' and 'else'. [duplicateBranch] fileschanged-0.6.5/src/handlers.c:174:8: note: Found duplicate branches for 'if' and 'else'. fileschanged-0.6.5/src/handlers.c:168:8: note: Found duplicate branches for 'if' and 'else'. fileschanged-0.6.5/src/handlers.c:67:28: style: Parameter 'e' can be declared as pointer to const [constParameterPointer] fileschanged-0.6.5/src/handlers.c:85:27: style: Parameter 'e' can be declared as pointer to const [constParameterPointer] fileschanged-0.6.5/src/handlers.c:99:26: style: Parameter 'list' can be declared as pointer to const [constParameterPointer] fileschanged-0.6.5/src/handlers.c:101:18: style: Variable 'filenode' can be declared as pointer to const [constVariablePointer] diff: DONE