2025-08-31 03:31 ftp://ftp.de.debian.org/debian/pool/main/g/gmemusage/gmemusage_0.2.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 -j4 platform: Linux-6.12.41+deb13-amd64-x86_64-with-glibc2.41 python: 3.13.5 client-version: 1.3.67 compiler: g++ (Debian 14.2.0-19) 14.2.0 cppcheck: head 2.18.0 head-info: 2ee39fe (2025-08-30 22:07:31 +0200) count: 24 24 elapsed-time: 0.1 0.1 head-timing-info: old-timing-info: head results: gmemusage-0.2/hash.c:67:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] gmemusage-0.2/proc.c:47:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] gmemusage-0.2/proc.c:120:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] gmemusage-0.2/hash.c:54:17: style:inconclusive: Function 'addProc' argument 1 names different: declaration 'procName' definition 'procname'. [funcArgNamesDifferent] gmemusage-0.2/common.h:24:29: note: Function 'addProc' argument 1 names different: declaration 'procName' definition 'procname'. gmemusage-0.2/hash.c:54:17: note: Function 'addProc' argument 1 names different: declaration 'procName' definition 'procname'. gmemusage-0.2/hash.c:54:32: style:inconclusive: Function 'addProc' argument 2 names different: declaration 'Mem' definition 'mem'. [funcArgNamesDifferent] gmemusage-0.2/common.h:24:44: note: Function 'addProc' argument 2 names different: declaration 'Mem' definition 'mem'. gmemusage-0.2/hash.c:54:32: note: Function 'addProc' argument 2 names different: declaration 'Mem' definition 'mem'. gmemusage-0.2/hash.c:54:42: style:inconclusive: Function 'addProc' argument 3 names different: declaration 'RSS' definition 'rss'. [funcArgNamesDifferent] gmemusage-0.2/common.h:24:54: note: Function 'addProc' argument 3 names different: declaration 'RSS' definition 'rss'. gmemusage-0.2/hash.c:54:42: note: Function 'addProc' argument 3 names different: declaration 'RSS' definition 'rss'. gmemusage-0.2/hash.c:131:18: style:inconclusive: Function 'AllProcs' argument 1 names different: declaration 'nprocs' definition 'n'. [funcArgNamesDifferent] gmemusage-0.2/common.h:27:41: note: Function 'AllProcs' argument 1 names different: declaration 'nprocs' definition 'n'. gmemusage-0.2/hash.c:131:18: note: Function 'AllProcs' argument 1 names different: declaration 'nprocs' definition 'n'. gmemusage-0.2/hash.c:35:21: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] gmemusage-0.2/resource.c:144:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] gmemusage-0.2/resource.c:200:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] gmemusage-0.2/resource.c:295:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] gmemusage-0.2/resource.c:170:44: style: Parameter 'parentname' can be declared as pointer to const [constParameterPointer] gmemusage-0.2/resource.c:170:63: style: Parameter 'parentclass' can be declared as pointer to const [constParameterPointer] gmemusage-0.2/resource.c:171:14: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] gmemusage-0.2/resource.c:171:27: style: Parameter 'class' can be declared as pointer to const [constParameterPointer] gmemusage-0.2/resource.c:176:16: style: Variable 'string' can be declared as pointer to const [constVariablePointer] gmemusage-0.2/gmemusage.c:150:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] gmemusage-0.2/gmemusage.c:453:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG_IGN [valueFlowBailoutIncompleteVar] gmemusage-0.2/gmemusage.c:717:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LineSolid [valueFlowBailoutIncompleteVar] gmemusage-0.2/proc.c:145:13: style: Obsolescent function 'index' called. It is recommended to use 'strchr' instead. [prohibitedindexCalled] gmemusage-0.2/proc.c:167:6: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] gmemusage-0.2/proc.c:90:8: style: Variable 'procdir' can be declared as pointer to const [constVariablePointer] gmemusage-0.2/gmemusage.c:121:7: style: Local variable 'screen_num' shadows outer variable [shadowVariable] gmemusage-0.2/gmemusage.c:50:4: note: Shadowed declaration gmemusage-0.2/gmemusage.c:121:7: note: Shadow variable gmemusage-0.2/gmemusage.c:123:8: style: Variable 'screen_ptr' can be declared as pointer to const [constVariablePointer] diff: DONE